Why is my websocket closing with code 1002?

MikeTT
Prestwick ✭
I've been working with our 2nd Omnicore controller and unfortunately I am having trouble subscribing to resources via the Web API using a websocket connection. The websocket immediately closes with the following code:
"<info>closed Code: 1002 Reason: An exception has occurred while connecting."
This is confusing as we are using the same code and the same setup as with our 1st Omnicore system, where websockets are working ok.
The working system is running RobotControl 7.0.4 whereas the system we are having issues with was originally running 7.2.2, but I upgraded it to 7.3.0 in hopes of fixing the issue. However unfortunately it did not.
Below are the relevant REST interactions with the robot controller:
27/09/2021 13:47:00.089 PM : Session: 1 : POST : https://192.168.3.221:443//subscription : resources=1&1=/rw/panel/ctrl-state&1-p=1 : Starting
27/09/2021 13:47:00.200 PM : Session: 1 : POST : https://192.168.3.221:443//subscription : resources=1&1=/rw/panel/ctrl-state&1-p=1 : Complete
27/09/2021 13:47:00.200 PM : SUBSCRIPTION - Location: wss://192.168.3.221:443/poll/11 groupID: 11 : SUBSCRIPTION
27/09/2021 13:47:00.200 PM : SUBSCRIPTION - Cookies: -http-session-=24::http.session::11b801e5c15740036264713061ee4d76; path=/; domain=192.168.3.221; secure; httponly,ABBCX=2228237; path=/; domain=192.168.3.221; httponly : SUBSCRIPTION
27/09/2021 13:47:00.266 PM : Session: 1 : DELETE : https://192.168.3.221:443//subscription/11//rw/panel/ctrl-state : : Starting
27/09/2021 13:47:00.271 PM : Session: 1 : DELETE : https://192.168.3.221:443//subscription/11//rw/panel/ctrl-state : : Complete
For our C# code we are using virtually the same code as what is shown in the ElogSubscriber example provided by ABB. Though we have added this line in the WsConnect method:
"websocket.SslConfiguration.EnabledSslProtocols = SslProtocols.Tls12;"
Does anyone have any ideas as to what is going on here? If you need more information from me please just let me know.
Thanks,
Mike
"<info>closed Code: 1002 Reason: An exception has occurred while connecting."
This is confusing as we are using the same code and the same setup as with our 1st Omnicore system, where websockets are working ok.
The working system is running RobotControl 7.0.4 whereas the system we are having issues with was originally running 7.2.2, but I upgraded it to 7.3.0 in hopes of fixing the issue. However unfortunately it did not.
Below are the relevant REST interactions with the robot controller:
27/09/2021 13:47:00.089 PM : Session: 1 : POST : https://192.168.3.221:443//subscription : resources=1&1=/rw/panel/ctrl-state&1-p=1 : Starting
27/09/2021 13:47:00.200 PM : Session: 1 : POST : https://192.168.3.221:443//subscription : resources=1&1=/rw/panel/ctrl-state&1-p=1 : Complete
27/09/2021 13:47:00.200 PM : SUBSCRIPTION - Location: wss://192.168.3.221:443/poll/11 groupID: 11 : SUBSCRIPTION
27/09/2021 13:47:00.200 PM : SUBSCRIPTION - Cookies: -http-session-=24::http.session::11b801e5c15740036264713061ee4d76; path=/; domain=192.168.3.221; secure; httponly,ABBCX=2228237; path=/; domain=192.168.3.221; httponly : SUBSCRIPTION
27/09/2021 13:47:00.266 PM : Session: 1 : DELETE : https://192.168.3.221:443//subscription/11//rw/panel/ctrl-state : : Starting
27/09/2021 13:47:00.271 PM : Session: 1 : DELETE : https://192.168.3.221:443//subscription/11//rw/panel/ctrl-state : : Complete
For our C# code we are using virtually the same code as what is shown in the ElogSubscriber example provided by ABB. Though we have added this line in the WsConnect method:
"websocket.SslConfiguration.EnabledSslProtocols = SslProtocols.Tls12;"
Does anyone have any ideas as to what is going on here? If you need more information from me please just let me know.
Thanks,
Mike
Categories
- 10.1K All Categories
- 5.2K RobotStudio
- 323 UpFeed
- 8 Tutorials
- 1 RobotApps
- 273 PowerPacs
- 401 RobotStudio S4
- 1.7K Developer Tools
- 224 ScreenMaker
- 2.6K Robot Controller
- 206 IRC5
- 26 OmniCore
- 5 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 621 RAPID Programming
- 14 Wizard Easy Programming
- 98 Collaborative Robots
- 3 Job listings