obs-websocket-community-projects / obs-websocket-js

Consumes https://github.com/obsproject/obs-websocket
MIT License
667 stars 96 forks source link

seldomly unable to connect to OBS #162

Closed Nameless9 closed 3 years ago

Nameless9 commented 5 years ago

Description:

Suppose I have the following .connect method for obs, my program randomly decides to not connect to obs. obs.connect(connectinfo) .then(...) .catch(e => { console.error("custom unable to connect error msg"); console.error (e)}); During some good days, the program runs fine. And then during bad days, the program doesn't connect to OBS (it shows the error messages of unable to connect around 1-2 minutes later). This is completely random and I'm unable to reproduce it. At first I thought there was something wrong with the plugin since passwords don't get saved. My logic being the connectinfo object's password field is wrong, therefore program must be unable to connect to OBS. However, I later learned the default password of OBS yesterday and it was able to connect to OBS yesterday and thought it solved it. But no, yesterday was a lucky day, and today was unlucky.

Note: OBS studio is online at all times

Does it mean that there are some issues in the backend? Or is it purely something wrong with plugin? even though I'm sending the right IP, Port and password info? Please enlighten me regarding this as I have no clue. Cheers, mate!

Versions Used (if applicable):