Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(ns buzzlabs.scraper.actions
[com.wsscode.pathom3.connect.built-in.resolvers :as pbir]
[com.wsscode.pathom3.interface.eql :as p.eql]
[com.wsscode.pathom3.interface.async.eql :as pa.eql]
[com.wsscode.pathom3.connect.indexes :as pci]
[com.wsscode.pathom3.connect.operation :as pco]
[ :as psm]
[com.wsscode.pathom3.connect.built-in.resolvers :as pbir]
[clj-http.cookies :as cookies]
[clj-http.client :as http]
[ :as json]
[taoensso.timbre :refer [info]]
[net.cgrand.enlive-html :as html]
[clojure.string :as st]
[ :as edn]
;[promesa.core :as p]
[taoensso.timbre :as log]
[clojure.pprint :as pp]))
;; what happening?
(pco/defresolver ex11 []
{::pco/output [:ex.xico/http]}
{:ex.xico/http (http/post "" {:headers {:Content-Type "application/json"}})})
(pco/defresolver ex12 []
{::pco/input [:ex.xico/c]}
{:ex.xico/cc (http/post "" {:headers {:Content-Type "application/json"}})})
(pco/defmutation mutation-ex3 []
{:ex.xico/cc (http/post "" {:headers {:Content-Type "application/json"}})})
(def env1 (->
(psm/with-error-mode ::psm/error-mode-loud)))
;; note in line 41 with psm/with-error-mode if I comment #_(psm/...) this line, the mutation will be work.
;; with this line(41) uncommented the invoke at line 47 return an error, I put in first comment bellow
(:ex.xico/http (psm/smart-map env1))
(p.eql/process env1 [`(mutation-ex3)])

This comment has been minimized.

Copy link
Owner Author

@matheusfrancisco matheusfrancisco commented Feb 17, 2021

       :data #:com.wsscode.pathom3.attribute{:attribute :async},
       :via [{:type clojure.lang.ExceptionInfo,
              :message "Can't find a path for :async",
              :data #:com.wsscode.pathom3.attribute{:attribute :async},
              :at [com.wsscode.pathom3.connect.runner.stats$attribute_error__25438 invokeStatic "stats.cljc" 73]}],
       :trace [[com.wsscode.pathom3.connect.runner.stats$attribute_error__25438 invokeStatic "stats.cljc" 73]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment