You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, the equivalent check will be errorResponse.error.details[0].message.includes(... .
Would suggest to check the http response code instead of checking error message. I mean check whether it is 409 code, and if it is Show your custom message on ui.
Also the details field is optional. In all that cases if details is not there that case you need need to check errorResponse.error.message.includes(... . Response will be something like that
Update API error handling code in
mkdir
andupload
callsNew Error response will have the following schema:
So, the equivalent check will be
errorResponse.error.details[0].message.includes(...
.Would suggest to check the http response code instead of checking error message. I mean check whether it is
409
code, and if it is Show your custom message on ui.Also the details field is optional. In all that cases if details is not there that case you need need to check
errorResponse.error.message.includes(...
. Response will be something like thatOriginally posted by @sadiq1971 in https://github.com/ChainSafe/files-api/issues/1591#issuecomment-936560977
The text was updated successfully, but these errors were encountered: