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

(Help Wanted) can't connect to private server #103

Open
StreamersConnected opened this issue Jun 12, 2017 · 7 comments
Open

(Help Wanted) can't connect to private server #103

StreamersConnected opened this issue Jun 12, 2017 · 7 comments

Comments

@StreamersConnected
Copy link

StreamersConnected commented Jun 12, 2017

I'm having trouble connecting it to a privately hosted cytu.be server. It won't load into any of the channels even though its connecting to the actual server.

@StreamersConnected StreamersConnected changed the title (Helped Wanted) can't connect to private server (Help Wanted) can't connect to private server Jun 12, 2017
@d-dd
Copy link
Owner

d-dd commented Jun 13, 2017

Is it spitting out any errors?
Yukari is heavily customized for our channel's use (which play Vocaloid music), and I haven't tested setup in a long time. If you need a general bot, https://github.com/nuclearace/CytubeBot is better documented.

@StreamersConnected
Copy link
Author

The only error I could notice is this.
] 2017-06-12T03:00:09+0100 [CytubeClient] (onClose) Closed Protocol connection. wasClean:False code1006, reasonconnection was closed uncleanly (WebSo cket connection upgrade failed (200 - OK)) 2017-06-12T03:00:09+0100 [CytubeClient] CHECKING CHANNEL CONFIG--------------------------- 2017-06-12T03:00:09+0100 [connections.cytube.cyClient.WSService#info] sending GET for ws servers url: https://movie-nights.streamersconnected.tv/so cketconfig/StreamersConnected.json 2017-06-12T03:00:09+0100 [-] <twisted.internet.tcp.Connector instance at 0x7f99c4e44cb0> will retry in 107 seconds 2017-06-12T03:00:09+0100 [connections.cytube.cyClient.WsFactory#info] Stopping factory <connections.cytube.cyClient.WsFactory object at 0x7f99c4e30 450> 2017-06-12T03:00:09+0100 [twisted.web.client._HTTP11ClientFactory#info] Starting factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f9 9c4dd8c20> 2017-06-12T03:00:09+0100 [connections.cytube.cyClient.WSService#debug] 200 response 2017-06-12T03:00:09+0100 [connections.cytube.cyClient.WSService#info] comparing WSURLS! 2017-06-12T03:00:09+0100 [connections.cytube.cyClient.WSService#info] Failed to retrieve servers from channel.json 2017-06-12T03:00:09+0100 [twisted.web.client._HTTP11ClientFactory#info] Stopping factory <twisted.web.client._HTTP11ClientFactory instance at 0x7f9 9c4dd8c20>

@d-dd
Copy link
Owner

d-dd commented Jun 14, 2017

How are you starting it?
I think I forgot to document it, but yukari.py is not used anymore. Please run tacfile.py with twistd instead; e.g.
twistd -noy tacfile.py --logfile log.log

twistd info: https://twistedmatrix.com/documents/current/core/howto/basics.html

@d-dd
Copy link
Owner

d-dd commented Jun 14, 2017

Oh actually, the error is at retrieving channel.json.
What do you get if you manually go to https://{your_domain}/socketconfig/{your_channel}.json?

@StreamersConnected
Copy link
Author

I get this, and sorry for the late reply. https://gyazo.com/3b44e3ef7eb4a4cbc9cc41f7ef0a48cf

@StreamersConnected
Copy link
Author

and I do run tacfile.py

@d-dd
Copy link
Owner

d-dd commented Jun 18, 2017

Oh sorry, it doesn't connect because the WS connection is not secure.
Can you try changing the line

def cbMakeWsUrl(self, response, secure=True):

def cbMakeWsUrl(self, response, secure=True): to def cbMakeWsUrl(self, response, secure=False):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants