• Resolved Wonderful Wanderings

    (@wonderful-wanderings)


    Hi,

    I’m getting the following error when going to Monsterinsights in WordPress:
    “Error
    The API returned a 400 response with this message: MonsterInsights failed to retrieve the new report data. Error message: { “error”: “invalid_grant”, “error_description”: “Bad Request” }”

    I think this might have to do with me changing my Google password since I installed Monsterinsights. Is there any way of checking that that’s indeed the culprit – and of fixing it?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • I am having this same issue and have also changed my google password recently too. Glad to see I am not the only one, but sad to see it hasn’t been answered yet. Found the solution, in the next comment.

    • This reply was modified 5 years, 12 months ago by ezacharyk.

    Now that I post this, it dawned on me. In your Monster Insights settings page, next to your Website Profile code is an icon (on my site it is a broken image). Click that to get the “Reconnect Monster Insights” button. Click that and go through the process to allow Google and Monster to connect. Fixed it right up.

    Plugin Author chriscct7

    (@chriscct7)

    Hi there,
    If you change your Google password it actually resets the access tokens that are used in order to take reports.

    We’re working on implementing better error handling for this.

    There are also a couple other factors that can cause Google to expire your token including inactivity for 6 months and things like that.

    Re-authing should solve any of them.

    If you continue having this issue, reach out to us at monsterinsights.com/lite-support/ and we’ll figure out what’s going on for your site and make sure we get it fixed for you

    -Chris

    Thread Starter Wonderful Wanderings

    (@wonderful-wanderings)

    Found it, thanks @ezacharyk !

    If there would just be an error message when this happens and saying what to do to fix it, that would already be great @chriscct7

    I’m getting the same issue too but I don’t recall passwords changing. If that’s the case, one must ask what’s the point of an API call if it changes when a user updates their password. Google needs to have a better handle on this.

    Plugin Author chriscct7

    (@chriscct7)

    There are approximately 25 different ways to get the same identical error code, almost all revolving around Google having revoked the access token, and thus the vast majority of these are solved by reauth (so if you didn’t recently change your password it could be one of the more obscure triggers like enabling 2FA or something like that).

    I wish Google had a trigger for the app to suggest for them to revoke/not revoke as the app needs (for example it doesn’t really impact our usage if someone changes their Google password, we just care about analytics data), but they have some concerns about allowing it so until they change their mind there’s nothing we can do on this subject other than try to detect what could have been the trigger and show more context in the error message if Google (and unfortunately they almost never do) passes more context.

    Thank you @ezacharyk! That worked for me. (FYI, the broken image you mention is a down-arrow to reveal hidden stuff.)

    Still showing this error though i changed my gmail password
    Error
    The API returned a 400 response with this message: Google Analytics for WordPress by MonsterInsights failed to retrieve the new report data. Error message: { “error”: “invalid_grant”, “error_description”: “Token has been expired or revoked.” }

    • This reply was modified 5 years, 9 months ago by infoseekerac.
    Moderator James Huff

    (@macmanx)

    Hi there @infoseekerac I see you reported this thread to the moderators. Please note that we are just the folks who enforce the rules around all of www.remarpro.com.

    Reporting to moderators doesn’t get any faster support, instead it just kind of attracts attention from folks whose radar you probably don’t want to be on. ??

    If you really do need a moderator, please add a reply letting us know why before you hit the report button.

    Otherwise, please hang in there for the plugin’s support to reply when they can.

    @infoseekerac,

    You’ll need to reauthenticate with your Google Analytics account under Insights => Settings to re-enable the reports and fix that error.

    If the issue persists please contact us at monsterinsights.com/lite-support/

    Thanks,

    -Jay

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘400 error – reports not loading’ is closed to new replies.