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

Please catch 403 Error - Privacy mode currently ON #47

Open
kschaumann opened this issue Sep 22, 2022 · 2 comments
Open

Please catch 403 Error - Privacy mode currently ON #47

kschaumann opened this issue Sep 22, 2022 · 2 comments

Comments

@kschaumann
Copy link

Hi!
When I change the User in the Car via the Touch-Screen, it seam that the new selected user has not activated the provision of data. The MyRenault-App leads to a tutorial to enable the data transmission for the current user.

In the log of the adapter a complex error message is shown on every request:

response:{"statusCode":403,"body":"{\"type\":\"FUNCTIONAL\",\"messages\":[{\"code\":\"err.func.403\",\"message\":\"{\\\"errors\\\":[{\\\"status\\\":\\\"Forbidden\\\",\\\"code\\\":\\\"403009\\\",\\\"title\\\":\\\"Forbidden action\\\",\\\"detail\\\":\\\"Privacy mode currently ON\\\"}]}\"}],\"errors\":[{\"errorCode\":\"err.func.403\",\"errorMessage\":\"{\\\"errors\\\":[{\\\"status\\\":\\\"Forbidden\\\",\\\"code\\\":\\\"403009\\\",\\\"title\\\":\\\"Forbidden action\\\",\\\"detail\\\":\\\"Privacy mode currently ON\\\"}]}\"}],\

I think the major Info is here the 403 Status and the "Privacy mode currently ON" message.

For better understanding it might be a good idea to catch this explicite error and do not flood the error-log.

Regards,
Kai

@fungus75
Copy link
Owner

Kai, can you give me a little bit more details? Can you please show me a little bit more of the logfile? Which URL was called? I just want to see, which is the optimal position in the code add this adjustment.

@kschaumann
Copy link
Author

Hi!

here ist an logfile for a Locations-Request, but this response is returnded for all requests:

zoe2.0 2022-09-22 13:30:22.679 info response:{"statusCode":403,"body":"{"type":"FUNCTIONAL","messages":[{"code":"err.func.403","message":"{\"errors\":[{\"status\":\"Forbidden\",\"code\":\"403009\",\"title\":\"Forbidden action\",\"detail\":\"Privacy mode currently ON\"}]}"}],"errors":[{"errorCode":"err.func.403","errorMessage":"{\"errors\":[{\"status\":\"Forbidden\",\"code\":\"403009\",\"title\":\"Forbidden action\",\"detail\":\"Privacy mode currently ON\"}]}"}],"error_reference":"FUNCTIONAL"}","headers":{"date":"Thu, 22 Sep 2022 11:30:22 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","access-control-allow-origin":"*","x-amzn-trace-id":"Self=1-632c4747-3f1fdc182132bd596e5f0ca1;Root=1-632c4747-563ebaa355c5ae405fd805dc","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","cache-control":"no-cache, no-store, max-age=0, must-revalidate","pragma":"no-cache","expires":"0","vary":"accept-encoding","x-response-time":"6851"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"api-wired-prod-1-euw1.wrd-aws.com","port":443,"hostname":"api-wired-prod-1-euw1.wrd-aws.com","hash":null,"search":"?country=DE","query":"country=DE","pathname":"/commerce/v1/accounts/dcc333fc-e9a0-4c40-8c64-8d88f720fa22/kamereon/kca/car-adapter/v1/cars/VF1AGMYONE4634/location","path":"/commerce/v1/accounts/dcc333fc-e9a0-XXXX-YYYY-8d88f720fa22/kamereon/kca/car-adapter/v1/cars/VF1AGMYONE4634/location?country=DE","href":"https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/dcc333fc-e9a0-XXXXX-YYYYY-8d88f720fa22/kamereon/kca/car-adapter/v1/cars/VF1AGMYONE4634/location?country=DE"},"method":"get","headers":{"x-gigya-id_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlJFUTBNVVE1TjBOQ1JUSkVNemszTTBVMVJrTkRRMFUwUTBNMVJFRkJSamhETWpkRU5VRkJRZyJ9.eyJpc3MiOiJodHRwczovL2ZpZG0uZ2lneWEuY29tL2p3dC8zXzdQTGtzT3lCUmtIdjEyNng1V2hIYi01cHFDMXFGUjhwUWp4U2VMQjZuaEFuUEVSVFVsd25Zb3puSFN4d1g2NjgvIiwiYXBpS2V5IjoiM183UExrc095QlJrSHYxMjZ4NVdoSGItNXBxQzFxRlI4cFFqeFNlTSECRETbHduWW96bkhTeHdYNjY4IiwiaWF0IjoxNjYzODQ2MjA4LCJleHAiOjE2NjM4NDcxMDgsInN1YiI6ImZkOTgzNjQ5LWExNmEtNGNjZi04MGUxLWJjYjJkMzM5MWFjZCIsImRhdGEucGVyc29uSWQiOiJjZTQ3NWZiYS1jODMwLTQ5ZjUtYjQ2OS1mYjVjYTc4YjRiMzAiLCJkYXRhLmdpZ3lhRGF0YUNlbnRlciI6ImV1MS5naWd5YS5jb20ifQ.iFSOb25Mjv1iXz-I6m93iz71vZO2jIsAP_lr4oFlQBLchzK6vYu6R02Cis3JYb8Vj5QgLnixMWJixKTslkB0vR2WhJ2twd22jbeidZmJrxcd0--Hm5VSKoA0WVaMi7KLIexlAjmPkUadnUd8233k_a7F2RXjWgFeO6xNLLN_fyeetbih3k83YrcnjQvz1DOA-ElcAmYOPjuEEBUoo8jDeUcWSysTPld6c8gUItTOXjnrRBusppmvVmrHgwUyj_cwZRARmrcwWQzGQkJf8Wz0IoYQaFVxG9qtP8DSDcuIg5nOeptCQi4Tj40g2QqUout38i8i0reUoO9e5Bq_bVjRVQ","apikey":"VAX7XYKGfa92yMvXculCkEFyfZbuM7Ss","Content-Type":"application/vnd.api+json","content-length":0}}}
zoe2.0 2022-09-22 13:30:22.678 info error:null
zoe2.0 2022-09-22 13:30:22.677 error No valid response from getLocation service
zoe2.0 2022-09-22 13:30:15.580 info getLocation-url:https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/dcc333fc-e9a0-XXX-YYYY-8d88f720fa22/kamereon/kca/car-adapter/v1/cars/VF1AGMYONE4634/location?country=DE
zoe2.0 2022-09-22 13:30:15.580 debug in: getLocation v0.01
zoe2.0 2022-09-22 13:30:15.579 debug in: processNextStep, curStep: 8

Hope this helps...

Kai

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

No branches or pull requests

2 participants