Giter Club home page Giter Club logo

Comments (3)

gwww avatar gwww commented on August 22, 2024

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.

michaeldavie avatar michaeldavie commented on August 22, 2024

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.

gwww avatar gwww commented on August 22, 2024

With all the refactoring and changes, this does not seem to be a problem any longer!

from env_canada.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.