This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-09
Channels
- # beginners (47)
- # boot (5)
- # cider (25)
- # cljs-dev (2)
- # clojars (2)
- # clojure (33)
- # clojure-dev (25)
- # clojure-italy (2)
- # clojure-uk (35)
- # clojurescript (27)
- # core-async (2)
- # datomic (5)
- # graphql (2)
- # immutant (3)
- # off-topic (3)
- # onyx (2)
- # pedestal (4)
- # portkey (52)
- # reagent (2)
- # shadow-cljs (55)
- # spacemacs (21)
- # sql (8)
- # tools-deps (22)
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
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
love to see portkey
growing 😄
long term view
so far it’s still growing
yeah, along these lines https://twitter.com/richhickey/status/1004757794183106560
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
it’s just a little typo
req/resp, who cares ? 😄
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<-
?
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 😂