Comments (3)
On the latest library version 0.5.7...
2021-09-13 15:20:13 ERROR (MainThread) [custom_components.environment_canada2] Unexpected error fetching environment_canada2 data: Environment Canada weather update failed: no element found: line 810, column 0
Traceback (most recent call last):
File "/Users/glenn/Development/automation/environment-canada/config/custom_components/environment_canada2/__init__.py", line 120, in _async_update_data
await self.ec_data.update()
File "/Users/glenn/Development/automation/environment-canada/env_canada/env_canada/ec_weather.py", line 290, in update
weather_tree = et.fromstring(weather_xml)
File "/Users/glenn/.local/share/asdf/installs/python/3.9.7/lib/python3.9/xml/etree/ElementTree.py", line 1348, in XML
return parser.close()
xml.etree.ElementTree.ParseError: no element found: line 810, column 0
Updates appear to be continuing (i.e.: recovered from the exception).
from env_canada.
It's weird that the HTTP request would succeed but the XML would be invalid. In v0.5.8 this is now caught and raised.
from env_canada.
With all the refactoring and changes, this does not seem to be a problem any longer!
from env_canada.
Related Issues (20)
- Feature Request - Add Yesterday's High/Low Temperature HOT 2
- Historical hourly data HOT 3
- issue on running examples HOT 4
- Support hourly wind forecast HOT 3
- Precipitation format has changed in source XML. HOT 1
- Connection failed to dd.meteo.gc.ca HOT 3
- Sunrise / sunset data HOT 3
- 'cannot identify image file' error while creating radar loop HOT 4
- error fetching environment_canada AQHI data HOT 1
- error fetching environment_canada weather data HOT 4
- Unable to get the get_historical_stations HOT 2
- 2023.4.0b6 Weather bulletins not showing up for Ottawa ( Kanata - Orleans) HOT 4
- Unssuported String : "calme" HOT 1
- Interger and Float Parsing is broken for ECWeather in 0.5.32 HOT 1
- Jupyter Notebook Error HOT 3
- Wrong output cardinality HOT 1
- Trying to reconcile hourly forecast with Env. Canada website data HOT 2
- EC Radar Test fails HOT 1
- ECWeather Type Error HOT 2
- Timestamp meta data HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from env_canada.