{"action":"created","issue":{"url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2/issues/140","repository_url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2","labels_url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2/issues/140/comments","events_url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2/issues/140/events","html_url":"https://github.com/gsuitedevs/apps-script-oauth2/issues/140","id":354043586,"node_id":"MDU6SXNzdWUzNTQwNDM1ODY=","number":140,"title":"Can not add library to a Google Data Studio connector","user":{"login":"duracelltomi","id":7515949,"node_id":"MDQ6VXNlcjc1MTU5NDk=","avatar_url":"https://avatars3.githubusercontent.com/u/7515949?v=4","gravatar_id":"","url":"https://api.github.com/users/duracelltomi","html_url":"https://github.com/duracelltomi","followers_url":"https://api.github.com/users/duracelltomi/followers","following_url":"https://api.github.com/users/duracelltomi/following{/other_user}","gists_url":"https://api.github.com/users/duracelltomi/gists{/gist_id}","starred_url":"https://api.github.com/users/duracelltomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duracelltomi/subscriptions","organizations_url":"https://api.github.com/users/duracelltomi/orgs","repos_url":"https://api.github.com/users/duracelltomi/repos","events_url":"https://api.github.com/users/duracelltomi/events{/privacy}","received_events_url":"https://api.github.com/users/duracelltomi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-25T21:08:58Z","updated_at":"2018-08-26T17:30:40Z","closed_at":null,"author_association":"NONE","body":"I followed the setup instructions but after entering the script ID `1B7FSrk5Zi6L1rSxxTDgDEUsPzlukDsi4KGuTMorsTQHhGBzBkMun4iDF`, I get this error message:\r\n\r\n> We're sorry, a server error occurred. Please wait a bit and try again.\r\n\r\nWhen I try to load the connector, I get this message on the Data Studio UI while accessing the connector:\r\n\r\n> There was an error retrieving this Add-on's configuration\r\n\r\nThe same happens if I add the code from `/dist` to the Data Studio connector.\r\n\r\nAll these errors are gone after I remove either the library from the Resoures / Libraries menu or the .gs file that was added directly from the `/dist` directory of this repository.\r\n\r\nThis behavior is independent from what I set in `getAuthType()`. Even with `NONE` I get the error messages above.\r\n\r\nI try to use this library to use the Analytics Management API v3\r\n\r\nThanks in advance for every help!"},"comment":{"url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2/issues/comments/416054915","html_url":"https://github.com/gsuitedevs/apps-script-oauth2/issues/140#issuecomment-416054915","issue_url":"https://api.github.com/repos/gsuitedevs/apps-script-oauth2/issues/140","id":416054915,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjA1NDkxNQ==","user":{"login":"duracelltomi","id":7515949,"node_id":"MDQ6VXNlcjc1MTU5NDk=","avatar_url":"https://avatars3.githubusercontent.com/u/7515949?v=4","gravatar_id":"","url":"https://api.github.com/users/duracelltomi","html_url":"https://github.com/duracelltomi","followers_url":"https://api.github.com/users/duracelltomi/followers","following_url":"https://api.github.com/users/duracelltomi/following{/other_user}","gists_url":"https://api.github.com/users/duracelltomi/gists{/gist_id}","starred_url":"https://api.github.com/users/duracelltomi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duracelltomi/subscriptions","organizations_url":"https://api.github.com/users/duracelltomi/orgs","repos_url":"https://api.github.com/users/duracelltomi/repos","events_url":"https://api.github.com/users/duracelltomi/events{/privacy}","received_events_url":"https://api.github.com/users/duracelltomi/received_events","type":"User","site_admin":false},"created_at":"2018-08-26T17:30:40Z","updated_at":"2018-08-26T17:30:40Z","author_association":"NONE","body":"I investigated this further and it turned out that the UrlFetchApp.fetch() call is causing the issue. \r\n\r\nI have included this in the appscript.json file:\r\n\r\n```\r\n\"oauthScopes\": [\r\n    \"https://www.googleapis.com/auth/script.external_request\"\r\n  ],\r\n\r\n```\r\n\r\n... still it does not seem to work"}}
{"actor":{"display_login":"duracelltomi"}}