This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-26
Channels
- # beginners (55)
- # bristol-clojurians (4)
- # calva (9)
- # clj-kondo (29)
- # cljsrn (1)
- # clojars (6)
- # clojure (57)
- # clojure-dev (4)
- # clojure-uk (22)
- # clojurescript (52)
- # code-reviews (1)
- # core-async (33)
- # cursive (12)
- # datomic (46)
- # docker (7)
- # figwheel-main (13)
- # fulcro (8)
- # graalvm (3)
- # instaparse (1)
- # kaocha (2)
- # perun (1)
- # portkey (5)
- # re-frame (3)
- # shadow-cljs (46)
- # spacemacs (7)
- # specter (3)
- # vim (1)
- # vscode (3)
Hello, I'm attempting to deploy an :http-direct app via a datomic ion, but for the life of me I can't get past this error when submitting to the endpoint:
No implementation of method: :->bbuf of protocol: #'datomic.ion.lambda.api-gateway/ToBbuf found for class: nil
at core_deftype.clj
Note, this exact error is mentioned in troubleshooting relating to not returning a valid response from lambda ions, but I'm returning a valid string.
This is my http-handler
(defn graphql-route [secret query vars]
(if (is-authorized? secret)
(let [result (execute orders-schema query vars nil)]
(json/write-str result))
(json/write-str {:message "Not authorized"})))
(defn http-handler [req]
(let [body (-> (:body req) io/reader (json/read :key-fn keyword))]
{:status 200
:headers {"Content-Type" "application/json"}
:body (graphql-route (-> req :headers (get "authorization")) (-> body :query) (-> body :variables))}))
(def app
(apigw/ionize http-handler))
Any hints on where this sort of error could be comming from would be much appreciated.
Hi, in the email I got about having a starter pro license, there is a link to the EULA - which results in a 404
Hello, I try find find my way through datomic and I still have really basic questions. I have a transactor and a peer server running locally, and I try the following program:
(ns datomic-tuto.core
(:require
[datomic.client.api :as d]))
(def cfg {:server-type :peer-server
:access-key "myaccesskey"
:secret "mysecret"
:endpoint "localhost:8998"
:validate-hostnames false})
(def client (d/client cfg))
(d/delete-database client {:db-name "pet-owners-db"})
When I try to delete a database, I get the following error in REPL:
1. Unhandled java.lang.AbstractMethodError
datomic.client.impl.shared.Client.delete_database(Ljava/lang/Object;)Ljava/lang/Object;
async.clj: 158 datomic.client.api.async/delete-database
async.clj: 150 datomic.client.api.async/delete-database
sync.clj: 74 datomic.client.api.sync.Client/delete_database
api.clj: 155 datomic.client.api/delete-database
api.clj: 146 datomic.client.api/delete-database
REPL: 25 datomic-tuto.core/eval17171
REPL: 25 datomic-tuto.core/eval17171
Compiler.java: 7176 clojure.lang.Compiler/eval
Compiler.java: 7131 clojure.lang.Compiler/eval
core.clj: 3214 clojure.core/eval
core.clj: 3210 clojure.core/eval
main.clj: 414 clojure.main/repl/read-eval-print/fn
main.clj: 414 clojure.main/repl/read-eval-print
main.clj: 435 clojure.main/repl/fn
main.clj: 435 clojure.main/repl
main.clj: 345 clojure.main/repl
RestFn.java: 1523 clojure.lang.RestFn/invoke
interruptible_eval.clj: 79 nrepl.middleware.interruptible-eval/evaluate
interruptible_eval.clj: 55 nrepl.middleware.interruptible-eval/evaluate
interruptible_eval.clj: 142 nrepl.middleware.interruptible-eval/interruptible-eval/fn/fn
AFn.java: 22 clojure.lang.AFn/run
session.clj: 171 nrepl.middleware.session/session-exec/main-loop/fn
session.clj: 170 nrepl.middleware.session/session-exec/main-loop
AFn.java: 22 clojure.lang.AFn/run
Thread.java: 748 java.lang.Thread/run
The delete_database method seems to be abstract and I don't understand how it is possible. I use the datomic-pro lib [com.datomic/datomic-pro "0.9.6024"]
Any help/hint would be really helpful :)I was checking that and for me it is a function of the client: https://docs.datomic.com/client-api/datomic.client.api.html#var-delete-database
Ok, but I must do something wrong, when I try (client/delete-database {:db-name "pet-owners-db"})
I get the error No such namespace: client
If you want to create or delete a db with onprem you need to connect a peer to your transactor and do so
In particular the peer server part: "The Datomic Peer Server does not create durable-storage databases itself. To use a Peer Server along with a dev storage database you will need to have previously created a database and have a running dev Transactor. "
Hi Iām experimenting with the analytics support in Cloud, and iām running into an issue where I get a āfailed: Rounding necessaryā error from time to time. I thought Iād traced it down to a specific ācolumnā, by just adding them one by one to a query. But I then found that, subsequent queries with only that column, didnāt cause the issue
so in this case, how can i handle cases where there scale might vary? If I have bigdec attrs, for say :something/money. and some are 123 and others 123.45 ?
sorry, yeah figured that out. thx ! ironically this revealed some bugs in the code where moneytary vals had something othehr than a scale of 2 (or 0)
@dharrigan you can drop an email to <mailto:[email protected]|[email protected]> that way it wonāt get lost to slack archiving or you can drop a note here.