강의

멘토링

커뮤니티

Inflearn Community Q&A

scoftpion0649's profile image
scoftpion0649

asked

Node and React series that you can learn by following - Creating a chatbot site

Making a Chatbot Application #3 Structure Explanation & Creating textQuery Route

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

Written on

·

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

Answer 4

0

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

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

0

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

0

scoftpion0649님의 프로필 이미지
scoftpion0649
Questioner

해결했습니다.

0

scoftpion0649님의 프로필 이미지
scoftpion0649
Questioner

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

scoftpion0649's profile image
scoftpion0649

asked

Ask a question