Closed jinzishuai closed 7 months ago
POST to https://zhao.toatu.com/api/auth/logout without data
got 500 (Internal Server Error)
{
"message": "The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null"
}
╭─ ~ ···································································································································· ✔ 13s base 23:10:36
╰─ curl --location --request POST 'https://chat.aitok.ai/api/auth/logout' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OGJlZmIxMGJjMmI2MWYxNjZhNTI2MiIsInVzZXJuYW1lIjoiamluemlzaHVhaSIsInByb3ZpZGVyIjoibG9jYWwiLCJlbWFpbCI6Imppbnppc2h1YWlAZ21haWwuY29tIiwiaWF0IjoxNzExNjAzMDIzLCJleHAiOjE3MTIyMDc4MjN9.ookAVF8R9mfJyunvkqRDc-OVMp9dBPoGadE_wTpHnNk'
{"message":"The \"data\" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received null"}%
╭─ ~/src/jinzishuai/LibreChat/api jinshi/stripe-pay-page-link ············································································· ✔ base 23:52:54
╰─ curl --location --request POST 'https://chat.aitok.ai/api/auth/logout' \
--header 'Cookie: refreshToken=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OGJlZmIxMGJjMmI2MWYxNjZhNTI2MiIsImlhdCI6MTcxMTYwMzAyMywiZXhwIjoxNzEyMjA3MTUwfQ.gWME9syA0b6kWcZc1qbjWDwqRGyMXtyYnjpQLyBGrKE' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0OGJlZmIxMGJjMmI2MWYxNjZhNTI2MiIsInVzZXJuYW1lIjoiamluemlzaHVhaSIsInByb3ZpZGVyIjoibG9jYWwiLCJlbWFpbCI6Imppbnppc2h1YWlAZ21haWwuY29tIiwiaWF0IjoxNzExNjAzMDIzLCJleHAiOjE3MTIyMDc4MjN9.ookAVF8R9mfJyunvkqRDc-OVMp9dBPoGadE_wTpHnNk' \
--data ''
{"message":"Logout successful"}%
Contact Details
No response
What happened?
Log out fails but this is not happening on the https://chat.aitok.ai/
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Screenshots
No response
Code of Conduct