Hi, when trying to connect to the simulator using the python API, I'm getting an error that I guess could have to do with system proxies again.
On one machine I have the simulator running fine in Unity, WebUI ist working correctly on port 8080, and I can connect to my rosbridge on a remote machine.
Now I installed the python API on the remote machine and tried to connect to the simulator running an API only simulation, but I only get error 403.
For debugging I tried to open a websocket through a python shell and I get the following output:
>>> soc=lgsvl.remote.Remote('53.63.112.62',8081) Exception in thread Thread-8: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/lhome/joerger/GIT/PythonAPI/lgsvl/remote.py", line 28, in run self.loop.run_until_complete(self.process()) File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/lhome/joerger/GIT/PythonAPI/lgsvl/remote.py", line 36, in process self.websocket = await websockets.connect(self.endpoint, compression=None) File "/lhome/joerger/.local/lib/python3.6/site-packages/websockets/py35/client.py", line 20, in __await_impl__ extra_headers=protocol.extra_headers, File "/lhome/joerger/.local/lib/python3.6/site-packages/websockets/client.py", line 286, in handshake raise InvalidStatusCode(status_code) websockets.exceptions.InvalidStatusCode: Status code not 101: 403
and then after interrupt
^CTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/lhome/joerger/GIT/PythonAPI/lgsvl/remote.py", line 23, in __init__ self.sem.acquire() File "/usr/lib/python3.6/threading.py", line 426, in acquire self._cond.wait(timeout) File "/usr/lib/python3.6/threading.py", line 295, in wait waiter.acquire() KeyboardInterrupt
Currently I can't try this on the local machine since python3 is not installed, but when I try to open localhost:8081 in a browser I get 403 forbidden as well.
Could there be any other issue than the proxy settings?
Thanks in advance
Hi, when trying to connect to the simulator using the python API, I'm getting an error that I guess could have to do with system proxies again.
On one machine I have the simulator running fine in Unity, WebUI ist working correctly on port 8080, and I can connect to my rosbridge on a remote machine.
Now I installed the python API on the remote machine and tried to connect to the simulator running an API only simulation, but I only get error 403.
For debugging I tried to open a websocket through a python shell and I get the following output:
>>> soc=lgsvl.remote.Remote('53.63.112.62',8081) Exception in thread Thread-8: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/lhome/joerger/GIT/PythonAPI/lgsvl/remote.py", line 28, in run self.loop.run_until_complete(self.process()) File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/lhome/joerger/GIT/PythonAPI/lgsvl/remote.py", line 36, in process self.websocket = await websockets.connect(self.endpoint, compression=None) File "/lhome/joerger/.local/lib/python3.6/site-packages/websockets/py35/client.py", line 20, in __await_impl__ extra_headers=protocol.extra_headers, File "/lhome/joerger/.local/lib/python3.6/site-packages/websockets/client.py", line 286, in handshake raise InvalidStatusCode(status_code) websockets.exceptions.InvalidStatusCode: Status code not 101: 403and then after interrupt
^CTraceback (most recent call last): File "<stdin>", line 1, in <module> File "/lhome/joerger/GIT/PythonAPI/lgsvl/remote.py", line 23, in __init__ self.sem.acquire() File "/usr/lib/python3.6/threading.py", line 426, in acquire self._cond.wait(timeout) File "/usr/lib/python3.6/threading.py", line 295, in wait waiter.acquire() KeyboardInterruptCurrently I can't try this on the local machine since python3 is not installed, but when I try to open localhost:8081 in a browser I get 403 forbidden as well.
Could there be any other issue than the proxy settings?
Thanks in advance