NOAA Alerts API Gives GhostXML Illegal Character Error
Posted: Sat Apr 11, 2020 12:59 pm
I'm trying to replace some creaky code of my own with GhostXML. I'm querying NOAA's API with variations of this string:
https://api.weather.gov/alerts/active/zone/GMZ765 (I selected this zone because it currently has active alerts).
If there are no alerts, the response parses correctly, but if there are alerts, I get this error:
I saw a previous response about reloading the plugin, but that hasn't fixed the error.
It wouldn't surprise me that NOAA is using illegal characters. Is there anything that can be done to filter, or otherwise deal with them?
https://api.weather.gov/alerts/active/zone/GMZ765 (I selected this zone because it currently has active alerts).
If there are no alerts, the response parses correctly, but if there are alerts, I get this error:
- Code: Select all
GhostXML Error General exception: LowLevelBadParameterError -- illegal character in XML tag name or value
Traceback (most recent call last):
File "plugin.py", line 1151, in refresh_data_for_dev
dev.stateListOrDisplayStateIdChanged()
StandardError: LowLevelBadParameterError -- illegal character in XML tag name or value
I saw a previous response about reloading the plugin, but that hasn't fixed the error.
It wouldn't surprise me that NOAA is using illegal characters. Is there anything that can be done to filter, or otherwise deal with them?