Page MenuHomePhabricator

Unhandled NRE in geolocate / MaxMindGeolocationService.GetLocation(...)
Closed, ResolvedPublic

Description

2019-08-07 17:45:24,421 [10] DEBUG Stwalkerster.IrcClient.IrcClient.Freenode.NetworkClient.Inbound [(null)] - :Oresrian!~stwalkers@wikimedia/stwalkerster PRIVMSG #wikipedia-en-helpers :!geolocate 123.231.85.49]
2019-08-07 17:45:24,429 [Thread Pool Worker] INFO Stwalkerster.Bot.CommandLib.Services.CommandParser [(null)] - Creating command object of type Helpmebot.Commands.Information.GeolocateCommand
2019-08-07 17:45:24,447 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] - Fetched 3 flag groups for stwalkerster [Oresrian!~stwalkers@wikimedia/stwalkerster]
2019-08-07 17:45:24,447 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] -        -> Advanced
2019-08-07 17:45:24,448 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] -        -> Normal
2019-08-07 17:45:24,449 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] -        -> Developer
2019-08-07 17:45:24,449 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] - Found flag groups Advanced,Normal,Developer (consisting of +aFcPSBISBIOAMbCUaFcPSBI-) apply to stwalkerster [Oresrian!~stwalkers@wikimedia/stwalkerster]

2019-08-07 17:45:24,486 [Thread Pool Worker] DEBUG Helpmebot.Commands.Information.GeolocateCommand [(null)] - Found method: Execute

2019-08-07 17:45:24,502 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] - Fetched 3 flag groups for stwalkerster [Oresrian!~stwalkers@wikimedia/stwalkerster]
2019-08-07 17:45:24,503 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] -        -> Advanced
2019-08-07 17:45:24,503 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] -        -> Normal
2019-08-07 17:45:24,504 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] -        -> Developer
2019-08-07 17:45:24,504 [Thread Pool Worker] DEBUG Helpmebot.Services.AccessControl.AccessControlAuthorisationService [(null)] - Found flag groups Advanced,Normal,Developer (consisting of +aFcPSBISBIOAMbCUaFcPSBI-) apply to stwalkerster [Oresrian!~stwalkers@wikimedia/stwalkerster]

2019-08-07 17:45:24,546 [Thread Pool Worker] ERROR Helpmebot.Commands.Information.GeolocateCommand [(null)] - Unhandled exception during command execution
System.NullReferenceException: Object reference not set to an instance of an object
  at MaxMind.GeoIP2.DatabaseReader.Execute[T](System.Net.IPAddress ipAddress, System.String type, System.Boolean throwOnNullResponse) [0x00000] in <a9c58851e6234c1da343deadf0bff9f4>:0
  at MaxMind.GeoIP2.DatabaseReader.TryCity(System.Net.IPAddress ipAddress, MaxMind.GeoIP2.Responses.CityResponse& response) [0x00000] in <a9c58851e6234c1da343deadf0bff9f4>:0
  at Helpmebot.Services.Geolocation.MaxMindGeolocationService.GetLocation(System.Net.IPAddress address) [0x00041] in <682bd6935c594dc39f20fc9c96922925>:0
  at Helpmebot.Commands.Information.GeolocateCommand+<Execute>d__2.MoveNext() [0x00025] in <682bd6935c594dc39f20fc9c96922925>:0  
  at System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext () [0x0002b] in <35ad2ebb203f4577b22a9d30eca3ec1f>:0 
  at System.Collections.Generic.List`1[T].AddEnumerable(System.Collections.Generic.IEnumerable`1[T] enumerable) [0x00059] in <6649516e5b3542319fb262b421af0adb>:0
  at System.Collections.Generic.List`1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable`1[T] collection) [0x000f4] in <6649516e5b3542319fb262b421af0adb>:0
  at System.Collections.Generic.List`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] collection) [0x00000] in <6649516e5b3542319fb262b421af0adb>:0   
  at System.Linq.Enumerable+ConcatIterator`1[TSource].ToList () [0x00027] in <35ad2ebb203f4577b22a9d30eca3ec1f>:0   
  at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0001f] in <35ad2ebb203f4577b22a9d30eca3ec1f>:0   
  at Stwalkerster.Bot.CommandLib.Commands.CommandUtilities.CommandBase.Run () [0x0017d] in <3b6c80f1e9de43cebbf5fe0ad4edeb60>:0

Revisions and Commits

Event Timeline

swalker edited projects, added Helpmebot; removed Restricted Project.
stwalkerster renamed this task from Fwd: Helpmebot Error Log to Unhandled NRE in geolocate / MaxMindGeolocationService.GetLocation(...).Oct 7 2019, 10:18 PM
stwalkerster triaged this task as High priority.
stwalkerster updated the task description. (Show Details)
stwalkerster moved this task from Backlog to Bugs on the Helpmebot board.
stwalkerster shifted this object from the Restricted Space space to the S1 Default space.
stwalkerster closed this task as Resolved by committing Unknown Object (Diffusion Commit).Oct 7 2019, 10:30 PM
stwalkerster added a commit: Unknown Object (Diffusion Commit).