mbeam Posted March 8, 2018 Share Posted March 8, 2018 (edited) I have a php cron script that uses curl to check twitch.tv to see if a users stream is live or not. everything was working fine last week , I didn't change anything in my code but now im getting : cURL Error (35): error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol errors when the cron runs any ideas what changed or whats going on ? Edited March 8, 2018 by mbeam Quote Link to comment Share on other sites More sharing options...
mbeam Posted March 8, 2018 Author Share Posted March 8, 2018 The same code works fine on my home network using a web server on my raspberry pi, A server side configuration change has been made from what i can tell with my research. I have tried re enabling / re issuing a ssl in the control panel to see if it helps and is still a no go. I have also tried https://letsencrypt.org/ to generate a cert but failed due anti bot security response <script type="text/javascript" src="/aes.js" ></script> that is returned when trying to validate, I have also tried adding CURLOPT_SSLVERSION => 3, to the curl script to force version and still a no go. TLDR : Im still stuck and its not working. Quote Link to comment Share on other sites More sharing options...
mbeam Posted March 8, 2018 Author Share Posted March 8, 2018 (edited) Cloudfare : Quote We were unable to identify mypodcast.is-great.net as a registered domain Please ensure you are providing the root domain and not any subdomains (e.g., example.com, not subdomain.example.com) (Code: 1099) I never had to set a ssl cert before to get it to work, im just trying it as a possible solution. The site is on free hosting , https://mypodcast.is-great.net/ The cron job is at https://mypodcast.is-great.net/cron.php to see the errors Like i said nothing was changed in my code $ch = curl_init(); curl_setopt_array($ch, array( CURLOPT_HTTPHEADER => array('Client-ID: ' . (api_key_removed)), CURLOPT_RETURNTRANSFER => true, CURLOPT_URL => https://api.twitch.tv/kraken/streams/(removed), ) ); $tresponse = curl_exec($ch); $curl_error = curl_error($ch); $curl_errno = curl_errno($ch); $data = curl_exec($ch); curl_close($ch); if ($curl_errno > 0) { echo "<br>cURL Error ($curl_errno): $curl_error" ;} Working version on my home network on a raspberry pi : https://podview.ddns.net/ Edited March 8, 2018 by mbeam Quote Link to comment Share on other sites More sharing options...
mbeam Posted March 9, 2018 Author Share Posted March 9, 2018 Well i bought a cheap domain https://mypodcast.info/ and directed it thru cloudflare back to the byet.net hosting , everything shows the ssl is working and as shown in the sample code i gave above, i am using https in the curl / cron job and its still not working .. I also noticed filezilla ftp client also pops up with a certificate warning when connecting to transfer files .. So im still investigating.. nothing has worked yet , Quote Link to comment Share on other sites More sharing options...
mbeam Posted March 14, 2018 Author Share Posted March 14, 2018 Unsure of what changed, or what was done but everything is working again with no code changes by me . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.