401. That’s an error. Error: invalid_client The OAuth client was not found

后端 未结 3 377
长发绾君心
长发绾君心 2021-01-12 16:22

I am working with Google Drive File Picker by following this Google Drive File Picker Example demo project. I have generated API Key and Client Id. But when I run the projec

相关标签:
3条回答
  • 2021-01-12 16:34

    Your client_id is not correct, re-check pls

    0 讨论(0)
  • 2021-01-12 16:49

    In my case, i mistakenly add a , in the values in my .env files so better check that file

    # check the comma at the end
    AUTH_CLIENT_SECRET=randomauthsecret,
    AUTH_CLIENT_ID=randomclientid, 
    

    That causes the wrong client id value. So just remove the ,. Another thing, also don't enclose them in quotes.

    AUTH_CLIENT_SECRET=randomauthsecret
    AUTH_CLIENT_ID=randomclientid
    
    0 讨论(0)
  • 2021-01-12 16:57

    In the following pic, I made with restricted mode in API keys section. This helped me to to remove the display. Hence finally, shown as:

    No API keys to display
    

    Try to validate the client_id with those that you created for your project as:

    https://console.developers.google.com/google/maps-apis/credentials?folder=&organizationId=&project=saml-281612

    The project name, like in my case, it is saml, should match with the project apps as saml to mitigate mismatch_uri error.

    This helped me to remove all those errors as:

    1. Error 400 : mismatch_uri
    2. Error 401 : invalid client_id  
    
    0 讨论(0)
提交回复
热议问题