강의

멘토링

커뮤니티

Cộng đồng Hỏi & Đáp của Inflearn

Hình ảnh hồ sơ của scoftpion0649
scoftpion0649

câu hỏi đã được viết

Chuỗi bài học về Node và React để học theo - Tạo trang chatbot

Tạo ứng dụng chatbot #3 Giải thích cấu trúc & Tạo Route textQuery

postman으로 raw 데이터를 전송하면 오류가 발생합니다.

Viết

·

482

0

오류내용 :

(node:992) UnhandledPromiseRejectionWarning: Error: 3 INVALID_ARGUMENT: Input text not set.       

    at Object.exports.createStatusError (/mnt/e/Projects/CB2/node_modules/grpc/src/common.js:91:15)

    at Object.onReceiveStatus (/mnt/e/Projects/CB2/node_modules/grpc/src/client_interceptors.js:1204:28)

    at InterceptingListener._callNext (/mnt/e/Projects/CB2/node_modules/grpc/src/client_interceptors.js:568:42)

    at InterceptingListener.onReceiveStatus (/mnt/e/Projects/CB2/node_modules/grpc/src/client_interceptors.js:618:8)

    at callback (/mnt/e/Projects/CB2/node_modules/grpc/src/client_interceptors.js:845:24)

(node:992) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:992) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

//////////////////////////////////////////////////////////////

raw 데이터로 

{

    "text":"hello!"

}

라고 강의대로 넣었습니다. Credential 문제도 해결했구요

뭐가 문제일까요?

reactnodejs

Câu trả lời 4

0

저도 같은 문제가 발생했었는데

POSTMAN에서 JSON 형식으로 보내야하는데 TEXT형식으로 보내서 그랬었네요 ㅎㅎ

0

혹시어떻게 해결하셨을까요? ㅠㅠ

0

scoftpion0649님의 프로필 이미지
scoftpion0649
Người đặt câu hỏi

해결했습니다.

0

scoftpion0649님의 프로필 이미지
scoftpion0649
Người đặt câu hỏi

예제 코드를 그대로 사용했음에도, req.body.text가 undefined로 뜨는 현상이 일어나고 있습니다.

Hình ảnh hồ sơ của scoftpion0649
scoftpion0649

câu hỏi đã được viết

Đặt câu hỏi