Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OneDrive (re)authentication fails in beta R8 #137348

Closed
EDelsman opened this issue Feb 4, 2025 · 2 comments
Closed

OneDrive (re)authentication fails in beta R8 #137348

EDelsman opened this issue Feb 4, 2025 · 2 comments
Assignees

Comments

@EDelsman
Copy link

EDelsman commented Feb 4, 2025

The problem

When upgrading from beta r7 to r8 I can no longer authenticate to Onedrive. the Dialog says unknown error. The logs show an exception.

Removing the integration and adding it again does not work. Therefore also no diagnostics, just the exception.

What version of Home Assistant Core has the issue?

core-2025.02.0b8

What was the last working version of Home Assistant Core?

core-2025.02.0b7

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Onedrive

Link to integration documentation on our website

https://rc.home-assistant.io/integrations/onedrive/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Logger: homeassistant.components.onedrive.config_flow
Bron: components/onedrive/config_flow.py:48
integratie: OneDrive (documentatie, problemen)
Eerst voorgekomen: 19:04:59 (4 gebeurtenissen)
Laatst gelogd: 19:09:50

Unknown error
Traceback (most recent call last):
  File "<string>", line 23, in __mashumaro_from_dict__
  File "<string>", line 7, in __mashumaro_from_dict__
mashumaro.exceptions.MissingField: Field "id" of type str is missing in ItemParentReference instance

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/onedrive/config_flow.py", line 48, in async_oauth_create_entry
    approot = await graph_client.get_approot()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/onedrive_personal_sdk/clients/client.py", line 41, in get_approot
    return AppRoot.from_dict(result)
           ~~~~~~~~~~~~~~~~~^^^^^^^^
  File "<string>", line 25, in __mashumaro_from_dict__
mashumaro.exceptions.InvalidFieldValue: Field "parent_reference" of type ItemParentReference in AppRoot has invalid value {'driveId': '22d5fb09eaf3a2c0', 'driveType': 'personal'}

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Feb 4, 2025

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

Code owner commands

Code owners of onedrive 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 onedrive 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)


onedrive documentation
onedrive source
(message by IssueLinks)

@zweckj
Copy link
Member

zweckj commented Feb 4, 2025

Should be fixed through #137330 👍

@zweckj zweckj closed this as completed Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants