Skip to content

fix(hydra): gracefully handle 2xx responses with non-JSON-LD content …#165

Merged
soyuka merged 1 commit intoapi-platform:mainfrom
soyuka:fix/api-platform/admin-156
Feb 8, 2026
Merged

fix(hydra): gracefully handle 2xx responses with non-JSON-LD content …#165
soyuka merged 1 commit intoapi-platform:mainfrom
soyuka:fix/api-platform/admin-156

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 8, 2026

…type

Instead of checking for specific status codes (202, 204), ignore any 2xx response whose Content-Type is not application/ld+json or application/problem+json. This fixes errors when API operations (e.g. Symfony Messenger) return 202 Accepted with an empty or non-JSON-LD body.

Closes api-platform/admin#156

…type

Instead of checking for specific status codes (202, 204), ignore any 2xx
response whose Content-Type is not application/ld+json or
application/problem+json. This fixes errors when API operations (e.g.
Symfony Messenger) return 202 Accepted with an empty or non-JSON-LD body.

Closes api-platform/admin#156
@soyuka soyuka merged commit 13315a1 into api-platform:main Feb 8, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

hydraAdmin expects json body of 204 post response

1 participant