Voice CoBrowse: "Trying to discover web socket url but the connection has no discovery url"

Dears,

I am following the same tutorial described in Co-browse Example

However, when I test the work by entering the security key, the following screen freeze:

Inside the console, this error appears: Unhandled promise rejection Error: "Trying to discover web socket url but the connection has no discovery url"

After, replacing all PureCloud URLs to my region (ie), I have these errors:

jsapi-startSharing-92dd5556.js:156 WebSocket connection to 'wss://cobrowse.mypurecloud.ie/ws?deploymentToken=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX%2F5GAIBEIA7StrUgK3PpBLODdziyTUJXdvq1ITs%2BdbU%2BU2Nn84Yl59k0rC2d5twdDx3Ao3gZRN%2FQn5Hs9ZF01CTZCw%3D.eyJzZWxmVXJpIjoiL2FwaS92Mi9jb2Jyb3dzZS9kZXBsb3ltZW50cyIsImtleSI6Ik94czhRNFFLMDBNeHJDOUo0aTZQcGlXUk5yenRkdnhKIiwibmFtZSI6IlZvaWNlQ29Ccm93c2UiLCJob3N0cyI6WyJodHRwOi8vbG9jYWxob3N0Ojg1LyIsIioiXSwiaWQiOiIxZWUzMGZlZS1hNzRiLTQxYzMtYWI4NC1lY2ZhZDMxZTU5ZmQiLCJhdXRvSm9pbiI6dHJ1ZSwidmlld2VyQ29udHJvbEFsbG93ZWQiOnRydWV9.5Ph84MpdlZc7QVStODU6kKVzG2Ei0mUolPiMGgXEkj0%3D' failed: HTTP Authentication failed; no valid credentials available

Any ideas about this issue? What is the cause?

Best Regards,
Ali

Hi Ali - the troubleshooting section for the Co-browse API suggests the following:

For chat and voice, the page says co-browse is starting, but the console prints an error similar to "Error: Trying to discover web socket url but the connection has no discovery url"

  • Make sure that your deployment key is accurate
  • Make sure that your domain or subdomain is listed accurately in your deployment key configuration. Co-browse will not allow connections to subdomains that are not listed.

You can find the full reference here: https://developer.mypurecloud.com/api/cobrowse/

Please let us know if you need any further assistance!

Hello Becky,

Thank you for the feedback.

If you see the last two lines in the error:
failed: HTTP Authentication failed; no valid credentials available

Even though I do not think my problem is related to deployment key or to domain/subdomain list, I will double check my work.

Thank you again.
Best Regards,
Ali

Hi Ali,

I’ve confirmed with our developers that this error can come from not including the correct domains in your deployment. Can you please check your domains?

Thank you! -Becky

If you verify your config is correct per Becky's message and are still encountering the error, please open a case with PureCloud Care to investigate further.

It looks like your config is incorrect please delete the trailing slash from the url in your deployment (http://localhost:85/ -> http://localhost:85)

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.