listen icon indicating copy to clipboard operation
listen copied to clipboard

Some problems with Docker

Open Striffly opened this issue 10 months ago • 3 comments

Description

Hello !

First of all, thank you for this incredible work! I can see that the library's architecture is evolving rapidly. The issues I will mention might be temporary, but just in case, I'm listing them here.

I'm encountering some problems when trying to access the dashboard using docker compose:

  • When accessing localhost:4173 directly in Chrome, I get the error ERR_CONNECTION_RESET.
  • In the dashboard's Dockerfile, using CMD ["bun", "run", "dev", "--host"], the page does appear but remains blank, and I get errors in the console (which are not very clear since the JS is built and obfuscated). These errors still appear even when using the solutions I mention below.
  • If I use CMD ["bun", "run", "dev", "--host"] and expose port 5173, I get a more specific error:
Uncaught TypeError: Endpoint URL must start with `http:` or `https:`.
    at useSolBalance (useSolBalance.ts:6:22)
    at Header (Header.tsx:43:35)

To fix this, I replaced const connection = new Connection(import.meta.env.VITE_RPC_URL); with const connection = new Connection(import.meta.env?.VITE_RPC_URL ?? "https://api.testnet.solana.com",);. However, this fix is not complete. I assume it primarily relies on my subtitution variable.

  • With this code update, using CMD ["bun", "run", "dev", "--host"] (without --host, it doesn't work) and accessing localhost:5173, I finally get the page to display!
  • However, I encounter one last issue: http://localhost:6969/v1/stream returns a 404. The Swagger API appears correctly at http://localhost:6969, but I can't do anything beyond that.

That's it! I hope my explanations were clear enough.

Steps to Reproduce

  • Fill dashboard/.env & listen-legacy/.env
  • Inside listen-legacy, run docker compose up

Additional Notes

No response

Striffly avatar Feb 08 '25 01:02 Striffly

localhost:4173 is for vite preview, try bun dev and localhost:5173, with the listen-kit, cargo run --bin server --features solana (or --features evm)

docker compose no longer works after listen-kit was derived from listen-legacy

the issue with Uncaught TypeError: Endpoint URL must start with http: or https:. is a missing env var, outside of docker it will pick up your local .env

piotrostr avatar Feb 12 '25 19:02 piotrostr

Is it possible to make the docker-compose work again ? It would be nice to be able to try the app with the dashboard & Docker Also regarding the endpoint URL error, my .env was properly filled 😬

Striffly avatar Feb 14 '25 20:02 Striffly

yeah the listen-legacy is not gonna be supported, it is getting sunsetted soon

right now the dashboard points to the listen-kit that requires a privy setup

the sole purpose of /dashboard and /preview was debugging services that will be used in the official listen-app soon, these wont be deployed into production

piotrostr avatar Feb 15 '25 11:02 piotrostr

app is now live

piotrostr avatar Mar 02 '25 12:03 piotrostr