question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NullReference while connecting to remote server via VPN

See original GitHub issue

Hello!

I have problem: with establishing connection with NATS server via VPN:

  • client and server are located on different machines connected via internet and VPN channel
  • I can access to server’s web interface via browser and connect to 4222 port via browser (receive invalid portocol operation response, but it’s OK)
  • when I try to establish connection from code, I receive NullReferenceException here:
   at NATS.Client.Connection.Control..ctor(String s) in Connection.cs:line 3780
   at NATS.Client.Connection.readOp() in Connection.cs:line 799
   at NATS.Client.Connection.processExpectedInfo(Srv s) in Connection.cs:line 627

Nats client version: 0.11.0 Nats server: 2.1.9

I can see that TCP connection is established, but data can not be read from it…

Update: I seems to be a bug in the client v.0.11.0. I downgraded to the previous version (0.10.1) and was able to connect to the server

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ColinSullivan1commented, Feb 25, 2021

I believe this is resolved in #432.

0reactions
scottfcommented, Nov 16, 2022

Closed as resolved in #432

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I resolve an "Arg_NullReferenceException" error ...
I use CheckPoint VPN to log in to my place of work's servers to work remotely. The VPN has been working (mostly) fine...
Read more >
VPN connection crashes because of corrupted user profile
Hello, when I try to connect to company VPN (with Windows ... Access Dialer has stopped working" because of null reference exception.
Read more >
Troubleshoot Always On VPN
Go to Control Panel > Network and Internet > Network Connections, open the properties for your VPN Profile, and check to make sure...
Read more >
K75542506: The client cannot connect to VPN with an error ...
K75542506: The client cannot connect to VPN with an error message ''Failed to initialize local Tunnel Server''.
Read more >
Getting script error when trying to connect to SSL Remote ...
The error occurs when the user wants to authorize via .pro file and has no rights for the VPN at all. Please check...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found