Closed KKWANH closed 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
스웨거에서 적어주신대로 보냈는데도 500 에러가 뜹니다.
(roomType, rooName 등의 것들에는 문제가 없읍니다..)
에러 메시지
에러 메시지