How can i make it run in pythonanywhere.com? #324
Unanswered
llMiner512ll
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to make this proyect run in python anywhere. But at the moment of Run "run.py" the console gives me this error.
Are there any way to make it run?
01:56 ~/Twitch-Channel-Points-Miner (master)$ python main.py
Enter the streamer name (or several separated by commas). More important streamers go first.
Streamer names: Luh
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 366, in connect
self._tunnel()
File "/usr/local/lib/python3.9/http/client.py", line 903, in _tunnel
raise OSError(f"Tunnel connection failed: {code} {message.strip()}")
OSError: Tunnel connection failed: 403 Forbidden
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.9/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='gql.twitch.tv', port=443): Max retries exceeded with url: /gql (Caused by ProxyError('C
annot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/Miner512/Twitch-Channel-Points-Miner/main.py", line 56, in
main()
File "/home/Miner512/Twitch-Channel-Points-Miner/main.py", line 15, in main
streamer_logins = read_streamer_logins()
File "/home/Miner512/Twitch-Channel-Points-Miner/main.py", line 42, in read_streamer_logins
get_channel_id(streamer_login)
File "/home/Miner512/Twitch-Channel-Points-Miner/twitch_data.py", line 77, in get_channel_id
json_response = post_gql_request({
File "/home/Miner512/Twitch-Channel-Points-Miner/twitch_data.py", line 142, in post_gql_request
r = requests.post("https://gql.twitch.tv/gql",
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 119, in post
return request('post', url, data=data, json=json, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/site-packages/requests/adapters.py", line 510, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='gql.twitch.tv', port=443): Max retries exceeded with url: /gql (Caused by ProxyError('Can
not connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))
Beta Was this translation helpful? Give feedback.
All reactions