-
Notifications
You must be signed in to change notification settings - Fork 385
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
Better error handling if the header is empty #547
Comments
@spuglisi Is this still a problem in version 1.8.0 or can we close this issue? |
@Art4 I can confirm this is still an issue. I am seeing this a lot on an application I am working on. |
@arondeparon could you share a fresh error trace and a version of SimplePie you are using? |
@jtojnar sure. I am using SimplePie 1.8.0 (with a simple wrapper around it that adds no additional functionality). This trace is from 2 minutes ago:
This specific trace is caused by a lookup to https://gpt4all.io, which does not seem to return a content-type header. I do realize that the mentioned site is not a valid feed. I am not adding it myself. This error is the result of a user operation in my application. Regardless, this error should probably be handled :) |
Thanks this is the line: https://github.com/simplepie/simplepie/blob/1.8.0/src/SimplePie.php#L1836 It has been fixed in master (upcoming version 1.9.0): Line 1862 in e356f5d
|
Thanks! Looking forward to 1.9 :) Is there a timeline for this release? |
@arondeparon we have a roadmap #731 but no timeline, it might make sense to fix this in 1.8.1, though. |
@jtojnar thanks for sharing the roadmap! If it would be possible to release this in a minor release, that would definitely be great! If it can't be done (time is sparse after all) I think I will create a temporary fork to resolve this, because my Sentry dashboard is filling up rapidly 😅 |
Is there any chance a patch release can be made for this feature? I looked into creating my own fork but I'm not sure what other changes (and potential bugs) it might introduce due to other changes in this branch. |
@mblaney could you create the |
ok there's a |
@mblaney Unfortunately, the branch is based on master rather than 1.8.0? Could you please run |
ah sorry about that. should be good now |
simplepie throws an exception at SimplePie.php line 1648 if the server does not return a header, and there are those servers:
So maybe a better error handling would be more useful?
The text was updated successfully, but these errors were encountered: