Closed herndlm closed 2 months ago
Try to debug more where hydra response is expanded, I guess it works with api-platform/core 3.1.x but not with 3.2.x (?, not verified):
3.4.5 works for me as expected with api platform 3.2, 3.3.2 tested.
@ type, @ id gets the extra prefix as @herndlm pictures shows
server response looks correct:
getDocumentationUrlFromHeaders(headers) gives back full url to /api/docs.jsonld
@PawelSuwinski do you have any other suggestion?
another hint maybe less usefull it does not step into the documentLoader
my question is, which one is the correct format?
I unfortunately didn't find more time to further debug it yet :/ but looks like you found the issue and fix already @PawelSuwinski. thx!
@herndlm and @papppeter thanks for test cases and for debugging.
API Platform version(s) affected: 3.2.20
@api-platform/admin@3.4.6 @api-platform/api-doc-parser@0.16.4
Description
API validation errors result in generic "Server communication error" in react-admin
How to reproduce
Possible Solution
Additional Context
Interestingly it seems to be still working with @api-platform/admin@3.4.5. What confuses me is that 3.4.6 claims to fix issues like these.
API response: content-type: application/problem+json; charset=utf-8 body:
react-admin UI behaviour![image](https://github.com/api-platform/admin/assets/5738896/d87422b4-e2c7-4bee-a532-ee0613bf4d34)
Step debugging with 3.4.5 where it works![image](https://github.com/api-platform/admin/assets/5738896/28748a83-b9a6-437d-a6ef-056514cbc53c)
Step debugging with 3.4.6 where it doesn't work![image](https://github.com/api-platform/admin/assets/5738896/ff692cc6-7547-4e2c-be46-0c2e135a7ace)
There seems to be something going on with the protocol/domain/port part in props or their values. I wonder if I misconfigured something, somewhere. Not sure, if related, but API platform's
rfc_7807_compliant_errors
istrue
and changing this doesn't change anything apparently.Is this in any way useful, maybe to give me further tips at least how to debug? I can't create a simple producer at the moment unfortunately.