PPiing / backend

PPong 프로젝트의 백앤드 리포지토리입니다.
3 stars 2 forks source link

:sparkles: 신규 채팅방 500 error #230

Closed KKWANH closed 2 years ago

KKWANH commented 2 years ago

스웨거에서 적어주신대로 보냈는데도 500 에러가 뜹니다.

axios.post("/api/chatrooms/new/", {
  chatType: roomType,
  chatName: roomName,
  password: roomPassword,
  isDirected: false,
}).

(roomType, rooName 등의 것들에는 문제가 없읍니다..)

에러 메시지

POST http://localhost/api/chatrooms/new/ 500 (Internal Server Error)

에러 메시지

AxiosError {message: 'Request failed with status code 500', name: 'AxiosError', code: 'ERR_BAD_RESPONSE', config: {…}, request: XMLHttpRequest, …}
code: "ERR_BAD_RESPONSE"
config: {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …}
message: "Request failed with status code 500"
name: "AxiosError"
request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
response:
config: {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …}
data:
message: "Internal server error"
statusCode: 500
[[Prototype]]: Object
headers: {access-control-allow-credentials: 'true', access-control-allow-origin: '*', connection: 'keep-alive', content-length: '52', content-type: 'application/json; charset=utf-8', …}
request: XMLHttpRequest {onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, upload: XMLHttpRequestUpload, …}
status: 500
statusText: "Internal Server Error"
[[Prototype]]: Object
[[Prototype]]: Error
joohongpark commented 2 years ago

9ffb2ac