-
Notifications
You must be signed in to change notification settings - Fork 3
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
500 internal server error on GET /passes/<norad-id> #12
Comments
GET /passes/<norad-id>
GET /passes/<norad-id>
Hi, thanks for alerting. Reading the logs and seems like the redis cache reached the daily limit 🥵
I guess I could skip cache writes if hitting this limit, I'll take a look. |
I could add Cloudflare on front to cache cached requests, but that will require a domain change. |
Done. Now use https://sat.terrestre.ar and let's wait until tomorrow to reset the daily quota. I blocked a heavy bot that was consuming the quota. |
Hello @redraw! Thanks for setting this up! However I get |
@viconnex based on the Cloudflare Ray ID, you are THE one I've blocked 👀. You were flooding the server, exceeding the redis operations quota. I can unblock your IP if you can fix your code. Seems like you were hitting the /passes endpoint in a while True loop maybe? |
LOL indeed! Sorry! My code calls the /passes endpoint every 10 seconds. What would be an acceptable delay for you? |
No prob. Why every 10 seconds? passes don't change. Calculations tends to drift after 15 days of prediction, as those will require updated TLEs in the future. Every 1 day you should be fine. |
Just unblocked your IP 👍 |
Thank you! Yes you're right, I will change the code. |
Hello! Thank you for this project!
I get 500 errors when calling the
GET /passes/<norad-id>
endpoint.Did you also notice this? Do you know what is happening?
Or am I making a mistake in my query?
Below a sample of the performed query:
Result:
Thank you for your help!
The text was updated successfully, but these errors were encountered: