File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ code editor:
2424Alternatively, you can copy and paste the files in the [ ` /dist ` ] ( dist ) directory
2525directly into your script project.
2626
27+ If you are [ setting explicit scopes] ( https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes )
28+ in your manifest file, ensure that the following scope is included:
29+
30+ * ` https://www.googleapis.com/auth/script.external_request `
31+
2732## Redirect URI
2833
2934Before you can start authenticating against an OAuth2 provider, you usually need
@@ -260,3 +265,12 @@ registered with the OAuth provider is updated to use the format
260265` https://script.google.com/macros/d/{SCRIPT ID}/usercallback ` .
261266* Version 22 - Renamed ` Service.getToken_() ` to ` Service.getToken() ` , since
262267there OAuth providers that return important information in the token response.
268+
269+ ## Troubleshooting
270+
271+ ### You do not have permission to call fetch
272+
273+ You are [ setting explicit scopes] ( https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes )
274+ in your manifest file but have forgotton to add the
275+ ` https://www.googleapis.com/auth/script.external_request ` scope used by this library
276+ (and eventually the ` UrlFetchApp ` request you are making to an API).
You can’t perform that action at this time.
0 commit comments