Fork me on GitHub
#portal
<
2024-05-29
>
m.q.warnock21:05:09

I bound portal to a specific interface (private ip-on-infiniband network) with the host option (port set to 5678); when I open the url, I get a blank page and this at the console:

Uncaught (in promise) DOMException: Failed to construct 'WebSocket': The URL ':NaN/rpc?854b01b2-07ca-4129-80eb-3fbfb853d1d4' is invalid.
    at 
    at new Promise (<anonymous>)
    at h1.j ()
    at h1.I ()
    at c1 ()
    at 
    at new Promise (<anonymous>)
    at AQa ()
    at d1 ()
    at CNa ()
Note the NaN where the port should be. I'm happy to open an issue and/or do more debugging (later probably), if I'm not missing something known.

m.q.warnock21:05:15

hmm, yeah; seems to expect the port to be included there, but not elsewhere (adding ":5678" to the end adds an extra one to the url portal prints)

djblue21:05:48

So the code looks like?

(when host
  (str "window.PORTAL_HOST    = " (pr-str (str host ":5678")) ";"))

m.q.warnock21:05:46

that'd be my guess, but it's your baby 😉 I'll try that patch in a bit if you haven't - need to run an errand