Getting App Authentication errors today, wasn't yesterday

Answered

Comments

6 comments

  • Andreas Haugstrup Pedersen

    Can you paste in the stack trace?

    /Andreas

    0
    Comment actions Permalink
  • Louis-Philippe Papillon

    Hi Andreas, thanks for taking a peek. I don't find the stack trace perticularly useful but maybe you will:

     

    #0 /var/www/html/v1/podio/api/lib/PodioAPI.php(72): Podio::request('POST', '/oauth/token', Array, Array)\n#1 /var/www/html/v1/classes/podiowrapper.class.php(19): Podio::authenticate('app', Array)\n#2 /var/www/html/v1/_functions.php(721): PodioWrapper->auth_as_app('4013491', '85aef78ead9047d...')\n#3 /var/www/html/v1/_functions.php(709): get_employees()\n#4 /var/www/html/v1/contact.php(39): contact_us()\n#5 {main}

     

    The weird thing is if I test locally on my laptop when I code, it works 99% of the time. But on the beta server since yesterday I'm getting failures at least 50% of the time. The auth simply fails without an error message. I thought at first it might be related to some UI changes to Podio that seemed to coincide but I wouldn't be the only one having the problem...

    0
    Comment actions Permalink
  • Louis-Philippe Papillon

    Ok well I think I've tracked down the issue...

    This is the curl object just after the request in lib/PodioAPI.php :

    array(21) { ["url"]=> string(37) "https://api.podio.com:443/oauth/token" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) ["certinfo"]=> array(0) { } }

     

    So it's not getting a reply. I tried to ping api.podio.com and it works, but when I tried wget https://api.podio.com:443/oauth/token, then I get this:

    wget https://api.podio.com:443/oauth/token

    --2013-04-25 14:32:53-- https://api.podio.com/oauth/token

    Resolving api.podio.com... failed: Name or service not known.

    wget: unable to resolve host address `api.podio.com'

     

    I will fix that and post back but I'm sure it's on my side now :)

    Thanks,

    0
    Comment actions Permalink
  • Louis-Philippe Papillon

    Yep it was one of the two dns servers that went bad on the web server, do if it used that one it failed, if it used the other it succeeded. Good work Podio, can't wait to publish the website with Podio as a backend :)

    0
    Comment actions Permalink
  • Andreas Haugstrup Pedersen

    Happy you found the cause. :)

    I've added an issue here to see if I can't get some more informative error messages to show up when the requests fail in spectacular ways: https://github.com/podio/podio-php/issues/18

    /Andreas

    0
    Comment actions Permalink
  • Stephan Vierkant

    I'm not sure about it, but maybe my issue (https://github.com/podio/podio-php/issues/24) is related to this one?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk