Node.js AWS Textract在Lambda上不起作用

时间:2019-12-07 09:05:59

标签: amazon-web-services amazon-textract

我正在使用NodeJS AWS开发工具包textract检测图像(图像文件点PNG / JPG)。它正在使用AWS EC2。但是它不适用于AWS Lambda函数。

我得到答复:

SELECT MAX(count) 
FROM (SELECT post_id as idpro,COUNT(post_id) count
FROM visits 
GROUP BY post_id ) as test;

1 个答案:

答案 0 :(得分:0)

似乎lambda没有通过JSON事件调用,这可能是两个原因,

更好地显示您如何调用lambda

InvalidRequestContentException

The request body could not be parsed as JSON.

HTTP Status Code: 400

UnsupportedMediaTypeException

The content type of the Invoke request body is not JSON.

HTTP Status Code: 415

Lambda-API_Invoke

handle-errors-in-lambda-integration