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

Fixed: Error 403 on person #181

Closed
ik2wxx opened this issue Feb 1, 2021 · 8 comments · Fixed by #182
Closed

Fixed: Error 403 on person #181

ik2wxx opened this issue Feb 1, 2021 · 8 comments · Fixed by #182
Labels
bug Something isn't working

Comments

@ik2wxx
Copy link

ik2wxx commented Feb 1, 2021

Is anyone experiencing error 403 ?
Today I'm getting this error:
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/persons/86523cf5-aa91-4bfd-b76e-0f744e1ccf31?country=IT') Thank you
Roberto

@epenet
Copy link
Collaborator

epenet commented Feb 1, 2021

Hi,

It was reported on hacf-fr/hassRenaultZE#120, but I don't have a root cause for it yet.
I suspect something changed on the Renault servers, but the app seems to still work OK.

Also, it affects all endpoints, not just persons endpoint

@db-EV
Copy link

db-EV commented Feb 1, 2021

According to @dehsgr is a new Kamereon API key needed: Ae9FDWugRxZQAGm3Sxgk7uJn6Q4CGEA2

@epenet
Copy link
Collaborator

epenet commented Feb 1, 2021

Thanks @db-EV
The new key works for me - I've created corresponding PR #182

@ik2wxx does that branch work for you?
@dehsgr how did you discover the new key? (you can email me at dev_at_zeflip_com if you do not want to share the method in public)

@PysX
Copy link
Contributor

PysX commented Feb 1, 2021

PR works for me too, thanks!

@epenet epenet added bug Something isn't working help wanted Extra attention is needed labels Feb 1, 2021
@epenet
Copy link
Collaborator

epenet commented Feb 1, 2021

Before I merge, I would like to know how to make it work for @db-EV
Is it specific to countries? to models?
Is it possible to "request" the new API key from a server?
etc.

@db-EV
Copy link

db-EV commented Feb 1, 2021

It's working for me now as well. You can go ahead.
I don't know why it didn't work at the first try.

@mfonville
Copy link

When I decompiled the app it still has the old values in it. So I am quite sure they deploy the new values using Firebase remote-config: https://firebase.google.com/docs/remote-config

A test to check this would be to install the official app on an android device without Google Play Services (e.g. a LineageOS custom ROM and not installing any GApps) and to see if the app gets the updated key or not (I suspect not: because Firebase depends on Google Play Services).

Afaik there is no method (yet) to eavesdrop on the Firebase/Google connection. Though you could try to check the contents of the local configuration SQLite database of the app.

@epenet
Copy link
Collaborator

epenet commented Feb 3, 2021

Yes, I was able to retrieve a sample from Firebase here: #184

@epenet epenet pinned this issue Feb 4, 2021
@epenet epenet reopened this Feb 4, 2021
@epenet epenet changed the title Error 403 on person Fixed: Error 403 on person Feb 4, 2021
@epenet epenet removed the help wanted Extra attention is needed label Feb 4, 2021
@epenet epenet closed this as completed Jul 26, 2021
@epenet epenet unpinned this issue Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants