Replies: 1 comment
-
Hello @mg98 - as this is not related to the Framework, I'm moving it to "Discussions" - this tracker is intended for enhancement proposals and/or bug tracking. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a function with
runtime: go1.x
and an HTTP event (API Gateway trigger).This is how the implementation for the handler function looks in this case:
This function is called in the main func:
So when the execution arrives at an error, I am returning something like this:
What do I expect from this?
Requests fail with response code 400 and the message "missing signature".
What do I actually get?
Requests fail with response code 502 and the
{ "message": "Internal server error" }
.CloudWatch logs the following:
...which is also a strange output. It seems to output the type of the error (errorString) and whatever null stands for. Maybe it also makes sense to do it like that, I don't know. But what I want to say with this, in particular with the HTTP response, is that errors are not handled correctly for functions in Go.
Beta Was this translation helpful? Give feedback.
All reactions