Nicola
03/24/2023, 11:41 AMdave
03/24/2023, 11:43 AMNicola
03/24/2023, 11:45 AMdave
03/24/2023, 11:48 AMNicola
03/24/2023, 11:51 AMNicola
03/24/2023, 11:52 AMdave
03/24/2023, 11:55 AMNicola
03/24/2023, 11:58 AMAndrew O'Hara
03/24/2023, 1:08 PMNicola
03/24/2023, 1:13 PMNicola
03/27/2023, 10:29 AMaws --endpoint-url=<http://localhost:4566> \
lambda create-function --function-name it.multidialogo.multiprinter.MyAwsLambdaExposedFunction \
--zip-file <fileb://build/distributions/Multiprinter.zip> \
--environment Variables={NB_PORT="9001",NB_OUTPUT_PATH="/output}" \
--handler index.handler --runtime java11 \
--role arn:aws:iam::000000000000:role/lambda-role
when trying invoke:
aws --endpoint-url=<http://localhost:4566> \
lambda invoke \
--function-name it.multidialogo.multiprinter.MyAwsLambdaExposedFunction \
--payload <file://payload.json> \
response.json
I get this error:
string argument should contain only ASCII characters
Searching for this error I found only a SO post which mentions accepted media types.
I didn't configured explicitly accepted media in my function (it should be application/json btw).
Do you think this could be the cause? thanksNicola
03/27/2023, 10:30 AMNicola
03/27/2023, 10:39 AM