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

Geolocation of current IP address does not work in camel-weather component

XMLWordPrintable

    • % %
    • Hide

      See attached reproducer.

      Show
      See attached reproducer.
    • 6.3 Sprint 4 (Mar 28 - Apr 29)

      If I want to use camel-weather component without specified location (according to the documentation it should use my current geolocation) I get an exception:

      org.apache.camel.FailedToCreateProducerException: Failed to create Producer for endpoint: Endpoint[weather://foo?appid=c30bc84b55d8bcaab1e44a87ed61292d]. Reason: org.apache.camel.TypeConversionException: Error during type conversion from type: java.net.URL to the required type: java.lang.String with value http://freegeoip.net/json/ due java.net.ConnectException: Connection timed out
      

      I think it could be due to using http://freegeoip.net in camel-weather component (https://github.com/jboss-fuse/camel/blob/2.16.1.redhat-6-3-x-patch/components/camel-weather/src/main/java/org/apache/camel/component/weather/WeatherConfiguration.java#L213). I checked the http://freegeoip.net manually and it seems that this page is not available by now.

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

              Created:
              Updated:
              Resolved: