Closed 0xrpj closed 2 years ago
We are using requests package to communicate with node
You can set parameters of request() when making HTTPProvider object with request_kwargs
IconService(HTTPProvider("http://localhost:9000", 3, request_kwargs={"timeout": 20}))
Check parameters of requests() with this link
Thank you. That is what I wanted.
While fetching the block from icon service, I am frequently greeted with an exception due to the timeout of 10s. The server takes around 25s to send the response. I haven't set the time myself but wish to increase it. How do I do it?
Exception is caused here:
block = icon_service.get_block(block_height)
Entire error: