Error - helpers/config_entry_oauth2_flow.py:131

Hi,

I am receiving the following error in my log after a reboot.

Any ideas?


Logger: homeassistant
Source: helpers/config_entry_oauth2_flow.py:131 
First occurred: 9:58:37 (4 occurrences) 
Last logged: 9:58:38

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 130, in async_init
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 213, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 325, in async_step_discovery
    return await self.async_step_pick_implementation()
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 250, in async_step_pick_implementation
    return await self.async_step_auth()
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 274, in async_step_auth
    url = await self.flow_impl.async_generate_authorize_url(self.flow_id)
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 147, in async_generate_authorize_url
    redirect_uri = self.redirect_uri
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 131, in redirect_uri
    raise RuntimeError("No current request in context")
RuntimeError: No current request in context

same here! maybe home_connect plugin? are you using that too?

Hi,

Iā€™m not using that. I have deleted all integrations, automations, scripts and recent YAML changes, and nothing helped. I then restored the backup I made before these changes.

I have raised the issue on GitHub and will wait for a response.

What else could it be?

please send the link to github :slight_smile:

Here you go

1 Like