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

Getting error Failed to construct websocket url #43

Open
debojitkakoti opened this issue Jun 2, 2022 · 1 comment
Open

Getting error Failed to construct websocket url #43

debojitkakoti opened this issue Jun 2, 2022 · 1 comment

Comments

@debojitkakoti
Copy link

I am running ari-proxy 5.2.3 but getting following error

Error: failed to connect to ARI: failed to create websocket configuration: Failed to construct websocket config: parse "\"ws://localhost:8088/ari/events\"?app=my_test_app": invalid URI for request
t=2022-06-02T13:04:47+0000 lvl=info msg="starting ari-proxy server" version=5.2.3
t=2022-06-02T13:04:47+0000 lvl=eror msg="server died" error="failed to connect to ARI: failed to create websocket configuration: Failed to construct websocket config: parse \"\\\"ws://localhost:8088/ari/events\\\"?app=my_test_app\": invalid URI for request"

Passed all environment variables as follows.

     -e ARI_APPLICATION="my_test_app" \
     -e ARI_USERNAME="demo-user" \
     -e ARI_PASSWORD="supersecret" \
     -e ARI_HTTP_URL="http://localhost:8088/ari" \
     -e ARI_WEBSOCKET_URL="ws://localhost:8088/ari/events" \
     -e NATS_URL="nats://nats:4222" \
@jose-lopes
Copy link
Contributor

@debojitkakoti
I think you have quotes when it is unnecessary (maybe you are using them in a script).
Try to check ARI_WEBSOCKET_URL variable.

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