2 個答案
- 最新
- 最多得票
- 最多評論
0
-d is used to sent a payload, not query parameters.
What you need to do is:
curl https://<lambda-url>/item=one
0
Anwering my own question.
return {
'statusCode': 200}
and
return
{
`statusCode`: 200 }
are not equivalent. The first returns the object, while the second returns None
(which somehow becomes null
).
I miss FORTRAN. Any plans of adding it to Lamdba runtimes?
已回答 1 年前
Python is quite picky about whitespace and lines that are not marked as unterminated - as in this case. As far as Fortran goes: You can create your own Lambda runtimes: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-custom.html - I'm not sure if you're serious or not but if you are, it's probably doable.
相關內容
- 已提問 6 個月前
- 已提問 1 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
Hi Uri, Thank you for the reply. I tried:
curl -X POST https://<lambda-id>.lambda-url.ap-southeast-2.on.aws/?item=two
The result isnull
as well. This beats me. I created a test event:I also added a print statement to the Lambda function:
The execution results are:
Any further help would be much appreciated.