[Edited title] React admin unusable, unable to load and blocking other requests for platform, probably something with redirect to pwa
See original GitHub issueAPI Platform version(s) affected: 2.6.0-2.6.2
Description
Docs and admin page is hanging without errors after any change and Chrome browser is loading \docs and \admin indefinitely.
How to reproduce
Just change something in PWA react app part or ApiResource and refresh browser.
Possible Solution
- restarting Docker every change done to ApiResources or PWA?
- don’t use \docs and \admin and only use Postman.
- wait if this will be somehow resolved for Caddy/Go lang? Issue: https://github.com/caddyserver/caddy/issues/3896
Additional Context
Possibly related errors from Docker:
{"level":"error","ts":1614298653.2000477,"logger":"http.log.access","msg":"handled request","request":{"remote_addr":"172.21.0.1:54626","proto":"HTTP/2.0","method":"GET","host":"localhost","uri":"/.well-known/mercure","headers":{"Caddy-Push":["1"],"Accept-Encoding":["gzip, deflate, br"],"Accept-Language":["en,sk-SK;q=0.9,sk;q=0.8,en-US;q=0.7"],"Accept":["text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"],"Cache-Control":["max-age=0"],"User-Agent":["Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36"]},"tls":{"resumed":false,"version":772,"cipher_suite":4865,"proto":"h2","proto_mutual":true,"server_name":"localhost"}},"common_log":"172.21.0.1 - - [26/Feb/2021:00:17:33 +0000] \"GET /.well-known/mercure HTTP/2.0\" 400 27","duration":0.001080793,"size":27,"status":400,"resp_headers":{"Server":["Caddy"],"Alt-Svc":["h3-32=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"],"X-Frame-Options":["DENY"],"X-Content-Type-Options":["nosniff"],"X-Xss-Protection":["1; mode=block"],"Content-Security-Policy":["default-src 'self' mercure.rocks cdn.jsdelivr.net"],"Content-Type":["text/plain; charset=utf-8"]}}
and
{"level":"error","ts":1614298653.862272,"logger":"http.handlers.reverse_proxy","msg":"aborting with incomplete response","error":"http2: stream closed"}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:8
Top GitHub Comments
You can fix it for now by disabling push in your Caddyfile (if your app isn’t using it ofc)
I am not using full api-platform for now, only PHP part. And also http/2 push functionality seems dead. At least for Chrome and Chromium. If it is/was related to this problem as mentioned in reactions. I am closing this ticket.