Jump to content
[MUST READ] Forum Rules ×

Curl Errors


mbeam

Recommended Posts

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 by mbeam
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by mbeam
Link to comment
Share on other sites

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 , 

Untitled.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...