pedestal

orestis 2020-06-11T05:25:30.183500Z

I don’t use async handlers today so I guess my code will look the same :)

orestis 2020-06-11T12:11:50.185700Z

For the life of mine I can’t figure out why upgrading lacinia-pedestal to 0.13.0 breaks GraphiQL for me. I’ve narrowed it down to com.walmartlabs.lacinia.pedestal/graphiql-ide-response which somehow generates connectionParams: --NO-MATCH--which of course the browser complains about — but even if I pass in ide-connection-params as an option I get the same result.

orestis 2020-06-11T12:13:05.186200Z

I’ve literally copy-pasted the function definition and when I call it locally, everything works as expected.

orestis 2020-06-11T12:20:57.186900Z

Huh. Of course the moment I try to attach a debugger everything works 😞

orestis 2020-06-11T12:28:12.187300Z

But not from a fresh VM. I’m not sure what’s going on.

orestis 2020-06-11T13:48:56.187700Z

Ah, wrong channel, was meant to go to #graphql — sorry

hindol 2020-06-11T14:43:56.189600Z

@orestis git bisect really helps in such cases. For a deps.edn based library and if you yourself use deps, you can point to a local copy of the library and run git bisect. But here I see they are using lein. I wonder if there is still a way to bisect.

orestis 2020-06-11T14:44:49.190Z

Turns out that (as expected) it was a problem on my end (AOT compiled deps)

orestis 2020-06-11T14:56:57.191100Z

Having fixed my AOT problems and now actually using pedestal.log 0.5.8 I’ve found a breaking change which should be impacting everyone: https://github.com/pedestal/pedestal/issues/638#issuecomment-642714551

orestis 2020-06-11T14:59:02.191600Z

Seems like it’s only direct use of log/log that breaks it; log/info still works.

hindol 2020-06-11T15:25:23.192300Z

Good thing you figured it out. These types of bugs are always difficult.

2020-06-11T16:23:02.193Z

@orestis sorry you ran into this issue. Creating an issue and will tackle tomorrow.

orestis 2020-06-11T16:41:54.194Z

No worries, I figured it out and have a workaround :)