Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Management Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
f8539d3f
Commit
f8539d3f
authored
Aug 17, 2021
by
Diego Molteni
Browse files
fix refresh code condition
parent
6c4fca24
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/services/imptoken/dao.ts
View file @
f8539d3f
...
...
@@ -91,7 +91,11 @@ export class ImpTokenDAO {
try
{
await
request
(
options
);
}
catch
(
error
)
{
throw
(
Error
.
make
(
Error
.
Status
.
BAD_REQUEST
,
'
The impersonation token cannot be refreshed.
'
));
// For any code different than 4xx the imptoken can be refreshed
// This is a temporary fix to handle unavailability of client infrastructure
if
(
error
.
statusCode
>=
400
&&
error
.
statusCode
<=
499
)
{
throw
(
Error
.
make
(
Error
.
Status
.
BAD_REQUEST
,
'
The impersonation token cannot be refreshed.
'
));
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment