I am getting the error while running npm run dev
for nextjs project. The live host or local host for IDX is not opening and showing this error:
same here ,did it fix now ?
Same issue when opening the preview link on my phone browser, but it works just fine on my desktop browser. I think thereās something wrong with the url encoding
Thereās something wrong with the cookies I guess, as far as I know, idx run the websites to browsers that enables third-party cookies (TPC).
Since chrome (if you will go to the console) said that it will run without TPC, itāll really affect idxās performance, hence from the url if you run it
/_workstation/forwardAuthCookie?redirectToken=SAMPLE_TOKEN_VALUE
Maybe weāll just wait, but I hope they fix it soon
Thank god I see this thread, I can view the preview on the IDX but when I click to Open in New Window I see the exact same phrase. Iāve attempted to fix such issue for about 30 mins, delete history, clear cache, create new workspace, reset environment, and try different ports, but nothing worked.
Iām also have this issue. Searching for the error message doesnāt bring this up, since the OP is in an image. Here is the actual error message to help the search results:
Unable to decode current host
Yes, Iāve also done this and Iām still getting the error also.
I canāt use the built-in web preview because I need to prompt the user and that automatically is failing in the built-in web preview tab.
Same hereā¦
Unable to decode current host
Just got the same issueā¦
Unable to decode current host
on Node/express project
Same here,
- Web View Extension
- Gemini
- npm run dev
all the same
Command āGemini: Chat with Geminiā resulted in an error
command āaichat.promptā not found
Command āProject IDX: Reload Web Previewā resulted in an error
command āmonospace.reloadWebā not found
Unable to decode current host
Same im getting
Unable to decode current host
@all, this issue seems to be caused by cookies. Please try these two options:
- Open your IDX account in a different browser.
- Clear your cookies, log out of IDX, and then log back in.
Alternatively, you can make the live URL or port public. This will resolve the issue, as the preview site wonāt need to validate the cookie.
Please share your updates on whether these solutions work.
i tried it on an incognito page, didnāt work
I am experiencing the same exact issueā¦ tried incognitoā¦different browserā¦ nothing worked
I tired that and it did not work
Thank you for sharing and how to solve the problem
Has anyone managed to solve this?
CC: @kirupac
This worked when I moved to Firefox. However, I ācleared my cookiesā for idx.google.com (EDIT: Iāve now tried clearing all google and cloudstation cookies) and all of the embedded sites, signed out (which signed out my entire Google account), restarted the browser (Vivaldi), logged back in and the error persists. Am I supposed to clear all of my google cookies in existence?
have you tried make PORT public? let me know if you face any issue while doing this. You need to click on the IDX icon on the side bar and at the bottom youāll find the PORT forward settings