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

Error message is not displayed on DELETE error #381

Open
anjeylink opened this issue May 31, 2021 · 0 comments
Open

Error message is not displayed on DELETE error #381

anjeylink opened this issue May 31, 2021 · 0 comments

Comments

@anjeylink
Copy link
Contributor

API Platform Core version: 2.6.4
API Platform Admin version: 2.6.0

Description
Error message description is not shown if something went wrong while deleting record using dataProvider.

How to reproduce

  1. Delete record using dataProvider.
  2. If error occurs on backend it will try to parse jsonld and issue a request to "/api/context/Error" with method "DELETE". This cause no content to return.
  3. Notification with regular "Bad request" error messages will be shown instead of error description from backend.

Possible Solution
In src/hydra/fetchHydra.js on line 38 replace "DELETE" method with "GET" in authOptions.

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

1 participant