Fork me on GitHub
#graphql
<
2018-06-27
>
PB00:06:20

Hey all. I'm seeing something odd. I'm creating a jar as such: lein uberjar. I can run that uberjar on my machine locally as such java -jar /path/to/jar, I can subsequently run curl commands on that running application. I can also put this into a docker image as such

FROM java:8

COPY target/myapp.jar /src/app.jar

EXPOSE 8888

CMD ["java", "-jar", "/src/app.jar"]
This allows me to query using the graphiql interface. HOWEVER! It is not allowing me to use curl (running the jar locally does). I also cannot use curl if I shell into the running container. The curl request returns an exception that I'm unsure of what to make of it:

PB00:06:19

It seems to be completely internal to lacinia-pedestal. Does anyone have any ideas? My best guess is that this is a dependency?

hiredman00:06:35

at socrates.db$fn__6803.invokeStatic(db.clj:38) looks like the cause

hiredman00:06:11

it looks like you are applying a regex to nil maybe

PB01:06:45

@hiredman you're awesome. I don't know how I didn't see that

hlship17:06:23

Again, io.aviso/pretty generally makes it easier to spot your stack frames in the exception stack frame soup. Unless you are using core.async, in which case, exceptions often happen in threads and stack frames with none of your code. But that's a discussion for elsewhere.