Add fetch option. #141
Annotations
20 errors
Unhandled error:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.fetchToken source/index.ts:153:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: 'invalid_client', error_description: 'The OAuth client was not found.' } }
This error originated in "test/upload-existing.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Upload does not fetch token when provided". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
test/fetch-token.test.js > Only returns token from response body:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.fetchToken source/index.ts:153:9
❯ test/fetch-token.test.js:17:18
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: 'invalid_client', error_description: 'The OAuth client was not found.' } }
|
test/get.test.js > Get uses default projection when not provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:12:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/get.test.js > Get does not fetch token when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:22:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/get.test.js > Get uses token for auth:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:33:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/get.test.js > Get uses provided extension ID:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:41:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish uses default target when not provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:13:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish uses target when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:21:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish uses deployPercentage when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:29:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish does not fetch token when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:35:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
Unhandled error:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.fetchToken source/index.ts:153:9
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: 'invalid_client', error_description: 'The OAuth client was not found.' } }
This error originated in "test/upload-existing.test.js" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "Upload only returns response body on success". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
test/fetch-token.test.js > Only returns token from response body:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.fetchToken source/index.ts:153:9
❯ test/fetch-token.test.js:17:18
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: 'invalid_client', error_description: 'The OAuth client was not found.' } }
|
test/get.test.js > Get uses default projection when not provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:12:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/get.test.js > Get does not fetch token when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:22:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/get.test.js > Get uses token for auth:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:33:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/get.test.js > Get uses provided extension ID:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.get source/index.ts:126:9
❯ test/get.test.js:41:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish uses default target when not provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:13:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish uses target when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:21:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish uses deployPercentage when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:29:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|
test/publish.test.js > Publish does not fetch token when provided:
source/index.ts#L40
Error: Unauthorized
❯ throwIfNotOk source/index.ts:40:23
❯ APIClient.publish source/index.ts:111:9
❯ test/publish.test.js:35:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { response: { error: { code: 401, message: 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.', errors: [ { message: 'Invalid Credentials', domain: 'global', reason: 'authError', location: 'Authorization', locationType: 'header' } ], status: 'UNAUTHENTICATED' } } }
|