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

[camel-weather] FreeGeoIpGeoLocationProvider does not work as expected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.0
    • Fix Version/s: fuse-7.0
    • Component/s: Camel
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Run the attached reproducer.

      Show
      Run the attached reproducer.
    • Sprint:
      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.
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  oscerd Andrea Cosentino
                  Reporter:
                  jbouska Jan Bouska
                  Tester:
                  Jan Bouska
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: