Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Yahoo retired its YQL API so, I am switching to use the OAuth1.0 protected weather forecast API,

https://weather-ydn-yql.media.yahoo.com/forecastrss?w=2502265

Got whitelisted my app through email as instructed here, https://developer.yahoo.com/weather/

Sending request to get weather data with the proper Authorization header returns nothing but this, error status: 500

<rss xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="2.0">
    <channel>
        <yweather:units distance="mi" pressure="in" speed="mph" temperature="F"/>
    </channel>

any idea what's going wrong?

If you set format=json, there is a little more info about the error: Unable to identify AppId for request Id. But passing the AppId does not change anything. – Indivision Dev Jan 8, 2019 at 8:24 Hi, Did they reply your email and told you that you're in whitelist? I sent to them few days ago. And no any reply! Seems they need to use oauth_consumer_key and other stuff for the request. – Yuan Fu Jan 8, 2019 at 22:44 @YuanFu yes, they replied to my email that it got whitelisted, before that, I was getting Invalid OAuth credentials" (401 error) response. This response looks like an internal server error. – The Debugger Jan 9, 2019 at 13:15 Wondering if you figured it out. In postman I am getting a 500 server error when making a request. setting format to json doesn't give me any details. I just see 500 error. – mackhax0r Jan 10, 2019 at 19:20 I got the email from them and I use OhhAuth for Swift. Works fine from me. If you use Swift as well. Might help you, Otherwise, you might need to find another solution. – Yuan Fu Jan 11, 2019 at 0:01

I had a very quick support from the Yahoo team. Below is their answer regarding this issue:

Maybe you missed our earlier email but there was some service reliability issues, which should work well now. Please try again and let us know if you have any other problems. You can also read through the code examples on https://developer.yahoo.com/weather/documentation.html for sample OAuth1 call to our API.

PS: if you still encounter problems with Postman, please try curl command instead, which should have more reliable and valid response.

Regards,

Yahoo Weather Team

I can confirm, my app successfully connect to the weather API without any change on my code (no more 500 error)

They are retiring their weather API. Did you go through the new onboarding listed on their site?

Important EOL Notice: As of Thursday, Jan. 3, 2019, the weather.yahooapis.com and query.yahooapis.com for Yahoo Weather API will be retired. To continue using our free Yahoo Weather APIs, use https://weather-ydn-yql.media.yahoo.com/forecastrss. Contact yahoo-weather-ydn-api@oath.com for credentials to onboard to this free Yahoo Weather API service.

"They are retiring their weather API" — That's what the very first sentence of the question says! – Quentin Jan 7, 2019 at 16:19 "To continue using our free Yahoo Weather APIs, use weather-ydn-yql.media.yahoo.com/forecastrss." — That's the URL the OP said they were using! – Quentin Jan 7, 2019 at 16:19 "Did you go through the new onboarding listed on their site?" — The question says: Got whitelisted my app through email as instructed here, developer.yahoo.com/weather – Quentin Jan 7, 2019 at 16:20

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.