jbyuki / instant.nvim

collaborative editing in Neovim using built-in capabilities
MIT License
1.29k stars 25 forks source link

Attempt to get length of local 'iptable' (a nil value) #14

Closed MorrisonWill closed 3 years ago

MorrisonWill commented 3 years ago

I installed instant.nvim in my lunarvim config and set instant_username. Trying to connect to the server started from InstantStartServer, I get the following error:

E5108: Error executing lua ...cker/start/instant.nvim/lua/instant/websocket_client.lua:60: attempt to get length of local 'iptable' (a nil value)

What can I do to fix this?

jbyuki commented 3 years ago

Did you give the host name when connecting? Similar to :InstantStartSingle 127.0.0.1 8080

MorrisonWill commented 3 years ago

Mistake was my fault, should have watched the gif in your readme since it shows the whole process. Great plugin, thank you so much!

ohmree commented 3 years ago

I also got this error when trying to connect to a properly-configured instance hosted on heroku, so I fiddled a bit with vim.loop.getaddrinfo and found out what the issue was - I was adding https:// to my deployed app's url when I should've just used myappname.herokuapp.com.

You might want to either add a fix for this or mention it in the docs as I don't see it mentioned anywhere.

jbyuki commented 3 years ago

It's mentioned here (for ngrok in this case) : https://github.com/jbyuki/instant.nvim/wiki/Deploy-a-server#connect-remote-client

ohmree commented 3 years ago

It's mentioned here (for ngrok in this case) : https://github.com/jbyuki/instant.nvim/wiki/Deploy-a-server#connect-remote-client

Ah, I see. Fair enough then. If anyone is like me and only skims through the bits that they deem relevant to their use case then at least they'll be able to find my comment now.

kj-jondell commented 2 years ago

Hello, having problem connecting to another host on the same LAN. Getting either this (iptable nil value) or ECONNREFUSED (similar to https://github.com/jbyuki/instant.nvim/issues/8). Works locally with 127.0.0.1 but not remotely on the same network. Both client and server are MacOS.