Fork me on GitHub
#pathom
<
2018-11-27
>
souenzzo01:11:58

@wilkerlucio

23:52:51.709 ERROR formiguinhas-service.parser - handler #error {
 :cause Call to #'com.wsscode.pathom.connect/pick-resolver did not conform to spec.
when I try [{(:app/todo {:done? false}) ...}] same with [({:app/todo ...} {:done? false})]

souenzzo02:11:38

It's something with [:edn-query-language.core/join-query :edn-query-language.core/query :edn-query-language.core/query-expr :edn-query-language.core/property]

souenzzo13:11:46

Using (stest/unstrument 'com.wsscode.pathom.connect/pick-resolver) for now 🙂

wilkerlucio13:11:26

thanks man, I'm in a bit rush because of the conj this week, but if you can file an issue I can take a better look next week

souenzzo15:11:16

I will try to solve at night

souenzzo20:11:28

there some thing really odd in pahtom instrumentation

(.toString xx)
Evaluation error (StackOverflowError) at java.util.regex.Pattern$Branch.match (Pattern.java:4736).
null
(.getMessage xx)
=> "Call to #'com.wsscode.pathom.diplomat.http/request did not conform to spec."

souenzzo20:11:09

when we do (http/request (assoc ctx :url "abc123")) with (stest/instrument), it check all keys in ctx map and throws a really odd exception. It may be a clojure-spec issue too.

souenzzo20:11:01

I'm using

(stest/unstrument '[com.wsscode.pathom.connect/pick-resolver
                    com.wsscode.pathom.connect/register
                    com.wsscode.pathom.connect/add
                    com.wsscode.pathom.diplomat.http/request])

wilkerlucio20:11:04

the :url needs to be namespaced to be valid to request

souenzzo21:11:58

I know. it just a example 🙂