Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7839

[camel-weather] FreeGeoIpGeoLocationProvider does not work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.0
    • fuse-7.0
    • Camel
    • None
    • % %
    • Hide

      Run the attached reproducer.

      Show
      Run the attached reproducer.
    • Fuse 7.0 Sprint 28

    Description

      Caused by: java.lang.IllegalStateException: Got the unexpected http-status 'HTTP/1.1 401 Unauthorized' for the geolocation
      	at org.apache.camel.component.weather.geolocation.FreeGeoIpGeoLocationProvider.getCurrentGeoLocation(FreeGeoIpGeoLocationProvider.java:44)
      	at org.apache.camel.component.weather.WeatherQuery.getCurrentGeoLocation(WeatherQuery.java:152)
      	at org.apache.camel.component.weather.WeatherQuery.getQuery(WeatherQuery.java:60)
      	at org.apache.camel.component.weather.WeatherQuery.getQuery(WeatherQuery.java:37)
      	at org.apache.camel.component.weather.WeatherConfiguration.getQuery(WeatherConfiguration.java:214)
      	at org.apache.camel.component.weather.WeatherEndpoint.createProducer(WeatherEndpoint.java:53)
      	at org.apache.camel.impl.ProducerCache.doGetProducer(ProducerCache.java:573)
      	... 82 more
      
      wget https://freegeoip.io/json/ --no-check-certificate
      --2018-03-09 14:46:23--  https://freegeoip.io/json/
      Resolving freegeoip.io (freegeoip.io)... 176.9.139.104
      Connecting to freegeoip.io (freegeoip.io)|176.9.139.104|:443... connected.
      WARNING: no certificate subject alternative name matches
      	requested host name ‘freegeoip.io’.
      HTTP request sent, awaiting response... 401 Unauthorized
      
      Username/Password Authentication Failed.
      

      Attachments

        Issue Links

          Activity

            People

              acosenti Andrea Cosentino
              jbouska@redhat.com Jan Bouska
              Jan Bouska Jan Bouska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: