core: ISS integration returns 500's

The problem

I’m not sure if API changed somehow, but starting yesterday I’m getting 500’s from ISS integration.

What version of Home Assistant Core has the issue?

core-2022.8.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

iss

Link to integration documentation on our website

https://www.home-assistant.io/integrations/iss/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Error while setting up iss platform for binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/iss/binary_sensor.py", line 40, in async_setup_entry
    await hass.async_add_executor_job(iss_data.update)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 192, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/iss/binary_sensor.py", line 104, in update
    self.is_above = iss.is_ISS_above(self.latitude, self.longitude)
  File "/usr/local/lib/python3.10/site-packages/pyiss/__init__.py", line 140, in is_ISS_above
    test = self.pass_times(latitude, longitude, altitude, 2)
  File "/usr/local/lib/python3.10/site-packages/pyiss/__init__.py", line 93, in pass_times
    raise Exception("Error server n {}".format(data.status_code))
Exception: Error server n 500

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 28 (9 by maintainers)

Most upvoted comments

Fix incoming, we are aiming for this release (.9)

@bcutter , it’s API, as feature is removed, so it need change. @DurgNomis-drol mentioned he will try to change it, so I didn’t make any attempts to fix that, as I’m brand new to Python development it it may take me more time. @DurgNomis-drol will you have time to look at that?

Thank you @frenck for closing my issue. I didn’t realise there was another topic about the same issue. Hopefully someone is able to solve this issue for all the space fanatics out there. We are able to monitor alle the sensors in our personal enviornments, but it would be cool that we would know when to look up in the sky to see something cool flying over. Home assistant, the one app that does it all: Airplanes, satellites, space stations, space shuttles etc etc.

It’s worth having a look at this thread for an alternative way of getting better and more information. I’m attempting to rewrite the Node-RED part so it’s not required.

Mine now gives error 404 (does not exist) after updating to 2022.8.3:

Logger: homeassistant.components.binary_sensor
Source: components/iss/binary_sensor.py:104
Integration: Binær sensor ([documentation](https://www.home-assistant.io/integrations/binary_sensor), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+binary_sensor%22))
First occurred: 16.15.50 (1 occurrences)
Last logged: 16.15.50
Error while setting up iss platform for binary_sensor

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/iss/binary_sensor.py", line 40, in async_setup_entry
    await hass.async_add_executor_job(iss_data.update)
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/util/__init__.py", line 192, in wrapper
    result = method(*args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/iss/binary_sensor.py", line 104, in update
    self.is_above = iss.is_ISS_above(self.latitude, self.longitude)
  File "/usr/local/lib/python3.10/site-packages/pyiss/__init__.py", line 140, in is_ISS_above
    test = self.pass_times(latitude, longitude, altitude, 2)
  File "/usr/local/lib/python3.10/site-packages/pyiss/__init__.py", line 93, in pass_times
    raise Exception("Error server n {}".format(data.status_code))
Exception: Error server n 404

Making the entire binary sensor not available.