Skip to content

Commit 61ae78a

Browse files
committed
Handle 403 errors the same as not found
There is no reason to retry since 403 error is most likely not temporarily, so the editor connection can be closed whenever this happens. Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 5586acd commit 61ae78a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/services/PollingBackend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class PollingBackend {
157157
outsideChange: e.response.data.outsideChange,
158158
})
159159
} else if (e.response.status === 403) {
160-
this._authority.emit('error', ERROR_TYPE.CONNECTION_FAILED, {})
160+
this._authority.emit('error', ERROR_TYPE.SOURCE_NOT_FOUND, {})
161161
} else if (e.response.status === 404) {
162162
this._authority.emit('error', ERROR_TYPE.SOURCE_NOT_FOUND, {})
163163
} else if (e.response.status === 503) {

0 commit comments

Comments
 (0)