Skip to content

Command failed: Access to this resource is not authorized, developers should check required Scope. #142028

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

Closed
gbertsch opened this issue Apr 1, 2025 · 4 comments · Fixed by #142131

Comments

@gbertsch
Copy link

gbertsch commented Apr 1, 2025

The problem

After upgrading from 2025.3.4 to any new beta build of 2025.4.x, I am receiving the following error while trying to issue any command to any of my Tesla vehicles. Downgrading back to 2025.3.4 fixes the issue:

"Command failed: Access to this resource is not authorized, developers should check required Scope."

What version of Home Assistant Core has the issue?

2025.4.0b13

What was the last working version of Home Assistant Core?

2025.3.4

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tesla Fleet

Link to integration documentation on our website

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

Diagnostics information

config_entry-tesla_fleet-01JHXZS5RENHS9380RKNNV2TM3 (3).json

Example YAML snippet

Anything in the logs that might be useful for us?

2025-04-01 17:07:03.971 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140200362391968] Unexpected exception
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/tesla_fleet/helpers.py", line 39, in handle_command
    result = await command
             ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/tesla_fleet_api/tesla/vehicle/fleet.py", line 141, in flash_lights
    return await self._request(
                 ^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/tesla_fleet_api/tesla/fleet.py", line 129, in _request
    await raise_for_status(resp)
  File "/usr/local/lib/python3.13/site-packages/tesla_fleet_api/exceptions.py", line 1057, in raise_for_status
    raise Forbidden(data)
tesla_fleet_api.exceptions.Forbidden: Access to this resource is not authorized, developers should check required Scope.

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Apr 1, 2025

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

Code owner commands

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


tesla_fleet documentation
tesla_fleet source
(message by IssueLinks)

@Bre77
Copy link
Contributor

Bre77 commented Apr 3, 2025

Hey Gavin, I'll reach out on Discord as I wasnt able to reproduce this for you.

@Romain7495
Copy link

Hi, just to confirm that I had the same issue on 2025.4.0, and I was waiting the 2025.4.1 to fix the issue.

And it works, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants