Using version 1.4.0 to upload file, if the request is rejected by 401 authorization, this request does not return immediately, need to wait occurring the 504 error #1185

Closed
opened 2021-09-06 03:37:16 +00:00 by OukaWang · 1 comment
OukaWang commented 2021-09-06 03:37:16 +00:00 (Migrated from github.com)

I use the version 1.4 of the ng2-file-uploader package to upload the file resource to server side, but unfortunately the token has been expired before executing this operation. Then invoke the uploadAll() API to send the request. Server side has been sent the 401 response, but the client side does not get the 401 response and client side wait until get the 504 error.

How can I get the 401 response if this request has been expired ?

I use the version 1.4 of the ng2-file-uploader package to upload the file resource to server side, but unfortunately the token has been expired before executing this operation. Then invoke the uploadAll() API to send the request. Server side has been sent the 401 response, but the client side does not get the 401 response and client side wait until get the 504 error. How can I get the 401 response if this request has been expired ?
OukaWang commented 2021-09-06 05:00:27 +00:00 (Migrated from github.com)

I close this issue because of my use case issue.

Thanks a lot.

I close this issue because of my use case issue. Thanks a lot.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dc/ng2-file-upload#1185