Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error message is not displayed on DELETE error

Open
#381 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
react, typescript
Domain
api, frontend

Research direction

Start in src/hydra/fetchHydra.js at line 38 and reproduce a failed DELETE through the dataProvider. Verify that the backend error description appears in the notification instead of the generic “Bad request” message, including the failed context request described in the issue.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
516
Forks
134
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from api-platform/admin

All issues in api-platform/admin

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.