Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Unhandled 401 response fetching group settings #102

Open
3 tasks
aiwilliams opened this issue Jun 8, 2021 · 0 comments
Open
3 tasks

Unhandled 401 response fetching group settings #102

aiwilliams opened this issue Jun 8, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@aiwilliams
Copy link
Contributor

Fetching group settings for a group may fail with 401 response.

  • Do not fail the step, keep processing other groups
  • Report number of failed groups alongside total number of processed groups
  • Consider stopping processing if, say, first 10 fail with same error, as it's likely not going to work for any groups
err.code | 401
err.stack | Error: Authorization Failedat Gaxios._request (/opt/jupiterone/app/node_modules/gaxios/build/src/gaxios.js:89:23)at runMicrotasks (<anonymous>)at processTicksAndRejections (internal/process/task_queues.js:93:5)at async JWT.requestAsync (/opt/jupiterone/app/node_modules/google-auth-library/build/src/auth/oauth2client.js:343:18)at async GSuiteGroupSettingsClient.getGroupSettings (/opt/jupiterone/app/node_modules/@jupiterone/graph-google/dist/gsuite/clients/GSuiteGroupSettingsClient.js:24:26)at async /opt/jupiterone/app/node_modules/@jupiterone/graph-google/dist/steps/groups/index.js:150:31at async iteratee (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/storage/FileSystemGraphObjectStore/indices.js:18:21)at async onFile (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/fileSystem.js:125:9)at async handleFilePath (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/fileSystem.js:138:13)at async handleFilePath (/opt/jupiterone/app/node_modules/@jupiterone/integration-sdk-runtime/dist/src/fileSystem.js:145:13)
errorId | d546e2dc-400f-4728-8969-b76e38b69ffe
level | 50
stepId | step-fetch-group-settings
@aiwilliams aiwilliams added the bug Something isn't working label Jun 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant