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

Missing Exception Renderer for MethodNotAllowedHttpException #21

Closed
martianatwork opened this issue Feb 7, 2021 · 2 comments
Closed

Comments

@martianatwork
Copy link

No description provided.

@lindyhopchris
Copy link
Contributor

Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException is already handled by the exception parser, because it implements the HttpExceptionInterface.

Can you double check the exception class to make sure you've reported the correct one? Plus if you are getting an exception that is not rendered - what's triggering the exception?

@lindyhopchris
Copy link
Contributor

I'm closing this because I think you mean the Symfony\Component\Routing\Exception\MethodNotAllowedException - which isn't encountered in normal Laravel request/response handling.

The Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException is already handled by the exception parser, because it implements the HttpExceptionInterface. I added this test to ensure that it was covered:
laravel-json-api/exceptions@fd6c2e0

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