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

Error 403 for rpc http provider #3091

Closed
vBlackOut opened this issue Sep 4, 2023 · 1 comment
Closed

Error 403 for rpc http provider #3091

vBlackOut opened this issue Sep 4, 2023 · 1 comment

Comments

@vBlackOut
Copy link

vBlackOut commented Sep 4, 2023

error 403 any call on RPC server

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://chainrpc.com

why this url return 403 ? but inside metamask it's work ?

thank

debug :

DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: web3_clientVersion
DEBUG:web3._utils.request:Session cached: https://chainrpc.com, <requests.sessions.Session object at 0xfff634987a10>
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): chainrpc.com:443
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 403 None Connection Failed
DEBUG:web3.RequestManager:Making request. Method: eth_getTransactionCount
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionCount
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 67
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_getTransactionCount, Response: {'jsonrpc': '2.0', 'id': 1, 'result': '0xf22e'}
DEBUG:web3.RequestManager:Making request. Method: eth_estimateGas
DEBUG:web3.RequestManager:Making request. Method: eth_chainId
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_chainId
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 67
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_chainId, Response: {'jsonrpc': '2.0', 'id': 2, 'result': '0x7f08'}
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_estimateGas
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 68
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_estimateGas, Response: {'jsonrpc': '2.0', 'id': 3, 'result': '0x1e140'}
DEBUG:web3.RequestManager:Making request. Method: eth_estimateGas
DEBUG:web3.RequestManager:Making request. Method: eth_chainId
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_chainId
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 67
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_chainId, Response: {'jsonrpc': '2.0', 'id': 4, 'result': '0x7f08'}
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_estimateGas
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 68
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_estimateGas, Response: {'jsonrpc': '2.0', 'id': 5, 'result': '0x1e140'}
DEBUG:web3.RequestManager:Making request. Method: eth_estimateGas
DEBUG:web3.RequestManager:Making request. Method: eth_chainId
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_chainId
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 67
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_chainId, Response: {'jsonrpc': '2.0', 'id': 6, 'result': '0x7f08'}
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_estimateGas
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 68
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_estimateGas, Response: {'jsonrpc': '2.0', 'id': 7, 'result': '0x1e140'}
DEBUG:web3.RequestManager:Making request. Method: eth_sendRawTransaction
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_sendRawTransaction
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 115
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_sendRawTransaction, Response: {'jsonrpc': '2.0', 'id': 8, 'result': '0xf4afcf1304d3c55cf045270e8b4039fd4ba296b4612e83a39d04bfc0de0e7e97'}
DEBUG:web3.RequestManager:Making request. Method: eth_getTransactionReceipt
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 63
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt, Response: {'jsonrpc': '2.0', 'id': 9, 'result': None}
DEBUG:web3.RequestManager:Making request. Method: eth_getTransactionReceipt
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 64
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt, Response: {'jsonrpc': '2.0', 'id': 10, 'result': None}
DEBUG:web3.RequestManager:Making request. Method: eth_getTransactionReceipt
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 200 64
DEBUG:web3.providers.HTTPProvider:Getting response HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt, Response: {'jsonrpc': '2.0', 'id': 11, 'result': None}
DEBUG:web3.RequestManager:Making request. Method: eth_getTransactionReceipt
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 403 None
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 403 None
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 403 None
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 403 None
DEBUG:web3.providers.HTTPProvider:Making request HTTP. URI: https://chainrpc.com, Method: eth_getTransactionReceipt
DEBUG:urllib3.connectionpool:https://chainrpc.com:443 "POST / HTTP/1.1" 403 None

requests.exceptions.ConnectionError: HTTPSConnectionPool(host='chainrpc.co', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xfff2c5f42b10>: Failed to establish a new connection: [Errno 111] Connection refused'))

it's possible to reduce number connection ?

@pacrob
Copy link
Contributor

pacrob commented Sep 5, 2023

We prefer to use issues for problems with the library itself, but you can check out our Discord for help with usage questions.

If there is a problem with the library, please open a new issue with more information.

@pacrob pacrob closed this as not planned Won't fix, can't repro, duplicate, stale Sep 5, 2023
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