Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled Gmail API throws an ui error #35

Open
lev-savranskiy opened this issue Oct 6, 2020 · 0 comments
Open

disabled Gmail API throws an ui error #35

lev-savranskiy opened this issue Oct 6, 2020 · 0 comments

Comments

@lev-savranskiy
Copy link

lev-savranskiy commented Oct 6, 2020

CASE
disabled Gmail API

ISSUE
onegraph response not handled on UI

{"errors":[{"message":"Unexpected code 403 from Google. Response body: {\n \"error\": {\n \"code\": 403,\n \"message\": \"Gmail API has not been used in project 861228239640 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=861228239640 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.\",\n \"errors\": [\n {\n \"message\": \"Gmail API has not been used in project 861228239640 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/gmail.googleapis.com/overview?project=861228239640 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.\",\n \"domain\": \"usageLimits\",\n \"reason\": \"accessNotConfigured\",\n \"extendedHelp\": \"https://console.developers.google.com\"\n }\n ],\n \"status\": \"PERMISSION_DENIED\"\n }\n}\n","path":["google","gmail","queryThreads"]}],"data":null}

Screen Shot 2020-10-06 at 10 55 14 AM

SOLUTION

1 . add details to README

Screen Shot 2020-10-06 at 10 54 51 AM

API link https://console.developers.google.com/apis/library/gmail.googleapis.com

  1. JS fix -add data check in src/pages/index.js

{data && data.google && ( <MessageList css={{ paddingBottom: 24 }} threads={data.google.gmail.queryThreads.threads} /> )}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant