Google spreadsheet api Request had insufficient authentication scopes

前端 未结 9 1619
既然无缘
既然无缘 2020-11-29 07:45

I\'m making an script to read data from google spreadsheet using the following script on nodejs:

var url = oauth2Client.generateAuthUrl({
    access_type:            


        
相关标签:
9条回答
  • 2020-11-29 08:38

    The same problem occurred when I updated the scope. Along with the instruction, I delete the token.json file under the same directory with the python script, then the Authentication scope issue went away.

    0 讨论(0)
  • 2020-11-29 08:39

    as @herrogokunaruto mentioned, ensure token.pickle file is not present in the workspacefolder

    0 讨论(0)
  • 2020-11-29 08:40

    The scopes look good, maybe you should try to remove the credentials stored previously in /Users/yourUserName/.credentials/sheets.googleapis.com-projectName/*, and then execute the application again to get new credentials.

    0 讨论(0)
提交回复
热议问题