Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • lori ryan 54 posts 236 karma points
    Oct 11, 2018 @ 14:46
    lori ryan
    0

    The specified IP address was incorrectly formatted

    Hi Andy Just ran some high level testing through my site. I noticed the following thought I would send on

    System.Exception: Exception while creating a value. --->

    MaxMind.GeoIP2.Exceptions.GeoIP2Exception: The specified IP address was incorrectly formatted: '
       at MaxMind.GeoIP2.DatabaseReader.Execute[T](String ipAddress, Boolean hasTraits, String type)
       at MaxMind.GeoIP2.DatabaseReader.Country(String ipAddress)
       at Zone.UmbracoPersonalisationGroups.Providers.GeoLocation.MaxMindGeoLocationProvider.<>c__DisplayClass3_0.<GetCountryFromIp>b__0()
    
    
    
    System.Exception: Exception while creating a value. ---> MaxMind.GeoIP2.Exceptions.GeoIP2Exception: The specified IP address was incorrectly formatted: xxxx='
       at MaxMind.GeoIP2.DatabaseReader.Execute[T](String ipAddress, Boolean hasTraits, String type)
       at MaxMind.GeoIP2.DatabaseReader.Country(String ipAddress)
       at Zone.UmbracoPersonalisationGroups.Providers.GeoLocation.MaxMindGeoLocationProvider.<>c__DisplayClass3_0.<GetCountryFromIp>b__0()
    
    System.Exception: Exception while creating a value. ---> MaxMind.GeoIP2.Exceptions.GeoIP2Exception: The specified IP address was incorrectly formatted: '%22
       at MaxMind.GeoIP2.DatabaseReader.Execute[T](String ipAddress, Boolean hasTraits, String type)
       at MaxMind.GeoIP2.DatabaseReader.Country(String ipAddress)
       at Zone.UmbracoPersonalisationGroups.Providers.GeoLocation.MaxMindGeoLocationProvider.<>c__DisplayClass3_0.<GetCountryFromIp>b__0()
       at Umbraco.Core.Cache.DictionaryCacheProviderBase.<>c__DisplayClass10_0.<GetSafeLazy>b__0(
    
  • Andy Butland 339 posts 1791 karma points MVP 2x c-trib
    Oct 28, 2018 @ 14:39
    Andy Butland
    100

    Thanks for letting me know about this Lori and sorry for the delay in responding. I'm not really sure where that "xxxx" value comes from, but in any case have added a bit tighter checks and error handling so this will no longer through an exception, and will be treated as a geographical match that can't be located.

    This is in the latest version: 0.3.5.

    Andy

  • lori ryan 54 posts 236 karma points
    Oct 31, 2018 @ 10:19
    lori ryan
    0

    Thanks so much Andy fantastic package.

Please Sign in or register to post replies

Write your reply to:

Draft