Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Do not assume query is present in response.#72

Closed
rwjblue wants to merge 1 commit intomonkeecreate:masterfrom
rwjblue:properly-handle-missing-results
Closed

Do not assume query is present in response.#72
rwjblue wants to merge 1 commit intomonkeecreate:masterfrom
rwjblue:properly-handle-missing-results

Conversation

@rwjblue
Copy link
Copy Markdown

@rwjblue rwjblue commented Mar 13, 2014

The Yahoo simple weather API returns an error when searching for "Ponoka, AB".

The returned JSON is:

{"error":{"lang":"en-US","diagnostics":null,"description":"No definition found
for Table weather.search"}}

This causes simpleWeather to error since it assumes that the results contain
a query key.


I am unsure how you generally update the minified output as I didn't see a build script in the repo.

The Yahoo simple weather API returns an error when searching for "Ponoka, AB".

The returned JSON is:

```javascript
{"error":{"lang":"en-US","diagnostics":null,"description":"No definition found for Table weather.search"}}
```

This causes `simpleWeather` to error since it assumes that the results
contain a `query` key.
fleeting added a commit that referenced this pull request Apr 17, 2014
…tomate ALL THE THINGS. Also some code cleanup and bug fixes.

Fix for 3200 (not available) condition code and related image [#77].

Fixed my assumption of query being present [#72].
@fleeting fleeting closed this Apr 17, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants