Some problems with Docker
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:4173directly in Chrome, I get the errorERR_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 accessinglocalhost:5173, I finally get the page to display! - However, I encounter one last issue:
http://localhost:6969/v1/streamreturns a 404. The Swagger API appears correctly athttp://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, rundocker compose up
Additional Notes
No response
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
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 😬
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
app is now live