• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

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

21.02.03 18:30 작성 조회수 170

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 문제도 해결했구요

뭐가 문제일까요?

답변 4

·

답변을 작성해보세요.

0

pourgga님의 프로필

pourgga

2021.08.02

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

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

0

Hoi님의 프로필

Hoi

2021.04.04

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

0

박재용님의 프로필

박재용

질문자

2021.02.04

해결했습니다.

0

박재용님의 프로필

박재용

질문자

2021.02.03

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