Python CustomResource lambda returning null #25146
-
Hi All, I've written a custom resource using python and the CDK version is 2.73.0 Code:
Log event showing null being returned:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
OMG, I'm such a dope. I realised earlier today that It's interesting to note (to me anyways) that when using |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
OMG, I'm such a dope. I realised earlier today that
onUpdate
is passing back toonCreate
(sometimes) then toonEvent
and the json object isn't being passed back properly through those.It's interesting to note (to me anyways) that when using
json.dumps()
to return the json object, the logs show it being returned properly, but then being split into a key: value pair for each letter with the key being a sequential number, just returning it as normal and it all works properly.