portkey

Portkey: from REPL to Serverless in one call
sekao 2018-06-08T16:02:25.000515Z

hello all. i managed to deploy the example ring project but when I visit the URL i’m getting {"message": "Internal server error"}. in the AWS lambda logs it says Error loading class portkey.LambdaStub: java.lang.ExceptionInInitializerError Caused By: com.esotericsoftware.kryo.KryoException: Unable to find class: instaparse.core.Parser. have you seen this issue before?

viesti 2018-06-08T16:33:05.000489Z

agh, I remember seeing this also, might be similar issue as this one https://github.com/portkey-cloud/portkey/issues/41

sekao 2018-06-08T16:59:51.000725Z

I should mention that i ran the project via windows subsystem for linux, not sure if that matters

sekao 2018-06-08T17:10:52.000517Z

i also tried manually adding instaparse as a dependency but still no bueno. does portkey copy everything on the classpath? i guess i don’t actually know how it works 🙂

viesti 2018-06-08T19:07:15.000568Z

so I think we run into dark Java magic when trying to serialize the contents of Instaparse Parser var :)

cgrand 2018-06-08T19:20:32.000425Z

We need an easy way to add such cases as tests.

viesti 2018-06-08T19:55:23.000172Z

so I had in mind to do just lein run -m here.comes/trouble so one can ship deps for a test with project.clj. I think CircleCI build is configured against my AWS account so deployment can be done as well as invocation (can even a curl thing)

viesti 2018-06-08T19:56:07.000456Z

so to have separate Leiningen projects as test

viesti 2018-06-08T19:56:27.000683Z

which is what people might actually have

viesti 2018-06-08T19:57:22.000308Z

but narrowed for tests to make the thing utter it's secrets for the masters

cgrand 2018-06-08T20:18:03.000273Z

How hard would it be to retrieve logs for a given invocation?