This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-17
Channels
- # aleph (2)
- # announcements (20)
- # aws (43)
- # aws-lambda (5)
- # babashka (9)
- # beginners (231)
- # calva (4)
- # cider (12)
- # cljdoc (8)
- # cljsrn (3)
- # clojure (47)
- # clojure-europe (5)
- # clojure-nl (4)
- # clojure-spec (41)
- # clojure-uk (47)
- # clojuredesign-podcast (3)
- # clojurescript (20)
- # cryogen (3)
- # cursive (4)
- # data-science (2)
- # datomic (15)
- # emacs (4)
- # fulcro (21)
- # jackdaw (6)
- # jobs (1)
- # joker (13)
- # juxt (8)
- # kaocha (10)
- # malli (7)
- # off-topic (29)
- # pathom (11)
- # re-frame (19)
- # reagent (3)
- # reitit (26)
- # remote-jobs (8)
- # schema (2)
- # shadow-cljs (112)
- # spacemacs (1)
- # tools-deps (49)
- # vim (2)
- # xtdb (7)
Execution error (FileNotFoundException) at cognitect.aws.dynaload/load-ns (dynaload.clj:8).
Could not locate cognitect/aws/protocols/__init.class, cognitect/aws/protocols/.clj or cognitect/aws/protocols/.cljc on classpath.
class clojure.lang.Compiler$CompilerException
I'm getting this error from aws-api
Paste a full trace in a snippet please @grounded_sage
@ghadi updated the snippet.
(def kms (aws/client {:api :kms
:region ""
:credentials-provider (credentials/basic-credentials-provider
{:access-key-id ""
:secret-access-key ""})}))
I'm doing stuff in the REPL. Where do I put *e
?
#error {
:cause "Could not locate cognitect/aws/protocols/__init.class, cognitect/aws/protocols/.clj or cognitect/aws/protocols/.cljc on classpath."
:via
[{:type clojure.lang.Compiler$CompilerException
:message "Syntax error macroexpanding at (NO_SOURCE_FILE:1:10)."
:data #:clojure.error{:phase :execution, :line 1, :column 10, :source "NO_SOURCE_FILE"}
:at [clojure.lang.Compiler$InvokeExpr eval "Compiler.java" 3707]}
{:type .FileNotFoundException
:message "Could not locate cognitect/aws/protocols/__init.class, cognitect/aws/protocols/.clj or cognitect/aws/protocols/.cljc on classpath."
:at [clojure.lang.RT load "RT.java" 462]}]
:trace
[[clojure.lang.RT load "RT.java" 462]
[clojure.lang.RT load "RT.java" 424]
[clojure.core$load$fn__6839 invoke "core.clj" 6126]
[clojure.core$load invokeStatic "core.clj" 6125]
[clojure.core$load doInvoke "core.clj" 6109]
[clojure.lang.RestFn invoke "RestFn.java" 408]
[clojure.core$load_one invokeStatic "core.clj" 5908]
[clojure.core$loa
d_one invoke "core.clj" 5903]
[clojure.core$load_lib$fn__6780 invoke "core.clj" 5948]
[clojure.core$load_lib invokeStatic "core.clj" 5947]
[clojure.core$load_lib doInvoke "core.clj" 5928]
[clojure.lang.RestFn applyTo "RestFn.java" 142]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$load_libs invokeStatic "core.clj" 5985]
[clojure.core$load_libs doInvoke "core.clj" 5969]
[clojure.lang.RestFn applyTo "RestFn.java" 137]
[clojure.core$apply invokeStatic "core.clj" 667]
[clojure.core$require invokeStatic "core.clj" 6007]
[clojure.core$require doInvoke "core.clj" 6007]
[clojure.lang.RestFn invoke "RestFn.java" 408]
[cognitect.aws.dynaload$load_ns invokeStatic "dynaload.clj" 8]
[cognitect.aws.dynaload$load_ns invoke "dynaload.clj" 5]
[cognitect.aws.client.api$client invokeStatic "api.clj" 78]
[cognitect.aws.client.api$client invoke "api.clj" 23]
[clojure.lang.AFn applyToHelper "AFn.java" 154]
[clojure.lang.AFn applyTo "AFn.java" 144]
[clojure.lang.Compiler$Invoke
Expr eval "Compiler.java" 3702]
[clojure.lang.Compiler$DefExpr eval "Compiler.java" 457]
[clojure.lang.Compiler eval "Compiler.java" 7182]
[clojure.lang.Compiler eval "Compiler.java" 7132]
[clojure.core$eval invokeStatic "core.clj" 3214]
[clojure.core$eval invoke "core.clj" 3210]
[clojure.main$repl$read_eval_print__9086$fn__9089 invoke "main.clj" 437]
[clojure.main$repl$read_eval_print__9086 invoke "main.clj" 437]
[clojure.main$repl$fn__9095 invoke "main.clj" 458]
[clojure.main$repl invokeStatic "main.clj" 458]
[clojure.main$repl doInvoke "main.clj" 368]
[clojure.lang.RestFn invoke "RestFn.java" 1523]
[nrepl.middleware.interruptible_eval$evaluate invokeStatic "interruptible_eval.clj" 79]
[nrepl.middleware.interruptible_eval$evaluate invoke "interruptible_eval.clj" 55]
[nrepl.middleware.interruptible_eval$interruptible_eval$fn__935$fn__939 invoke "interruptible_eval.clj" 142]
[clojure.lang.AFn run "AFn.java" 22]
[nrepl.middleware.session$session_exec$main_loop__1036$fn__1040 inv
oke "session.clj" 171]
[nrepl.middleware.session$session_exec$main_loop__1036 invoke "session.clj" 170]
[clojure.lang.AFn run "AFn.java" 22]
[java.lang.Thread run "Thread.java" 834]]}
I've also got an empty service.edn
file.. I don't know what is supposed to be in there. The documentation is a bit sparse for a beginner on AWS stuff.
com.cognitect.aws/api {:mvn/version "0.8.408"}
com.cognitect.aws/endpoints {:mvn/version "1.1.11.705"}
com.cognitect.aws/s3 {:mvn/version "784.2.593.0"}
It wasn't....
I was just following this and just trying to get something running https://github.com/cognitect-labs/aws-api#credentials
The repl runs fine on my machine where I have aws cli
and set up the aws config
. I was able to poke around at the buckets with the repl. Now I am trying to get it working on a remote server and am lost.
Yea I don't even know what the kms was until recently.
Was wondering if it needed to actually be ec2
?
that section of the readme is trying to show how to use create a client with credentials
Ok so I have the kms dependency now. Do I need to require it?
Compiling now 🙂 Still got to test if it works but it's looking good so far
I'm getting back this.
{:Error
{:HostIdAttrs {},
:Message "The AWS Access Key Id you provided does not exist in our records.",
:CodeAttrs {},
:RequestIdAttrs {},
:HostId ".....",
:MessageAttrs {},
:RequestId ".....",
:Code "InvalidAccessKeyId",
:AWSAccessKeyIdAttrs {},
:AWSAccessKeyId "null"},
:ErrorAttrs {},
:cognitect.anomalies/category :cognitect.anomalies/forbidden}
Do I have to provide a :user-name
?
It's strange. I did a straight copy and paste from the same thing I have on my machine.
Thank you for your help @ghadi !