Question / Help Connection error when attempting to stream on Facebook

ileaves2live

New Member
Hi guys, I recently got OBS Studio because I wanted to stream some games on Facebook, however, when I try to stream I am constantly met with a connection error that just says "Failed to connect to server". I have made sure that my stream key and URL are both correct but the connection still persists. The weird part is that when I try to stream on Twitch, there was no issue at all. I'm trying to search for solutions online but could not find any either, so I hope someone here is able to help me with this.

I have attached the link to the log file below, I hope it is of use.

https://gist.github.com/9df9ae27d4afc19747998cc95c959920

Thanks all.
 

RytoEX

Forum Admin
Forum Moderator
Developer
Your log file doesn't show a streaming attempt. Did you try to start a streaming session before uploading the log file?
 

ileaves2live

New Member
Your log file doesn't show a streaming attempt. Did you try to start a streaming session before uploading the log file?

The problem is the streaming session doesn't start I think... I click the start streaming button and the error immediately shows up without any attempt of starting the stream
 

RytoEX

Forum Admin
Forum Moderator
Developer
Even if streaming doesn't start, there should still be some kind of output in the logs indicating that the streaming session could not start. Assuming you have OBS Studio completely closed, try this:
  1. Open OBS Studio.
  2. Click Start Streaming.
  3. Wait 30-60 seconds.
  4. Click Stop Streaming.
  5. Upload your current log file Menu Bar > Help > Log Files > Upload Current Log File.
If there's some kind of graphical error dialog box popping up, where in the above steps is that error occurring? Also, a copy or screenshot of that error may be useful.
 

ileaves2live

New Member
Even if streaming doesn't start, there should still be some kind of output in the logs indicating that the streaming session could not start. Assuming you have OBS Studio completely closed, try this:
  1. Open OBS Studio.
  2. Click Start Streaming.
  3. Wait 30-60 seconds.
  4. Click Stop Streaming.
  5. Upload your current log file Menu Bar > Help > Log Files > Upload Current Log File.
If there's some kind of graphical error dialog box popping up, where in the above steps is that error occurring? Also, a copy or screenshot of that error may be useful.

upload_2016-9-24_23-37-57.png

The error appears the instant I click Start Streaming. When I close the error OBS doesn't start streaming at all so I don't have a Stop Streaming option.

https://gist.github.com/7a6217f14e420d65e0343dad94d657e0

This is what I've gotten following everything you have said except the streaming part because it doesn't work
 

Attachments

  • obs error.png
    obs error.png
    222.4 KB · Views: 312

RytoEX

Forum Admin
Forum Moderator
Developer
And here's the issue:
23:29:52.684: RTMP_Connect1, no SSL/TLS support
23:29:52.684: [rtmp stream: 'simple_stream'] Connection to rtmps://rtmp-api.facebook.com:443/rtmp/ failed: -2

Looks like there's no SSL/TLS support, so you can't use the RTMPS URL. Try the regular RTMP URL instead?
 

ileaves2live

New Member
And here's the issue:


Looks like there's no SSL/TLS support, so you can't use the RTMPS URL. Try the regular RTMP URL instead?

I'm not quite sure what you mean, but I changed what I think you meant and tried again but it still doesn't work.

https://gist.github.com/250054d62c0fda7246b057e03d365259

If that wasn't what you told me to change then what specifically do I have to change? Also if that was what you were referring to then is there anything else I can change to help let it work?
 

RytoEX

Forum Admin
Forum Moderator
Developer
If you read Facebook's guides on Facebook Live, it has you go through the setup of getting your stream URL. If you check "Secure Connection (SSL)", it gives you a stream URL that starts with RTMPS. Uncheck it, and it'll give you one that starts with RTMP. OBS Studio (or something it uses, or your system) doesn't appear to support RTMPS for Facebook Live.

The Facebook Live guide from this forum doesn't have you enable "Secure Connection (SSL)".
 
Last edited:

ileaves2live

New Member
If you read Facebook's guides on Facebook Live, it has you go through the setup of getting your stream URL. If you check "Secure Connection (SSL)", it gives you a stream URL that starts with RTMPS. Uncheck it, and it'll give you one that starts with RTMP. OBS Studio (or something it uses) doesn't appear to support RTMPS for Facebook Live.

The Facebook Live guide from this forum doesn't have you enable "Secure Connection (SSL)".

Oh then in that case the log that I've uploaded above is after unchecking the SSL box just like you said, can you take a look and see if there is any other problem?
 

RytoEX

Forum Admin
Forum Moderator
Developer
23:44:27.919: HandShake: Type mismatch: client sent 3, server answered 72
23:44:27.920: RTMPSockBuf_Fill, remote host closed connection
23:44:27.920: RTMP_Connect1, handshake failed.
23:44:27.920: [rtmp stream: 'simple_stream'] Connection to rtmp://rtmp-api.facebook.com:80/rtmp/ failed: -2
Have you tried updating your stream key? Stream keys expire after 24 hours. I'm not sure if it expires your key after you change the connection type.

Let us know if that doesn't help.
 

ileaves2live

New Member
Can you try this either in a new OBS Studio profile or in an instance of OBS Studio in portable mode?

I tried again after making a new OBS studio profile but it still failed, this is the log that was given to me after that:
https://gist.github.com/9cc1b14648d46bc187e67cdd06d13442

I tried doing the steps to get it to be set to portable mode but I wasn't able to open up OBS any more after I followed the instructions. These are the 2 errors I get when I try to launch the application after attempting to set it to be in portable mode:

upload_2016-9-25_10-8-21.png
 

Attachments

  • obs error 2.png
    obs error 2.png
    20.9 KB · Views: 86

RytoEX

Forum Admin
Forum Moderator
Developer
Hmm, same error.

When running portable mode, you have to extract the OBS Studio zip file (not the installer, and not the source code zip) to a folder that isn't in your Program Files folder. Extract it to a folder separate from your normal OBS Studio folder. Your desktop or your user download folder should be fine, for example.
 

ileaves2live

New Member
Hmm, same error.

When running portable mode, you have to extract the OBS Studio zip file (not the installer, and not the source code zip) to a folder that isn't in your Program Files folder. Extract it to a folder separate from your normal OBS Studio folder. Your desktop or your user download folder should be fine, for example.


Where can I get the OBS studio zip file? The one I downloaded from the main website is just an installer.
 

n1kn0k

New Member
Hi guys, I recently got OBS Studio because I wanted to stream some games on Facebook, however, when I try to stream I am constantly met with a connection error that just says "Failed to connect to server". I have made sure that my stream key and URL are both correct but the connection still persists. The weird part is that when I try to stream on Twitch, there was no issue at all. I'm trying to search for solutions online but could not find any either, so I hope someone here is able to help me with this.

I have attached the link to the log file below, I hope it is of use.

https://gist.github.com/9df9ae27d4afc19747998cc95c959920

Thanks all.


Have you tried changing "Bind to IP" from "Default" to specific interface that has internet connection? You can find the Network setting under Advanced tab.
 
Top