ari-proxy icon indicating copy to clipboard operation
ari-proxy copied to clipboard

Getting error Failed to construct websocket url

Open debojitkakoti opened this issue 3 years ago • 1 comments

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" \

debojitkakoti avatar Jun 02 '22 13:06 debojitkakoti

@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.

jose-lopes avatar Jun 11 '22 16:06 jose-lopes