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
Curl did not carry the cookie when http/https request in default. But still can fetch the data.
Reproduce
Direct use curl in terminal
Test the following api
/api/users : Can get the users directly /api/documents/me: {"statusCode":500,"message":"Internal server error"}. Perhaps server got the empty user /api/comments: {"data":[],"page":1,"limit":10,"total":0}
The text was updated successfully, but these errors were encountered:
If you do not carry the access_token, you do not have permission to access /documents/me. However, you are allowed to view public documents, so it is normal to encounter an error. I have now changed it to return a 401 Unauthorized status code.
Curl did not carry the cookie when http/https request in default. But still can fetch the data.
Reproduce
curl
in terminal/api/users
: Can get the users directly/api/documents/me
: {"statusCode":500,"message":"Internal server error"}. Perhaps server got the empty user/api/comments
: {"data":[],"page":1,"limit":10,"total":0}The text was updated successfully, but these errors were encountered: