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

request_get function needs a module to retry if lost network connection #434

Open
ferrarisf50 opened this issue Aug 29, 2023 · 0 comments
Open

Comments

@ferrarisf50
Copy link

ferrarisf50 commented Aug 29, 2023

A temporary network outage can kill request_get, never get a response, which kills a live trading. A possible solution is to set timeout=3 at SESSION.get(...).

response = SESSION.get(url, params=payload,timeout=3)

@ferrarisf50 ferrarisf50 changed the title request_get function needs a module to retry if out of network request_get function needs a module to retry if lost network connection Aug 30, 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

1 participant