Invoke API has LogType
parameter, which set to Tail
(when InvokeType is RequestResponse) returns last 4kB of logs https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax
That might do it
aws cli has this wrapped, but we can use our lib :)
a bit shortened version of this instruction could help https://docs.aws.amazon.com/lambda/latest/dg/with-userapp-walkthrough-custom-events-invoke.html
but I guess people might already know how to get logs from Cloudwatch, in this particular case it might be that we swallow the actual cause
or say the java crypto classes, a field isnโt serialized (I think) and stack just says โnpeโ: https://circleci.com/gh/portkey-cloud/portkey/62
ahh
love to see portkey
growing ๐
so whipped a test for instaparse, similar serialization issue I think
maybe Iโm pessimist but at least it breaths and is kind of warm ๐
lol
long term view
@viesti uploaded a file: https://clojurians.slack.com/files/U06QSF3BK/FB4CXRJ20/null.clj
so far itโs still growing
yeah, along these lines https://twitter.com/richhickey/status/1004757794183106560
last summer had many more of these exceptions, should not forget my veteran status ๐
lol, true !
so, you will find an example of the generated fns ser and resp in here
it compiles but there is an error in resp generation (quick fix, I just donโt destructure the input)
and we still have ser-create-function-request
somehow ๐
nope fixed
sorry for spaming
next step => 1) fix destructuring for resp 2) integrate with the existing -rest-json-call
and make it work ๐
@baptiste-from-paris had a quick glance: dudnโt you switch resp and req?
no no, reload the file
ser does serialization & resp gather inputs by request type and required inputs
(clojure.core/defn resp-list-event-source-mappings-request [resp-input48914] (clojure.core/cond-> {} (clojure.core/contains? resp-input48914 "EventSourceArn") (clojure.core/assoc-in [:query-string "EventSourceArn"] (ser-arn resp-input48914)) (clojure.core/contains? resp-input48914 "FunctionName") (clojure.core/assoc-in [:query-string "FunctionName"] (ser-function-name resp-input48914)) (clojure.core/contains? resp-input48914 "Marker") (clojure.core/assoc-in [:query-string "Marker"] (ser-string resp-input48914)) (clojure.core/contains? resp-input48914 "MaxItems") (clojure.core/assoc-in [:query-string "MaxItems"] (ser-max-list-items resp-input48914))))
for example
Resp is for response not for request > resp gather inputs by request type
looool
itโs just a little typo
๐
Thatโs what I said :-)
req/resp, who cares ? ๐
loool
I really need to leave paris for few days ๐
Only us who deal with code gen. Letโs all agree to mentally switch request and response.
lol, Iโll fix it immediatly, was it req<-
?
Iirc yes
so I just fixed destructuring for req<-*
, it should be close to something working
so this function request =>
(req<-create-alias-request {:function-name "The Name" :name "kikoulol" :function-version 3})
gives =>
{:uri {"FunctionName" "The Name"}, :body {"Name" "kikoulol", "FunctionVersion" 3}}
all this work for this ๐
portkey setting hair on fire? :)
lol