question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Edited title] React admin unusable, unable to load and blocking other requests for platform, probably something with redirect to pwa

See original GitHub issue

API 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

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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

3reactions
Autsider666commented, Apr 4, 2021

You can fix it for now by disabling push in your Caddyfile (if your app isn’t using it ofc)

0reactions
Antariancommented, Nov 25, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-admin - Querying the API - Marmelab
Querying the API. React-admin provides special hooks to emit read and write queries to the dataProvider , which in turn sends requests to...
Read more >
What I wish I had known about single page applications
I settled on JHipster, a development platform for building web applications using modern technology: Angular, React or Vue for the client ...
Read more >
Platform Server - OutSystems Support
Fixed an issue that caused a deployment to fail with an ORA-01440 error in environments using an Oracle database. This occurred when deploying...
Read more >
Archived release notes - Chrome Enterprise and Education Help
Note: For information about the current Chrome versions and targeted releases, see Chrome Enterprise release notes. For administrators who manage Chrome browser ...
Read more >
Javascript hide address bar mobile - Seba Online
When you have changed an address, for example a new domain name, you should perform a 301 redirect. html","myPop","location=no,toolbar=no,menubar=yes ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found