New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception when raising volume above 100% with Mopidy #199

Closed
vdesabou opened this Issue Aug 8, 2017 · 2 comments

Comments

1 participant
@vdesabou
Owner

vdesabou commented Aug 8, 2017

Getting:

stdClass Object
(
    [jsonrpc] => 2.0
    [id] => 1
    [error] => stdClass Object
        (
            [message] => Application error
            [code] => 0
            [data] => stdClass Object
                (
                    [message] => Expected an integer, not u'100'
                    [traceback] => Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/mopidy/internal/jsonrpc.py", line 133, in _handle_single_request
    result = self._unwrap_result(result)
  File "/usr/local/lib/python2.7/site-packages/mopidy/internal/jsonrpc.py", line 222, in _unwrap_result
    result = result.get()
  File "/usr/local/lib/python2.7/site-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/local/lib/python2.7/site-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/local/lib/python2.7/site-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/local/lib/python2.7/site-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/local/lib/python2.7/site-packages/mopidy/core/mixer.py", line 58, in set_volume
    validation.check_integer(volume, min=0, max=100)
  File "/usr/local/lib/python2.7/site-packages/mopidy/internal/validation.py", line 60, in check_integer
    raise exceptions.ValidationError('Expected an integer, not %r' % arg)
ValidationError: Expected an integer, not u'100'

                    [type] => ValidationError
                )

        )

)
2017-08-08 12:47:34|ERROR: invokeMopidyMethod() method: core.mixer.set_volume params: {"volume":"100"} exception:1

@vdesabou vdesabou added the bug label Aug 8, 2017

@vdesabou vdesabou added this to the 7.3 milestone Aug 8, 2017

@vdesabou vdesabou self-assigned this Aug 8, 2017

@vdesabou

This comment has been minimized.

Show comment
Hide comment
Owner

vdesabou commented Aug 8, 2017

@vdesabou

This comment has been minimized.

Show comment
Hide comment
@vdesabou
Owner

vdesabou commented Aug 11, 2017

@vdesabou vdesabou closed this Aug 11, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment