{"action":"created","issue":{"url":"https://api.github.com/repos/burnash/gspread/issues/512","repository_url":"https://api.github.com/repos/burnash/gspread","labels_url":"https://api.github.com/repos/burnash/gspread/issues/512/labels{/name}","comments_url":"https://api.github.com/repos/burnash/gspread/issues/512/comments","events_url":"https://api.github.com/repos/burnash/gspread/issues/512/events","html_url":"https://github.com/burnash/gspread/issues/512","id":304606198,"number":512,"title":"gspread.v4.exceptions.APIError - Insufficient Permission","user":{"login":"kostykoff","id":13411278,"avatar_url":"https://avatars1.githubusercontent.com/u/13411278?v=4","gravatar_id":"","url":"https://api.github.com/users/kostykoff","html_url":"https://github.com/kostykoff","followers_url":"https://api.github.com/users/kostykoff/followers","following_url":"https://api.github.com/users/kostykoff/following{/other_user}","gists_url":"https://api.github.com/users/kostykoff/gists{/gist_id}","starred_url":"https://api.github.com/users/kostykoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostykoff/subscriptions","organizations_url":"https://api.github.com/users/kostykoff/orgs","repos_url":"https://api.github.com/users/kostykoff/repos","events_url":"https://api.github.com/users/kostykoff/events{/privacy}","received_events_url":"https://api.github.com/users/kostykoff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-13T02:30:15Z","updated_at":"2018-03-13T15:00:34Z","closed_at":null,"author_association":"NONE","body":"Hello.\r\nAfter the OS was reinstalled, the script stopped working.\r\ngspread 2.0.0\r\npython 2.7.12\r\n\r\n**code**\r\n```\r\n# -*- coding: utf-8 -*- \r\nimport gspread\r\nfrom oauth2client.service_account import ServiceAccountCredentials\r\n\r\nscope = ['https://spreadsheets.google.com/feeds']\r\ncredentials = ServiceAccountCredentials.from_json_keyfile_name('123.json', scope)\r\ngc = gspread.authorize(credentials)\r\nwks = gc.open(\"123\")\r\n```\r\n\r\n**error**\r\n```\r\nTraceback (most recent last call last):\r\n  File \"test.py\", line 11, in <module>\r\n    wks = gc.open (\"123\")\r\n  File \"/usr/local/lib/python2.7/dist-packages/gspread/v4/client.py\", line 103, in open\r\n    self.list_spreadsheet_files ()\r\n  File \"/usr/local/lib/python2.7/dist-packages/gspread/v4/client.py\", line 80, in list_spreadsheet_files\r\n    r = self.request ('get', url)\r\n  File \"/usr/local/lib/python2.7/dist-packages/gspread/v4/client.py\", line 73, in request\r\n    raise APIError (response)\r\ngspread.v4.exceptions.APIError: {\r\n \"error\": {\r\n  \"errors\": [\r\n   {\r\n    \"domain\": \"global\",\r\n    \"reason\": \"insufficientPermissions\",\r\n    \"message\": \"Insufficient Permission\"\r\n   }\r\n  ],\r\n  \"code\": 403,\r\n  \"message\": \"Insufficient Permission\"\r\n }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/burnash/gspread/issues/comments/372695991","html_url":"https://github.com/burnash/gspread/issues/512#issuecomment-372695991","issue_url":"https://api.github.com/repos/burnash/gspread/issues/512","id":372695991,"user":{"login":"abnd90","id":127667,"avatar_url":"https://avatars1.githubusercontent.com/u/127667?v=4","gravatar_id":"","url":"https://api.github.com/users/abnd90","html_url":"https://github.com/abnd90","followers_url":"https://api.github.com/users/abnd90/followers","following_url":"https://api.github.com/users/abnd90/following{/other_user}","gists_url":"https://api.github.com/users/abnd90/gists{/gist_id}","starred_url":"https://api.github.com/users/abnd90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abnd90/subscriptions","organizations_url":"https://api.github.com/users/abnd90/orgs","repos_url":"https://api.github.com/users/abnd90/repos","events_url":"https://api.github.com/users/abnd90/events{/privacy}","received_events_url":"https://api.github.com/users/abnd90/received_events","type":"User","site_admin":false},"created_at":"2018-03-13T15:00:34Z","updated_at":"2018-03-13T15:00:34Z","author_association":"NONE","body":"I can confirm the exact same issue. I also tried regenerating service api creds.\r\n``\r\nTraceback (most recent call last):\r\n  File \"./main.py\", line 94, in <module>\r\n    main()\r\n  File \"./main.py\", line 81, in main\r\n    sh = gc.open(GSHEET_NAME)\r\n  File \"/home/abhinand/dev/pctogs/venv/lib/python3.6/site-packages/gspread/v4/client.py\", line 103, in open\r\n    self.list_spreadsheet_files()\r\n  File \"/home/abhinand/dev/pctogs/venv/lib/python3.6/site-packages/gspread/v4/client.py\", line 80, in list_spreadsheet_files\r\n    r = self.request('get', url)\r\n  File \"/home/abhinand/dev/pctogs/venv/lib/python3.6/site-packages/gspread/v4/client.py\", line 73, in request\r\n    raise APIError(response)\r\ngspread.v4.exceptions.APIError: {\r\n \"error\": {\r\n  \"errors\": [\r\n   {\r\n    \"domain\": \"global\",\r\n    \"reason\": \"insufficientPermissions\",\r\n    \"message\": \"Insufficient Permission\"\r\n   }\r\n  ],\r\n  \"code\": 403,\r\n  \"message\": \"Insufficient Permission\"\r\n }\r\n}\r\n``"}}
{"actor":{"display_login":"abnd90"}}