-
Notifications
You must be signed in to change notification settings - Fork 14
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
handle / catch "HTTP redirect too deep" error / exception #33
Comments
Thanks for reporting. Weird - this might be a HTTP redirect that redirect to itself (thus, an endless loop). If I get to it I will try to check the HTTP headers for the HTTP status code (e.g. 3xx for redirect) and the redirect location. |
Ideally it would just give up and move to the next feed after x times through the loop, and leave a note at the end or in an error log, rather than crashing. I mentioned about the re-direct to the blog owner, but they said they had no other complaints about this, and since the feed items get populated ~90% of the runs, I don't know how much energy any of us need to pour into this particular infinite loop. In any case.. I'm studying ruby pretty hard, as able, so hopefully sooner than later I'll have more to offer than bug reports. :) |
Thanks for the update. I see than it must be a different error because it should give up on 7 tries or such an report an error and not crash. I try to check the link tomorrow to see if there's a HTTP redirect happening. Thanks for the patience. |
Do you still get the error? If I try to fetch the feed (with pluto's http fetcher library) all works here. The test script:
and the result:
|
I tried again with a cache entry from your log above. It also works. The script:
resulting in
Anyways, please report back if you still get the error and what's the excact feed url in your planet.ini - maybe it's different? |
ok, I tried replacing https for http in my ini... However, I can't reproduce the error reliably. I've got it running hourly, (was running twice an hour), It fails to build only some of the time.. maybe 1-3x in 24 hours... |
Thanks for the update. I you have traceback / stacktrace or some more error logs that would help. If you run pluto with --verbose you should get a more detailed error (if that's possible). |
good idea! just at a brief glance I can see some other things I should be tracking in that output.. From now on my action uses verbose, so I can provide better info for errors... and I can also debug any feed issues. Thanks! |
okie here's the --verbose output
|
Hello, wow - thanks for your diligence and help. Good to know that it is a HTTP redirect - somewhat weird why it loops forever. You might change the feed_url to use https (to avoid the redirect from http to https location). |
This feed is updating and showing up on the planet... but I regularly get this error \ fail to build:
The text was updated successfully, but these errors were encountered: