#6656: Refresh partner token on failed requests #20365
ci.yml
on: pull_request
test
5m 50s
generate-headers
56s
types
1m 33s
lint
4m 15s
dead-code
1m 35s
prettier
35s
Matrix: build
Matrix: end-to-end-tests
upload-to-codecov
0s
Annotations
18 errors and 1 warning
types
Process completed with exit code 2.
|
lint:
src/background/locator.ts#L18
Dependency cycle via @/data/service/apiClient:38=>@/background/partnerIntegrations/refreshPartnerToken:29
|
lint:
src/background/partnerIntegrations/getPartnerPrincipals.ts#L18
All imports in the declaration are only used as types. Use `import type`
|
lint:
src/background/partnerIntegrations/refreshPartnerToken.ts#L18
Dependency cycle via @/integrations/locator:18=>@/data/service/apiClient:38
|
lint:
src/data/service/apiClient.ts#L29
Dependency cycle via @/background/locator:18=>@/integrations/locator:18
|
lint:
src/integrations/locator.ts#L38
Dependency cycle via @/background/partnerIntegrations/refreshPartnerToken:29=>@/background/locator:18
|
lint
Process completed with exit code 1.
|
error handling › Returns permissions error for 404 message with google integration:
src/background/requests.ts#L403
expect(received).rejects.toThrow(expected)
Expected substring: "Cannot locate the Google Drive resource. Have you been granted access?"
Received message: "(0 , _apiClient.isAuthenticationError) is not a function"
401 | )) as RemoteResponse<TData>;
402 | } catch (error) {
> 403 | throw new ContextError("Error performing request", {
| ^
404 | cause: prepareErrorForMessenger(error),
405 | context: await getIntegrationMessageContext(integrationConfig),
406 | });
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at Object.<anonymous> (src/contrib/google/sheets/core/sheetsApi.test.ts:114:5)
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at Object.toThrow (src/contrib/google/sheets/core/sheetsApi.test.ts:114:54)
|
error handling › Returns bad request error:
src/background/requests.ts#L403
expect(received).rejects.toThrow(expected)
Expected substring: "Bad Request"
Received message: "(0 , _apiClient.isAuthenticationError) is not a function"
401 | )) as RemoteResponse<TData>;
402 | } catch (error) {
> 403 | throw new ContextError("Error performing request", {
| ^
404 | cause: prepareErrorForMessenger(error),
405 | context: await getIntegrationMessageContext(integrationConfig),
406 | });
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at Object.<anonymous> (src/contrib/google/sheets/core/sheetsApi.test.ts:135:5)
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at Object.toThrow (src/contrib/google/sheets/core/sheetsApi.test.ts:135:54)
|
error handling › Returns permissions error on 401 if no refresh token:
src/background/requests.ts#L403
expect(received).rejects.toThrow(expected)
Expected substring: "Permission denied, re-authenticate with Google and try again. Details: Unauthorized"
Received message: "(0 , _apiClient.isAuthenticationError) is not a function"
401 | )) as RemoteResponse<TData>;
402 | } catch (error) {
> 403 | throw new ContextError("Error performing request", {
| ^
404 | cause: prepareErrorForMessenger(error),
405 | context: await getIntegrationMessageContext(integrationConfig),
406 | });
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at src/contrib/google/sheets/core/sheetsApi.test.ts:169:7
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at toThrow (src/contrib/google/sheets/core/sheetsApi.test.ts:169:56)
|
error handling › Returns permissions error on 403 if no refresh token:
src/background/requests.ts#L403
expect(received).rejects.toThrow(expected)
Expected substring: "You do not have permission to access the Google Drive resource. Have you been granted access? If this resource is public, you need to open it in a separate browser tab before it will appear here."
Received message: "(0 , _apiClient.isAuthenticationError) is not a function"
401 | )) as RemoteResponse<TData>;
402 | } catch (error) {
> 403 | throw new ContextError("Error performing request", {
| ^
404 | cause: prepareErrorForMessenger(error),
405 | context: await getIntegrationMessageContext(integrationConfig),
406 | });
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at src/contrib/google/sheets/core/sheetsApi.test.ts:169:7
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at toThrow (src/contrib/google/sheets/core/sheetsApi.test.ts:169:56)
|
error handling › Returns permissions error on 401 if token refresh fails:
src/background/requests.ts#L403
expect(received).rejects.toThrow(expected)
Expected substring: "Permission denied, re-authenticate with Google and try again. Details: Unauthorized"
Received message: "(0 , _apiClient.isAuthenticationError) is not a function"
401 | )) as RemoteResponse<TData>;
402 | } catch (error) {
> 403 | throw new ContextError("Error performing request", {
| ^
404 | cause: prepareErrorForMessenger(error),
405 | context: await getIntegrationMessageContext(integrationConfig),
406 | });
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at src/contrib/google/sheets/core/sheetsApi.test.ts:213:7
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at toThrow (src/contrib/google/sheets/core/sheetsApi.test.ts:213:56)
|
error handling › Returns permissions error on 403 if token refresh fails:
src/background/requests.ts#L403
expect(received).rejects.toThrow(expected)
Expected substring: "You do not have permission to access the Google Drive resource. Have you been granted access? If this resource is public, you need to open it in a separate browser tab before it will appear here."
Received message: "(0 , _apiClient.isAuthenticationError) is not a function"
401 | )) as RemoteResponse<TData>;
402 | } catch (error) {
> 403 | throw new ContextError("Error performing request", {
| ^
404 | cause: prepareErrorForMessenger(error),
405 | context: await getIntegrationMessageContext(integrationConfig),
406 | });
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at src/contrib/google/sheets/core/sheetsApi.test.ts:213:7
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at toThrow (src/contrib/google/sheets/core/sheetsApi.test.ts:213:56)
|
error handling › Retries response on 401 if token refresh succeeds:
src/background/requests.ts#L403
ContextError: (0 , _apiClient.isAuthenticationError) is not a function
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at src/contrib/google/sheets/core/sheetsApi.test.ts:251:7
|
error handling › Retries response on 403 if token refresh succeeds:
src/background/requests.ts#L403
ContextError: (0 , _apiClient.isAuthenticationError) is not a function
at performConfiguredRequest (src/background/requests.ts:403:11)
at executeRequest (src/contrib/google/sheets/core/sheetsApi.ts:50:20)
at src/contrib/google/sheets/core/sheetsApi.test.ts:251:7
|
test
Process completed with exit code 1.
|
end-to-end-tests-mv3
Process completed with exit code 1.
|
end-to-end-tests
Process completed with exit code 1.
|
prettier
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
brick-headers
Expired
|
17.5 KB |
|
build-staging-bundle-dependency-report
Expired
|
547 KB |
|
end-to-end-tests-report
Expired
|
48.8 MB |
|
end-to-end-tests-report-mv3
Expired
|
46.4 MB |
|