-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't load admin panel in 4.12.4 on the public internet #17634
Comments
Just want to confirm, I also have the same error after upgrade to 4.12.4 today, need to downgrade for now |
We've encountered the same issue by not upgrading (We've also upgraded |
Can also confirm, after upgrading to 4.12.4 from 4.12.1. - "@strapi/plugin-graphql": "^4.12.1",
- "@strapi/plugin-i18n": "4.12.1",
- "@strapi/plugin-users-permissions": "4.12.1",
- "@strapi/strapi": "4.12.1",
+ "@strapi/plugin-graphql": "^4.12.4",
+ "@strapi/plugin-i18n": "4.12.4",
+ "@strapi/plugin-users-permissions": "4.12.4",
+ "@strapi/strapi": "4.12.4", |
I've just tried to create a new strapi-app with Edit: i've just created an app at 4.12.1 and then upgraded to 4.12.4 and still do not receive this error, can you please provide a reproduction? |
Hello @exchgr, Thank you for reporting this bug, however we are unable to reproduce the issue you described given the information we have on hand. Can you please create a fresh project that you are able to reproduce the issue in, provide clear steps to reproduce this issue, and either upload this fresh project to a new GitHub repo or compress it into a We would greatly appreciate your assistance with this, by working in a fresh project it will cut out any possible variables that might be unrelated. Thank you! |
I can confirm what ⬆️ @joshuaellis said. Could you please try and delete your I was able to make |
@joshuaellis Also, we don't set |
This comment was marked as spam.
This comment was marked as spam.
Yes, you would have to deploy it to somewhere to reproduce it. |
@gu-stav can you try to self hosted the newest version somewhere? Local environment seems to be fine, no error related to Content Security Policy happened (refused to connect) |
This comment was marked as spam.
This comment was marked as spam.
I have deployed a new Strapi app on Strapi cloud and it is all working fine: ![]() @exneval As Josh said: please make sure you deploy a clean Docker container, which does not cache We haven't done any major changes in this area and I can't recall any change that would break the overall behavior. |
I'm using Production Dockerfile from the docs |
Will try to create a reproduction. Note that we're using a yarn cache (which is a separate thing than |
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
As Josh said: at this stage we need working reproduction (e.g. a Dockerfile) for a fresh 4.12.4 instance, to make sure there aren't any side-effects caused e.g. by a cached node_modules directory. |
Here it is
|
Another Hint when observing behavior 4.12.1 and 4.12.4 in a self hosted server 4.12.1: Trying to access 4.12.4: Trying to access |
I've tried exposing a local Strapi instance to the internet with ngrok, but the issue did not reproduce. I have a feeling that this would need far more complex setup to reproduce. Will continue to investigate tomorrow or later. |
Furthermore, I was able to reproduce this issue with a server running on localhost with these steps:
|
@matthewdenison thank you for the clue, that's answer my observation why strapi requesting to localhost for path |
I've also obtained a reproduction thanks to @exchgr and @matthewdenison.
Hope this helps! @joshuaellis @gu-stav |
Thank you for all of your clues and trying to find a reproduction 🙏🏼 - very helpful! I have informed the team that might have changed something around that and will keep you updated. |
I believe we have found the issue 🚀. Could you do me a favor and check if the experimental release Instead of version |
@gu-stav I can confirm that |
Wonderful. I'll leave the issue open till the next release (4.12.5, next Wednesday) to avoid duplicates and close it then. |
thank you all |
This issue has been mentioned on Strapi Community Forum. There might be relevant details there: |
Excuse me, what "version string" should be used instead of "4.12.4"? |
Still facing this on 4.12.5 with Node 20.5.1 |
I have not tried 4.12.5 yet. But do you use Strapi with Docker? Try remove all cache and build again. It might help. |
Hi @thematrixdev RUN STRAPI_ADMIN_BACKEND_URL=$STRAPI_ADMIN_BACKEND_URL HOST=$STRAPI_ADMIN_BACKEND_URL yarn build
CMD ["yarn", "start"] |
I can confirm that @zvonimirr make sure |
@cannorin I couldn't create a new app as I was updating an already existing app |
@zvonimirr It shouldn't matter if you are creating a new app or updating an existing one. Try removing |
Thanks bro, that fixed the issue in my case. |
This issue has been mentioned on Strapi Community Forum. There might be relevant details there: |
i'm having this bug now on 4.14.6 - all my files are TS, is it related? |
For the people coming here. I don't know why, and honestly i don't want to know. I had deleted Bringing back those files (named v4.14.6 |
Bug report
Required System information
Linux 30339f198cc4 5.15.49-linuxkit-pr #1 SMP PREEMPT Thu May 25 07:27:39 UTC 2023 aarch64 Linux
Describe the bug
The Strapi admin panel won't load. It shows an error banner with the text:
Looking in the browser console, the browser also tries to make several requests to http://localhost:1337, which makes no sense on the public internet. I haven't changed any configurations between 4.12.1 and 4.12.4.
Steps to reproduce the behavior
Expected behavior
The admin panel loads.
Screenshots
(hostname of my server redacted for privacy)
![Screenshot 2023-08-09 at 6 09 02 PM](https://private-user-images.githubusercontent.com/824678/259573146-035aaaa5-42a3-4af2-b45d-70234d5e881d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA0ODA0NzQsIm5iZiI6MTcyMDQ4MDE3NCwicGF0aCI6Ii84MjQ2NzgvMjU5NTczMTQ2LTAzNWFhYWE1LTQyYTMtNGFmMi1iNDVkLTcwMjM0ZDVlODgxZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcwOFQyMzA5MzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04ODYxNzlmOTk5MDgyZDA4ZmRmNDUwYmYwNzNiZmMwNGUxNTMyNTk2MTZjYWNmNDFhZTEzYzA3MzJiZWU5NmRhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.tltUJG9hxoDzfzubn3BWh2ordZt5GTsPJe-jY3GHuyg)
Code snippets
n/a
Additional context
I tried setting
STRAPI_ADMIN_BACKEND_URL
manually to the domain where my strapi server is, but it didn't work.The text was updated successfully, but these errors were encountered: