Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot get raw body in json request #140

Closed
jscheel opened this issue Oct 28, 2016 · 2 comments · May be fixed by Itchibon777/serverless-offline#55 or Itchibon777/serverless-offline#57
Closed

cannot get raw body in json request #140

jscheel opened this issue Oct 28, 2016 · 2 comments · May be fixed by Itchibon777/serverless-offline#55 or Itchibon777/serverless-offline#57

Comments

@jscheel
Copy link

jscheel commented Oct 28, 2016

For "$util.escapeJavaScript($input.body)" in my template, I get "{\n\t\"foo\": \"bar\"\n}" from aws and nothing from serverless-offline, with the appropriate body.

Actually, it wipes everything out after it in the requestTemplate, so all I get back is {"isOffline": true}

Should mention that I am on serverless 0.5.6 and offline 2.8.0

@dherault
Copy link
Owner

Hi @jscheel , I'm sorry to say that serverless-offline v2 is not maintained anymore. If you submit a PR on te serverless 0.5 branch, I'll bump the v2 for you.

@jscheel
Copy link
Author

jscheel commented Nov 1, 2016

@dherault np, I need to upgrade this project to 1.x anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants