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

Subaru 404 for mobileapi.prod.subarucs.com #83187

Closed
jflowers opened this issue Dec 3, 2022 · 4 comments · Fixed by #83213
Closed

Subaru 404 for mobileapi.prod.subarucs.com #83187

jflowers opened this issue Dec 3, 2022 · 4 comments · Fixed by #83213

Comments

@jflowers
Copy link

jflowers commented Dec 3, 2022

The problem

I noticed today that my existing integration was not working, showing a 404 when trying to connect to mobileapi.prod.subarucs.com. I tried deleting the integration and re-adding it to no avail; the same issue. I double-checked that my Starlink subscription was till active; not issues there.

What version of Home Assistant Core has the issue?

core-2022.11.5

What was the last working version of Home Assistant Core?

core-2022.11.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Subaru

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2022-12-03 09:58:40.739 ERROR (MainThread) [homeassistant.components.subaru.config_flow] Unable to communicate with Subaru API: HTTP 404: <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/8.5.58</h3></body></html> RequestInfo(url=URL('https://mobileapi.prod.subarucs.com/g2v21/login.json'), method='POST', headers=<CIMultiDictProxy('Host': 'mobileapi.prod.subarucs.com', 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; Android SDK built for x86 Build/QSR1.191030.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.185 Mobile Safari/537.36', 'Origin': 'file://', 'X-Requested-With': 'com.subaru.telematics.app.remote', 'Accept-Language': 'en-US,en;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Content-Length': '169', 'Content-Type': 'application/x-www-form-urlencoded')>, real_url=URL('https://mobileapi.prod.subarucs.com/g2v21/login.json'))

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Dec 3, 2022

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

Code owner commands

Code owners of subaru can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign subaru Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


subaru documentation
subaru source
(message by IssueLinks)

@MindfulWolfPack
Copy link

663A7CB6-F302-400C-9355-BB408E1AEDB5

@dzazzo-msft
Copy link

Same here.

Logger: homeassistant.config_entries
Source: config_entries.py:1113
First occurred: 8:40:20 AM (1 occurrences)
Last logged: 8:40:20 AM

Config entry 'Subaru Ascent' for subaru integration not ready yet: HTTP 404: <!doctype html><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style>

HTTP Status 404 – Not Found


Type Status Report

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.


Apache Tomcat/8.5.58

RequestInfo(url=URL('https://mobileapi.prod.subarucs.com/g2v21/login.json'), method='POST', headers=<CIMultiDictProxy('Host': 'mobileapi.prod.subarucs.com', 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; Android SDK built for x86 Build/QSR1.191030.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/74.0.3729.185 Mobile Safari/537.36', 'Origin': 'file://', 'X-Requested-With': 'com.subaru.telematics.app.remote', 'Accept-Language': 'en-US,en;q=0.9', 'Accept-Encoding': 'gzip, deflate', 'Accept': '/', 'Content-Length': '163', 'Content-Type': 'application/x-www-form-urlencoded')>, real_url=URL('https://mobileapi.prod.subarucs.com/g2v21/login.json')); Retrying in background

@G-Two
Copy link
Contributor

G-Two commented Dec 3, 2022

Thanks for the report. Subaru deprecated their g2v21 API and we now need to use g2v24. I'm testing out a fix for the underlying subarulink package package. Once I have it worked out, I'll bump the dependency for the HA integration. As a heads up, it looks like the API no longer reports external temperature or 12V battery voltage, so those sensors will be dropped with the fix.

This was referenced Dec 4, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants