OpenWeather API authentication fails
Closed this issue · 2 comments
abhirockzz commented
This happens despite the presence of API Key in src/main/resources/META-INF/apache-deltaspike.properties - end up with a HTTP 401 (as expected)
Forced to add the api key as APPID query param (as suggested here http://openweathermap.org/appid#use)
mstahv commented
Hmm, it works for me. That's done here: https://github.com/mstahv/consuming-rest-apis/blob/master/src/main/java/org/example/JsonService.java#L33
I guess for some reason the property injection is not working for you. Which server are you using?
abhirockzz commented
It works. Not sure what was happening before ! Sorry for the trouble