Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

invalid sharelink gives 500 #318

Closed
tripodsan opened this issue Mar 10, 2021 · 2 comments
Closed

invalid sharelink gives 500 #318

tripodsan opened this issue Mar 10, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@tripodsan
Copy link
Contributor

Description
an illegal sharelink returns a 500 with our nice broken 500 page:

StatusCodeError at Function.fromError (/nodejsAction/tsfszb1w/index.js:8779:17) at OneDrive.resolveShareLink (/nodejsAction/tsfszb1w/index.js:7983:37) at processTicksAndRejections (internal/process/task_queues.js:97:5) { statusCode: 400, details: { code: 'invalidRequest', message: 'The sharing token is invalid.', innerError: { date: '2021-03-10T12:39:23', 'request-id': 'd6ca86c4-26d0-4676-b128-913bd085647b', 'client-request-id': 'd6ca86c4-26d0-4676-b128-913bd085647b' } } 

which is a bit hard to understand by a new user. maybe return a text:

500 Internal Server Error

Invalid fstab
@tripodsan tripodsan added the bug Something isn't working label Mar 10, 2021
@trieloff
Copy link
Contributor

Add an x-error header while we are at it.

@tripodsan
Copy link
Contributor Author

can't reproduce anymore

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants