erebusnz / gapi-google-analytics-php-interface

GA:PI() - Google Analytics PHP Interface
167 stars 86 forks source link

Invalid JWT ? #147

Closed yeremi closed 8 years ago

yeremi commented 8 years ago

GAPI: Failed to authenticate user. Error: "{ "error": "invalid_grant", "error_description": "Invalid JWT: Token must be a short-lived token and in a reasonable timeframe" }

DanRobinsonRV commented 8 years ago

I'm also getting JWT errors, though my error_description is "Invalid JWT Signature." Could this be the same issue?

digger5212 commented 8 years ago

I'm also getting JWT errors, though my error_description is "Invalid JWT Signature." Can you help me?

erebusnz commented 8 years ago

I haven't been able to replicate this issue, but it would certainly be caused if your server time was out (>12 hours).

If your server time is accurate (suggest installing/running NTPd) please add the following after line #660

var_dump($post_variables, $response);

Then post the response back on this issue so I can investigate further.

Cheers, Stig

Gallaecio commented 8 years ago

I just got "Invalid JWT Signature.". The issue was that I was using an email account in my script that did not match the .p12 file (I had updated the p12 file but forgot to update the email address). I hope it helps if someone else ends up here in the future.

flastowizka commented 7 years ago

@Gallaecio this works for me. thanks