KeyNotFoundException at HandleIPHubResponseSolved

Eveytime someone joins it gives me a read console error.

The given key was not present in the dictionary.

Please provide the full error, just the generic exception/error type doesn't help anyone.

This error occurs when a player joins.


Web request callback raised an exception (NullReferenceException: Object reference not set to an instance of an object)

at Oxide.Plugins.VPNBlock.HandleIPStackResponse (Oxide.Core.Libraries.Covalence.IPlayer player, System.String url, System.String ip, System.Int32 code, System.String response) [0x000ab] in <cac67033a4ce4e85a043eded4e8b4d70>:0

at Oxide.Plugins.VPNBlock+<OnUserConnected>c__AnonStorey0.<>m__1 (System.Int32 code, System.String response) [0x00000] in <cac67033a4ce4e85a043eded4e8b4d70>:0

at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0

(22:46:02) | Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0

at Oxide.Plugins.VPNBlock.HandleIPHubResponse (Oxide.Core.Libraries.Covalence.IPlayer player, System.String url, System.String ip, System.Int32 code, System.String response) [0x00056] in <cac67033a4ce4e85a043eded4e8b4d70>:0

at Oxide.Plugins.VPNBlock+<OnUserConnected>c__AnonStorey0.<>m__0 (System.Int32 code, System.String response) [0x00000] in <cac67033a4ce4e85a043eded4e8b4d70>:0

at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0
Thanks for the report, try 0.0.51.

Sorry.

 

Web request callback raised an exception in 'VPNBlock v0.0.51' plugin (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0 
  at Oxide.Plugins.VPNBlock.HandleIPHubResponse (Oxide.Core.Libraries.Covalence.IPlayer player, System.String url, System.String ip, System.Int32 code, System.String response) [0x00056] in <6b27ead145f34848ab723689207a1387>:0 
  at Oxide.Plugins.VPNBlock+<OnUserConnected>c__AnonStorey0.<>m__0 (System.Int32 code, System.String response) [0x00000] in <6b27ead145f34848ab723689207a1387>:0 
  at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0
In response to OfficialRDB ():
Sorry. Web request callback raised an exception in 'VPNBlock v0.0.51' plugin (KeyNotFoundException...
Try the latest plugin version please.
In response to Wulf ():
Try the latest plugin version please.
Web request callback raised an exception in 'VPNBlock v0.0.51'

I think 0.0.51 is the latest.

I updated that yesterday.

It still has the same error even after the update.

Getting the same error..

 

Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.) at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in :0 at Oxide.Plugins.VPNBlock.HandleIPHubResponse (Oxide.Core.Libraries.Covalence.IPlayer player, System.String url, System.String ip, System.Int32 code, System.String response) [0x00056] in <7a72c2c15b9844c28caddd77ef95435b>:0 at Oxide.Plugins.VPNBlock+c__AnonStorey0.<>m__0 (System.Int32 code, System.String response) [0x00000] in <7a72c2c15b9844c28caddd77ef95435b>:0 at Oxide.Core.Libraries.WebRequests+WebRequest.b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43

 

Web request callback raised an exception (KeyNotFoundException: The given key was not present in the dictionary.)

at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0

at Oxide.Plugins.VPNBlock.HandleIPHubResponse (Oxide.Core.Libraries.Covalence.IPlayer player, System.String url, System.String ip, System.Int32 code, System.String response) [0x00056] in <e5ec78d48eb74f64916ff8619481190b>:0

at Oxide.Plugins.VPNBlock+<OnUserConnected>c__AnonStorey0.<>m__0 (System.Int32 code, System.String response) [0x00000] in <e5ec78d48eb74f64916ff8619481190b>:0

at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0

Same here.

I added a debug configuration option which will print the response sent from IPStack and IPHub respectively.  Also, if any of the expected keys are not found it will print a message saying which key was not found.  Between these two things, you should have enough information to tell us what is wrong.
Web request callback raised an exception in 'VPNBlock v0.0.52' plugin (KeyNotFoundException: The given key was not present in the dictionary.)
  at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <e1a80661d61443feb3dbdaac88eeb776>:0 
  at Oxide.Plugins.VPNBlock.HandleIPHubResponse (Oxide.Core.Libraries.Covalence.IPlayer player, System.String url, System.String ip, System.Int32 code, System.String response) [0x0006f] in <63d0793ccf4341c5a39e40f24241099b>:0 
  at Oxide.Plugins.VPNBlock+<OnUserConnected>c__AnonStorey0.<>m__0 (System.Int32 code, System.String response) [0x00000] in <63d0793ccf4341c5a39e40f24241099b>:0 
  at Oxide.Core.Libraries.WebRequests+WebRequest.<OnComplete>b__42_0 () [0x00034] in <4452f821def6406d834e4149849fe7ea>:0 
01:17 [Warning] [VPN Block] IPStack response does not include security information
Did you enable debug mode?

Yes i do have that enabled, but i don't want to copy and paste it here, since it also contains the user his IP with adress and everything.

I tryed to DM you but that did not work out LOL.

I don't need the IP addresses.  Edit them out or I will when you post it.

Merged post

I have a confirmed report that the IPHub integration is working anyway, you should try the latest release.
Locked automatically