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
Describe the bug
Invalid MongoDB ObjectId causes server to respond with 500 (Internal Server Error) error code, which will cause the server to retry requesting the same ObjectId every seconds.
Invalid ObjectId described above is a string which consists more or less than 24 characters.
Expected behavior
If server receives an invalid ObjectId, server should responds with 400 (Bad Request) error code instead of 500 (Internal Server Error)
Screenshots
Desktop (please complete the following information):
OS: Windows 10 OS Version 2009 (Build 19043.1023)
Browser Chrome
Version 91.0.4472.77
The text was updated successfully, but these errors were encountered:
stanleyowen
changed the title
Invalid ObjectId Causes Server to Respond with 500 Error Code
Invalid ObjectId Causes Server to Respond with 500 Error Code
Jun 10, 2021
Describe the bug
Invalid MongoDB
ObjectId
causesserver
to respond with500 (Internal Server Error)
error code, which will cause the server to retry requesting the sameObjectId
every seconds.Invalid
ObjectId
described above is a string which consists more or less than 24 characters.To Reproduce
Steps to reproduce the behavior:
Expected behavior
If
server
receives an invalidObjectId
,server
should responds with400 (Bad Request)
error code instead of500 (Internal Server Error)
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: