Git Product home page Git Product logo

Comments (4)

mccreath avatar mccreath commented on August 29, 2024

Hi, Toby —

I agree, that sounds like it might be cURL. Maybe try sticking a curl_error if statement inside that if $ch_response === FALSE condition. Look at the first example on this page: http://php.net/manual/en/function.curl-error.php

David

from isitup-for-slack.

croakingtoad avatar croakingtoad commented on August 29, 2024

I hate to hijack someone else's thread, but I'm having this same issue and took your advice, but still get the "Ironically..." message. Here's the code I added:
`if($ch_response === FALSE){

isitup.org could not be reached

if(curl_error($ch_response)){
$reply = "Curl Error: " . curl_error($ch_response);
} else {
$reply = "Ironically, isitup could not be reached.";
}`

Advice?

-=UPDATE=-

So I appended the $response_array to the end for this-
echo $reply.$response_array;
and added ."hey" to the end of $response_array, so the error I'm getting now is "Ironically, isitup could not be reached.hey" which leads me to believe it is a problem w/ the curl, but it's not creating an error...weird.

-= UPDATE 2 =-

SO I checked curl from bash and it is working fine, EXCEPT when I try isitup. So I tried:
curl https://isitup.org/github.com.json and it returned the following error:

http://screencast.com/t/dffF60cfHRG

Getting ready to Google that error...

-= UPDATE 3 =-

Noticed this error in my log:
[04-Aug-2016 13:53:00 America/New_York] PHP Warning: curl_error() expects parameter 1 to be resource, boolean given in /home/adapt/public_html/isitup/isitup007.php on line 69

from isitup-for-slack.

croakingtoad avatar croakingtoad commented on August 29, 2024

This actually looks to be a bug with OpenSSL ... :\

from isitup-for-slack.

intervirals avatar intervirals commented on August 29, 2024

I've also copied the code, deployed it to Heroku and put the settings on Slack but every time I type the command in Slack this error appears:
! Invalid path.
! Syntax is: https://git.heroku.com/.git where is your app's name.

Has anyone had this problem too?

from isitup-for-slack.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.