# Live preview not working

**URL:** <https://community.firebasestudio.dev/t/live-preview-not-working/9022>\
**Category:** General\
**Created:** [January 29, 2025, 3:16pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022 "2025-01-29T15:16:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Avijit\_Pal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/avijit_pal/32/457_2.png) [@Avijit\_Pal](https://community.firebasestudio.dev/u/Avijit_Pal)\
**Post date:** [January 29, 2025, 3:16pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/1 "2025-01-29T15:16:31Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/idxcommunity/original/2X/3/30085d48f60b594311e8661cdc4513149665a52b.png)

---

<div class="post-metadata">

**Author:** ![misba](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/misba/32/4120_2.png) [@misba](https://community.firebasestudio.dev/u/misba)\
**Post date:** [January 29, 2025, 9:10pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/2 "2025-01-29T21:10:15Z")

</div>

same here ,did it fix now ?

---

<div class="post-metadata">

**Author:** ![metalboyz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/metalboyz/32/3965_2.png) [@metalboyz](https://community.firebasestudio.dev/u/metalboyz)\
**Post date:** [January 29, 2025, 11:37pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/3 "2025-01-29T23:37:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Fourthhy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/fourthhy/32/4127_2.png) [@Fourthhy](https://community.firebasestudio.dev/u/Fourthhy)\
**Post date:** [January 30, 2025, 6:26am UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/4 "2025-01-30T06:26:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Kittipan-W](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kittipan-w/32/4128_2.png) [@Kittipan-W](https://community.firebasestudio.dev/u/Kittipan-W)\
**Post date:** [January 30, 2025, 7:12am UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/5 "2025-01-30T07:12:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ibgib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ibgib/32/1933_2.png) [@ibgib](https://community.firebasestudio.dev/u/ibgib)\
**Post date:** [January 30, 2025, 8:28pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/6 "2025-01-30T20:28:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ibgib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ibgib/32/1933_2.png) [@ibgib](https://community.firebasestudio.dev/u/ibgib)\
**Post date:** [January 30, 2025, 8:32pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/7 "2025-01-30T20:32:19Z")

</div>

> [@Kittipan-W](#):
>
> 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.

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.

---

<div class="post-metadata">

**Author:** ![artronID](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/artronid/32/3582_2.png) [@artronID](https://community.firebasestudio.dev/u/artronID)\
**Post date:** [January 30, 2025, 11:50pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/8 "2025-01-30T23:50:31Z")

</div>

Same here…

> Unable to decode current host

---

<div class="post-metadata">

**Author:** ![Miguel\_Borges](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/miguel_borges/32/1172_2.png) [@Miguel\_Borges](https://community.firebasestudio.dev/u/Miguel_Borges)\
**Post date:** [January 31, 2025, 1:43pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/9 "2025-01-31T13:43:39Z")

</div>

Just got the same issue…

```auto
Unable to decode current host

```

on Node/express project

---

<div class="post-metadata">

**Author:** ![fistybog90](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/fistybog90/32/4146_2.png) [@fistybog90](https://community.firebasestudio.dev/u/fistybog90)\
**Post date:** [January 31, 2025, 2:47pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/10 "2025-01-31T14:47:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![KELLOU\_Abdelghani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kellou_abdelghani/32/4145_2.png) [@KELLOU\_Abdelghani](https://community.firebasestudio.dev/u/KELLOU_Abdelghani)\
**Post date:** [January 31, 2025, 4:23pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/11 "2025-01-31T16:23:43Z")

</div>

Same im getting

Unable to decode current host

---

<div class="post-metadata">

**Author:** ![Avijit\_Pal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/avijit_pal/32/457_2.png) [@Avijit\_Pal](https://community.firebasestudio.dev/u/Avijit_Pal)\
**Post date:** [January 31, 2025, 4:47pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/12 "2025-01-31T16:47:19Z")

</div>

@all, this issue seems to be caused by cookies. Please try these two options:

1. Open your IDX account in a different browser.
2. 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.

---

<div class="post-metadata">

**Author:** ![Miguel\_Borges](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/miguel_borges/32/1172_2.png) [@Miguel\_Borges](https://community.firebasestudio.dev/u/Miguel_Borges)\
**Post date:** [January 31, 2025, 5:01pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/13 "2025-01-31T17:01:35Z")

</div>

i tried it on an incognito page, didn’t work

---

<div class="post-metadata">

**Author:** ![Kingsley\_Muturi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kingsley_muturi/32/4150_2.png) [@Kingsley\_Muturi](https://community.firebasestudio.dev/u/Kingsley_Muturi)\
**Post date:** [January 31, 2025, 5:08pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/14 "2025-01-31T17:08:53Z")

</div>

I am experiencing the same exact issue… tried incognito…different browser… nothing worked

---

<div class="post-metadata">

**Author:** ![KELLOU\_Abdelghani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kellou_abdelghani/32/4145_2.png) [@KELLOU\_Abdelghani](https://community.firebasestudio.dev/u/KELLOU_Abdelghani)\
**Post date:** [January 31, 2025, 7:05pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/15 "2025-01-31T19:05:14Z")

</div>

I tired that and it did not work

---

<div class="post-metadata">

**Author:** ![mohamed\_karim](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/mohamed_karim/32/2712_2.png) [@mohamed\_karim](https://community.firebasestudio.dev/u/mohamed_karim)\
**Post date:** [January 31, 2025, 9:41pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/16 "2025-01-31T21:41:50Z")

</div>

Thank you for sharing and how to solve the problem

---

<div class="post-metadata">

**Author:** ![immachakata](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/immachakata/32/4152_2.png) [@immachakata](https://community.firebasestudio.dev/u/immachakata)\
**Post date:** [February 1, 2025, 2:01am UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/17 "2025-02-01T02:01:40Z")

</div>

Has anyone managed to solve this?  
CC: @kirupac

---

<div class="post-metadata">

**Author:** ![ibgib](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ibgib/32/1933_2.png) [@ibgib](https://community.firebasestudio.dev/u/ibgib)\
**Post date:** [February 1, 2025, 2:55pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/18 "2025-02-01T14:55:21Z")

</div>

> [@Avijit\_Pal](#):
>
> 1. Open your IDX account in a different browser.
> 2. Clear your cookies, log out of IDX, and then log back in.

@Avijit_Pal

This worked when I moved to Firefox. However, I “cleared my cookies” for [idx.google.com](http://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?

---

<div class="post-metadata">

**Author:** ![Avijit\_Pal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/avijit_pal/32/457_2.png) [@Avijit\_Pal](https://community.firebasestudio.dev/u/Avijit_Pal)\
**Post date:** [February 1, 2025, 6:15pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/19 "2025-02-01T18:15:17Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![and.gpch.dev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/and.gpch.dev/32/4164_2.png) [@and.gpch.dev](https://community.firebasestudio.dev/u/and.gpch.dev)\
**Post date:** [February 1, 2025, 9:51pm UTC](https://community.firebasestudio.dev/t/live-preview-not-working/9022/20 "2025-02-01T21:51:38Z")

</div>

Make my port public solves the issue. just clicking on lock icon. 🤓

 ![image](https://us1.discourse-cdn.com/flex002/uploads/idxcommunity/original/2X/d/d0d848eb014c1cd1134f9bfdbcc445fe37a2b985.png)

[Next page](https://community.firebasestudio.dev/t/live-preview-not-working/9022.md?page=2)
