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

"internal server error" message on requests not returning 500 status code #415

Open
ABouchard55 opened this issue May 17, 2023 · 1 comment

Comments

@ABouchard55
Copy link

I've been fighting we a particular RSS Feed platform returning an "internal server error" message from an exception.

After commenting every try/catch I could find in the stack, I finally had the message from Guzzle saying "405: Method not allowed". Turns out, this provider doesn't accept HEAD requests.

So first thing, "internal server error", the message for a ServerErrorException, sent in HTTP/Client, should not be the default case.

Also, I don't seem to be able to avoid using the HEAD method method in the Reader class, $modifiedSince is forced to be defined and will trigger a HEAD request in Http/Client::getResponse();

@alexdebril
Copy link
Owner

You can inject your own HTTP reader to feed-io when building its main object. That way, you can define the error management and the headers sent through each query.

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

2 participants