djblue / portal

A clojure tool to navigate through your data.
https://djblue.github.io/portal/
MIT License
872 stars 81 forks source link

java.lang.IllegalArgumentException: Cannot open <nil> as a Reader. #226

Open devurandom opened 3 months ago

devurandom commented 3 months ago

I experienced a connection issue between my nREPL and the Portal server and wanted to confirm that the server works using curl, but got a 500 Internal Server Error:

❯ curl -vv http://localhost:36017
* Host localhost:36017 was resolved.
* IPv6: ::1
* IPv4: 127.0.0.1
*   Trying [::1]:36017...
* Connected to localhost (::1) port 36017
> GET / HTTP/1.1
> Host: localhost:36017
> User-Agent: curl/8.6.0
> Accept: */*
>
< HTTP/1.1 500 Internal Server Error
< Content-Length: 30
< Server: http-kit
< Date: Thu, 23 May 2024 13:14:56 GMT
<
* Connection #0 to host localhost left intact
Cannot open <nil> as a Reader.

idea.log:

2024-05-23 15:14:56,767 [ 143491]   INFO - #portal.extensions.intellij.factory.PortalLogger - Request: /
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR - Thu May 23 15:14:56 CEST 2024 [worker-2] ERROR - GET /
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR - java.lang.IllegalArgumentException: Cannot open <nil> as a Reader.
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at clojure.java.io$fn__11641.invokeStatic(io.clj:288)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at clojure.java.io$fn__11641.invoke(io.clj:288)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at clojure.java.io$fn__11530$G__11519__11537.invoke(io.clj:69)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at clojure.java.io$reader.invokeStatic(io.clj:102)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at clojure.java.io$reader.doInvoke(io.clj:86)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at clojure.lang.RestFn.invoke(RestFn.java:410)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at portal.extensions.intellij.factory$handler.invokeStatic(factory.clj:63)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at portal.extensions.intellij.factory$handler.invoke(factory.clj:61)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at portal.extensions.intellij.factory$start$fn__461$fn__463.invoke(factory.clj:87)
2024-05-23 15:14:56,768 [ 143492]   INFO - STDERR -     at org.httpkit.server.HttpHandler.run(RingHandler.java:117)
2024-05-23 15:14:56,769 [ 143493]   INFO - STDERR -     at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
2024-05-23 15:14:56,769 [ 143493]   INFO - STDERR -     at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
2024-05-23 15:14:56,769 [ 143493]   INFO - STDERR -     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
2024-05-23 15:14:56,769 [ 143493]   INFO - STDERR -     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
2024-05-23 15:14:56,769 [ 143493]   INFO - STDERR -     at java.base/java.lang.Thread.run(Thread.java:840)