using --raw with a Java handler #11998
Unanswered
chris-gilbert-2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm considering creating an issue, and potentially contributing, but I wonder if I'm missing something obvious as nobody else on the internet seems to have the problem.
My issue is attempting to invoke a Java based function locally with raw input - I have a function that expects a String that does not represent Json. However, this always errors with
Looking at the code it is pretty clear why that happens
invoke-local/index.js
wraps the raw input in a json object as the "event" propertyInvokeBridge
constructor parses that json object into a map of String to Object, and then casts the object keyed asevent
to a Map on line 34I think a fix would be straightforward
Before creating an issue, has anyone else hit this problem?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions