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

Websocket error #3

Open
stefanandy opened this issue Aug 21, 2020 · 2 comments
Open

Websocket error #3

stefanandy opened this issue Aug 21, 2020 · 2 comments

Comments

@stefanandy
Copy link

Traceback (most recent call last):
File "app.py", line 8, in
from modules import *
File "C:\Users\Lejer\PycharmProjects\Compound-Watcher\files\modules.py", line 18, in
if w3.isConnected() == True:
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\main.py", line 260, in isConnected
return self.provider.isConnected()
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\providers\base.py", line 103, in isConnected
response = self.make_request(RPCEndpoint('web3_clientVersion'), [])
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\providers\websocket.py", line 139, in make_request
return future.result()
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\concurrent\futures_base.py", line 435, in result
return self.__get_result()
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\concurrent\futures_base.py", line 384, in __get_result
raise self._exception
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\providers\websocket.py", line 119, in coro_make_request
async with self.conn as conn:
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\web3\providers\websocket.py", line 68, in aenter
uri=self.endpoint_uri, loop=self.loop, **self.websocket_kwargs
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\client.py", line 547, in await_impl
extra_headers=protocol.extra_headers,
File "C:\Users\Lejer\AppData\Local\Programs\Python\Python37\lib\site-packages\websockets\client.py", line 296, in handshake
raise InvalidStatusCode(status_code)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 401

@TennisBowling
Copy link

I have the same problem

@TennisBowling
Copy link

@azizjalel please advise

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

No branches or pull requests

2 participants