Add Custom Components Integration Config Flow Could Not Be Loaded Error and 504 Gateway Timeout Error in API /api/config/config_entries/flow

Hi all,

I have encountered Config Flow Could Not Be Loaded error when trying to add custom components integration via “Add Integration” button in Configuration → Integrations page, as per screenshot below:

This error is caused by API /api/config/config_entries/flow after upgrade for latest HA OS, with following payloads when calling the API:

  • Request Payload:
{
  "handler": "custom_component_name_here",
  "show_advanced_options": false
}

System Health:

  • Version: core-2021.11.3
  • Installation Type: Home Assistant Container
  • Development: false
  • Supervisor: false
  • Docker: true
  • User: root
  • Virtual Environment: false
  • Python Version: 3.9.7
  • Operating System Family: Linux
  • Operating System Version: 5.10.63-v7l+
  • CPU Architecture: armv7l

However, this issue does not happens after 1st fresh install of HA OS. Only happens after upgrade latest HA OS.

Could anyone here advises a solution to this issue so that I could add custom components successfully?

As I don’t have appropriate knowledge to solve this issue and could not find useful logs for tracing this issue.

Thank you.

Best Regards,
Jerry