Skip to content
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

[roswww] fix basic authentication for python3 #59

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

knorth55
Copy link
Contributor

this PR fix basic authentication for python3.

@knorth55
Copy link
Contributor Author

without this PR, the following error occurs.

HTTPServerRequest(protocol='http', host='pr1040s.jsk.imi.i.u-tokyo.ac.jp:8000', method='GET', uri='/rwt_teleop/', version='HTTP/1.1', remote_ip='133.11.216.212')
Traceback (most recent call last):
  File "/usr/lib/python3.8/base64.py", line 510, in _input_type_check
    m = memoryview(s)
TypeError: memoryview: a bytes-like object is required, not 'str'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/applications/ros/noetic/src/tork-a/roswww/src/roswww/roswww_server.py", line 67, in new_f
    auth_decoded = base64.decodestring(auth_header.split(' ', 1)[1])
  File "/usr/lib/python3.8/base64.py", line 554, in decodestring
    return decodebytes(s)
  File "/usr/lib/python3.8/base64.py", line 545, in decodebytes
    _input_type_check(s)
  File "/usr/lib/python3.8/base64.py", line 513, in _input_type_check
    raise TypeError(msg) from err
TypeError: expected bytes-like object, not str

this PR is running on Noetic + Pr2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant