View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000244 | NNW API Service | Uncategorized | public | August 19, 2014, 4:27 pm | January 13, 2017, 11:36 am |
| Reporter | Scott Bradford | Assigned To | Scott Bradford | ||
| Priority | urgent | Severity | major | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 0.7 | ||||
| Summary | 0000244: Need Graceful Handling of XML Parse Errors for Warnings | ||||
| Description | Need Graceful Handling of XML Parse Errors for Warnings | ||||
|
|
We are throwing PHP fatal errors when we have trouble parsing the warnings ATOM feed from the National Weather Service. We need to check XML validity and, in the event of bad data, discard and try again on the next regular update cycle. In the mean time, we can continue spitting out warnings from the cache. Example errors: 19-Aug-2014 10:18:12 America/New_York] PHP Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in getweather.php:263 [19-Aug-2014 14:03:32 America/New_York] PHP Warning: SimpleXMLElement::construct(): Entity: line 1: parser error : Start tag expected, '<' not found in getweather.php on line 263 |
|
|
Implemented proper error handling for any XML errors that occur, either in the warnings or in the NWS forecast/conditions data. |
|
|
Closing (all resolved and published) |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| December 31, 1969, 7:33 pm | Scott Bradford | Priority | @0@ => @0@ |
| December 31, 1969, 7:33 pm | Scott Bradford | Severity | @0@ => @0@ |
| December 31, 1969, 7:33 pm | Scott Bradford | Status | @0@ => @0@ |
| December 31, 1969, 7:33 pm | Scott Bradford | Resolution | @0@ => @0@ |
| August 19, 2014, 4:27 pm | Scott Bradford | New Issue | |
| August 18, 2015, 10:43 am | Scott Bradford | Project | @44@ => No-Nonsense Weather |
| August 18, 2015, 11:19 am | Scott Bradford | Category | General => Uncategorized |
| August 18, 2015, 1:23 pm | Scott Bradford | Note Added: 0001059 | |
| August 18, 2015, 1:23 pm | Scott Bradford | Status | resolved => closed |
| September 24, 2016, 5:14 pm | Scott Bradford | Project | No-Nonsense Weather => NNW API Service |
| January 13, 2017, 11:36 am | Changeset attached | => NNW Web trunk r692 |