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

String input type raises: Failed to parse input. io.circe.DecodingFailure$$anon$2: String #50

Open
bneijt opened this issue Jul 12, 2021 · 1 comment

Comments

@bneijt
Copy link

bneijt commented Jul 12, 2021

The HelloWorld example from https://carpe.github.io/scalambda/docs/writing-functions/ seems to suggest that you can have a plain string as input type for handleRequest. However, when I try that, I get: Failed to parse input. io.circe.DecodingFailure$$anon$2: String.

Reading at

decodeAccumulating[I](inputString).fold(
seems to suggest that it will always try to decode the incoming string, which would make the HelloWorld example impossible?

@SwiftEngineer
Copy link
Contributor

That's odd... You should actually be able to have the function take in a string as in input just fine.

Are you sure you provided a valid string to the function when you invoked it?

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

No branches or pull requests

2 participants