Skip to content
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

Unable to connect to relay server: Could not connect to "http://localhost:8081" #61

Open
techybolek opened this issue Oct 15, 2024 · 1 comment

Comments

@techybolek
Copy link

techybolek commented Oct 15, 2024

I start my relay server using npm run relay:

 [nodemon] starting `node ./relay-server/index.js`
[RealtimeRelay] Listening on ws://localhost:8081

I edit my .env:

OPENAI_API_KEY=<MY_API_KEY>
REACT_APP_LOCAL_RELAY_SERVER_URL=http://localhost:8081

Then I launch react using npm start. When I click connect the browser errors out with:

Could not connect to "http://localhost:8081"
    at WebSocket.connectionErrorHandler (http://localhost:3000/static/js/bundle.js:59606:18)

@marcelvanworkum
Copy link

You need to first run npm run relay to start the relay server. (Leave that running in another shell, before you run npm start)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants