0

I'm in the midst of testing a new AWS SAM application, and I found a bug that i'm having trouble solving.

I have a route with a simple GET request

/myRoute

and this route support query params such as "mail"

so the full url looks something like this

/[email protected]

aws is creating the proper event for me my problem lies when I have special characters inside my string params for example [email protected] than what I'll actually get after aws-sam interpret the call is "mymail [email protected]" with a space instead of the special character +.

Any ideas?

1 Answer 1

2

This isn't an issue with SAM, Lambda, or API Gateway. The + symbol indicates a space (see this answer on that subject). You should URL encode your query string parameters, and decode them in your Lambda. The + symbol is %2B.

Sign up to request clarification or add additional context in comments.

1 Comment

I thought when Lambda Proxy integration create event their might be some option that can deal with this. This answer is good enough though

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.