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

An invalid or illegal string was specified when socket server is down #731

Open
cubecleveland opened this issue Mar 7, 2023 · 2 comments
Labels
question Discussion about functionality stale

Comments

@cubecleveland
Copy link

Hello,
When trying to open a websocket cnnection to an unidentifeid address we get this error
SyntaxError: An invalid or illegal string was specified

SyntaxError: An invalid or illegal string was specified
l
C:/lib/components/ws-source/openwebsocket.ts:72

69 | reject(originalError)
70 | return
71 | }

72 | const token = this.responseText.trim()
| ^ 73 | // We have a token! attempt to open a WebSocket again.
74 | const newUri = ${uri}?rtspwssession=${token}
75 | const ws2 = new WebSocket(newUri, protocol)

Can u guide us as how we can catch this error in the code ?

@cubecleveland cubecleveland added the question Discussion about functionality label Mar 7, 2023
@steabert
Copy link
Member

Can you provide some more details? Are you connecting to a camera directly?

@github-actions
Copy link

This issue is stale because it has been open for 90 days with no activity.

@github-actions github-actions bot added the stale label Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Discussion about functionality stale
Projects
None yet
Development

No branches or pull requests

2 participants