[ 
https://issues.apache.org/jira/browse/CAMEL-9272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Charles Moulliard updated CAMEL-9272:
-------------------------------------
    Fix Version/s: 2.15.5
                   2.16.1
                   2.17

> openweathermap.org requires an APPID id since 09/10/2015
> --------------------------------------------------------
>
>                 Key: CAMEL-9272
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9272
>             Project: Camel
>          Issue Type: Bug
>          Components: weather
>            Reporter: Charles Moulliard
>             Fix For: 2.16.1, 2.15.5, 2.17
>
>
> Code must be updated as openweathermap.org requires an APPID id since 
> 09/10/2015 & by consequence, the component can't be used anymore as we will 
> get a HTTP 401 error.
> {code}
> Caused by: org.apache.camel.TypeConversionException: Error during type 
> conversion from type: java.net.URL to the required type: java.lang.String 
> with value http://api.openweathermap.org/data/2.5/weather?q=Paris,France due 
> java.io.IOException: Server returned HTTP response code: 401 for URL: 
> http://api.openweathermap.org/data/2.5/weather?q=Paris,France
>       at 
> org.apache.camel.impl.converter.BaseTypeConverterRegistry.createTypeConversionException(BaseTypeConverterRegistry.java:610)
>       at 
> org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:177)
>       at 
> org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:156)
>       at 
> org.apache.camel.component.weather.WeatherProducer.process(WeatherProducer.java:48)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to