Skip to content

Stop polling task endpoint when 403 status is returned #3291

@bjester

Description

@bjester

Observed behavior

We have a great quantity of warnings in the Studio production logs for forbidden requests to /api/task

2021-10-19 09:12:40.029 PDT Forbidden: /api/task

Expected behavior

We change our task polling behavior based off the server's response. In this case when the server returns a 403 error, we should stop polling until authentication state changes.

Developer-facing consequences

It clouds the logs and makes it difficult to see real errors.

Errors and logs

Screenshot from 2021-10-19 09-09-15

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions