jessecooper / pyetrade

Python E-Trade API Wrapper
GNU General Public License v3.0
209 stars 97 forks source link

Q: anyone saw this error: Token request failed with code 500 #84

Open mw66 opened 1 year ago

mw66 commented 1 year ago

This has been happening for a couple of weeks:

HTTP Status 500 – Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request.

But if I continue to try it for a few time, the program will go thru. I'm just wondering why? seems something wrong on their server side.

1rocketdude commented 1 year ago

I notice it too, especially prevalent within 30 minutes of market close. I think it could be a server problem.

On May 30, 2023, at 12:57 AM, mw66 @.***> wrote:

This has been happening for a couple of weeks:

HTTP Status 500 – Internal Server Error

The server encountered an unexpected condition that prevented it from fulfilling the request.

But if I continue to try it for a few time, the program will go thru. I'm just wondering why? seems something wrong on their server side.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Robert-Zacchigna commented 1 year ago

I've also been running into this periodically for awhile now. I've noticed it particularly around market opening and closing as well. I would assume the same as @1rocketdude, that there is just considerable server load due to high trade volume at open and close of the market.

The only "mitigation" I've used to fix this is to just include multiple retries in my scripts if it fails with the 500 HTTP error.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days.