home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.02k stars 31.05k forks source link

Unable to Add Todoist Integration #127944

Open mariomaz87 opened 1 month ago

mariomaz87 commented 1 month ago

The problem

I have been using the Todoist integration without any issues for months. However, a few days ago, the connection between the integration and the Todoist API was broken. I removed the integration, but now when I try to add it again, I enter my token and receive the error message: "Unknown error occurred." Thanks.

What version of Home Assistant Core has the issue?

core-2024.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Todoist

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

I can't find anything in HA logs about the connection

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @boralyl, mind taking a look at this issue as it has been labeled with an integration (todoist) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `todoist` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign todoist` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


todoist documentation todoist source (message by IssueLinks)

boralyl commented 1 month ago

I would check your logs when you try to re-add the integration and receive the "Unknown error occurred.". That will help narrow down the cause.

For what it's worth I just tried and didn't have any issues adding the integration in my instance. Hopefully any error logs will point to the problem.

mariomaz87 commented 1 month ago

I would check your logs when you try to re-add the integration and receive the "Unknown error occurred.". That will help narrow down the cause.

For what it's worth I just tried and didn't have any issues adding the integration in my instance. Hopefully any error logs will point to the problem.

Should I enable some kind of extended logging? In my Home Assistant Core I don't see anything related to Todoist. After inserting the token the wheel spins for a while (a long while actually), I get the error in the UI but nothing in the logs!

mariomaz87 commented 1 month ago

If I try to add the integration in the configuration yaml with:

calendar:
  - platform: todoist
    token: mytoken
    custom_projects:
      - name: "Alla porta"
        due_date_days: 0
        labels:
          - allaporta

In the log I see an error:

Logger: homeassistant.components.calendar
Source: helpers/entity_platform.py:405
integration: Calendar (documentation, issues)
First occurred: 10:30:03 (1 occurrences)
Last logged: 10:30:03

Setup of platform todoist is taking longer than 60 seconds. Startup will proceed without waiting any longer.
mariomaz87 commented 1 month ago

And I also tried by issuing a new API token. Same error, but I can use the same API with other applications with no issue (e.g., Obsidian Todoist plugin).

mariomaz87 commented 1 month ago

EDIT: it's working again, maybe some kind of connectivity issue

mariomaz87 commented 1 month ago

This is definitely some kind of connection issue because it's not working anymore after a few minutes