You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the AWS Lambda plugin, one of my AWS key/secret pairs contains a literal plus sign (+) in the string. I couldn't for the life of me figure out why I kept getting key errors until I realized that once the information was saved, the plus sign was removed and replaced with whitespace.
To fix the problem, I had to use %2B in place of the plus sign to get it to save as the literal plus sign. Once I did this, everything worked.
Steps To Reproduce
Configure the AWS Lambda plugin with any API route and pass in a config string that contains a + in it.
After running the RESTful request, notice in the response that the + is stripped out and replaced with whitespace.
Additional Details & Logs
Kong version (0.11.0)
Operating System: Ubuntu 16.04 (Xenial)
The text was updated successfully, but these errors were encountered:
How did you send the request to the Admin API endpoint?
If you are using curl, for example, when sending any reserved characters in an HTTP request, you need to use --data-urlencode instead of --data to supply your data. This will escape the reserved characters for you.
@hishamhm is correct. This is a duplicate of #2651, which in turn was not a bug :) Please use --data-urlencode when defining request body params with + characters.
Summary
Using the AWS Lambda plugin, one of my AWS key/secret pairs contains a literal plus sign (+) in the string. I couldn't for the life of me figure out why I kept getting key errors until I realized that once the information was saved, the plus sign was removed and replaced with whitespace.
To fix the problem, I had to use
%2B
in place of the plus sign to get it to save as the literal plus sign. Once I did this, everything worked.Steps To Reproduce
+
in it.+
is stripped out and replaced with whitespace.Additional Details & Logs
0.11.0
)The text was updated successfully, but these errors were encountered: