• Failed to get data. Error:
    Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

    Photonics loaded Google Photos fine on my site until I updated the plugin recently. I reconfigured from scratch following each steps you’ve provided, including the Google API management, client id, and secret retrieval & then inclusion on WordPress side.

    On the WordPress side, the first step in ‘Google Photos’ authentication works but when I try to obtain the token, the page shows the loading animation indefinitely without results.

    Then I followed each step you’ve provided as a workaround for authentication issues. I did everything outlined there including oauthplayground authorization, refresh token generation, & its inclusion along with client id and secret on the WordPress side. However, the page on my site set (before when everything worked) to show Google Photos albums with photonic now shows the aforementioned error.

    And when I try to add a new Google Photos with Photonic, it shows the error: No data returned. Error code 401.

    On my server-side, wp-admin/admin.php is password protected (Photonics used to work with this setup before). I have no other plugins of type – caching, security, or otherwise, that is enabled except Photonic.

    • This topic was modified 4 years, 10 months ago by Ale.
Viewing 10 replies - 16 through 25 (of 25 total)
  • Plugin Author Sayontan Sinha

    (@sayontan)

    Error encountered during authentication:
    cURL error 28: Connection timed out after 30001 milliseconds

    So, let’s try 60, and then 120.

    If neither of those work, you will have to ask your host if they are blocking cURL requests from happening.

    Basically, if you are getting a timeout issue, there isn’t much I can do as a developer, specifically if everything was working for you earlier. This would almost always point to a hosting issue.

    Hi,

    I’ve updated to the latest version, 2.45.
    Everything is still the same, increasing the timeout not helps, refresh token from the OAuth 2.0 Playground is pasted to the Google Photos settings, still not working, obtaining token button still doing infinite 3 point animation. SO I tried again everything, but no change ??

    Shell I try to deactivate, delete the plugin, and reinstall, paste back the ids, tokens?

    Best,
    Attila

    Plugin Author Sayontan Sinha

    (@sayontan)

    Shell I try to deactivate, delete the plugin, and reinstall, paste back the ids, tokens?

    It will not help. As I have written above, if you keep getting a timeout issue even with 2 minutes, you really need to ask your host what is going on. Which hosting service do you use?

    I’ve tried with extremely long timeouts, 3 minutes, still not working. I’ve already written a ticket to my host (which is a Hungarian host, called online.mhosting.hu), but after two days, there is still no answer. I’ll write here as soon as they answer.

    I’m just guessing, can anything else cause the problem? Making a totally new API key/token?
    Can the older PHP version be a problem? I’m using 5.6…

    Plugin Author Sayontan Sinha

    (@sayontan)

    I’m just guessing, can anything else cause the problem? Making a totally new API key/token?
    Can the older PHP version be a problem? I’m using 5.6…

    I doubt that any of these is an issue. A timeout is a server level problem, which could happen due to many reasons – the connection between your host’s server (remember that your site is actually on your host’s servers) and Google may be broken, or Google may be blocking something from your host, or some configuration on your host may be preventing specific types of requests.

    Even if you make a new token, the timeout error will not go away, and that is what is causing the issue.

    You were right, finally, the Host company corrected it, now it works. They haven’t told me the reason, what did they modify/correct. But now it works with 10sec timeout well. Thanks for your help!

    Plugin Author Sayontan Sinha

    (@sayontan)

    @attiladeak,
    Thanks for letting me know. Glad that your problem has been resolved.

    @bijuale,
    This was originally your thread. I was wondering if you were able to get in touch with your host. Note that in Photonic 2.45 I put in a small tweak to tell you what the error message is on the front-end. If you too are getting a timeout error (even with a high timeout set), it is certainly due to a configuration issue for your host to resolve.

    Thread Starter Ale

    (@bijuale)

    This was originally your thread. I was wondering if you were able to get in touch with your host. Note that in Photonic 2.45 I put in a small tweak to tell you what the error message is on the front-end. If you too are getting a timeout error (even with a high timeout set), it is certainly due to a configuration issue for your host to resolve.

    Yes, I am getting a timeout error even with a long timeout set. The host says the following:

    Yes, this is a server issue.
    Google changed their SSL settings recently which we know already broke access to the ReCAPTCHA API. I wouldn’t be surprised if you’re running into the same issue now. This issue will be resolved next week with a PHP [and SSL library] upgrade.

    They didn’t specify any specific ETA about the resolution when asked. I have been waiting since.

    Hi Sayontan,
    I just install plugin and making settings as document but it doesn’t work.
    I click to Photonic => Authentication ==>Google photos ==> Step 1: Authenticate Okie
    but in Step 2: Obtain Token, it show a loading icon and loads forever.
    You can see here” https://prntscr.com/uzbw6h
    I did disable all plugin but Photonic, and do again but it’s still doesn’t work
    Please help me. Thank you/

    Plugin Author Sayontan Sinha

    (@sayontan)

    @dulich5,
    Your issue is not related to this post.

    Try the workaround here, or try installing the Enable jQuery Migrate Helper plugin.

    If these don’t work, please start a new thread.

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Failing to load Google Photos with 401 error. Workaround fails too.’ is closed to new replies.