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
I have a custom API route which might throw an error when a user is not authenticated server-side. How to properly catch this error on the clients-side uploadToS3 function? Simply wrapping it in a try/catch function doesn't provide me with the error message sent from the server.
I have a custom API route which might throw an error when a user is not authenticated server-side. How to properly catch this error on the clients-side uploadToS3 function? Simply wrapping it in a try/catch function doesn't provide me with the error message sent from the server.
Client
const { url } = await uploadToS3(file, { endpoint: { request: { body, }, }, });
Server
The text was updated successfully, but these errors were encountered: