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

Error 403 updating chorus info and services #410

Closed
Auneor opened this issue Jan 20, 2023 · 2 comments
Closed

Error 403 updating chorus info and services #410

Auneor opened this issue Jan 20, 2023 · 2 comments

Comments

@Auneor
Copy link

Auneor commented Jan 20, 2023

module: l10n_fr_chorus_account
version: 14.0

Steps to reproduce
I've done all the Configuration steps, and when I click on "Update chorus information and services" on customer tab

Current behavior
I get the error:
"Wrong request on https://sandbox-api.aife.economie.gouv.fr/cpro/structures/v1/rechercher. HTTP error code received from Chorus: 403"
Logs say:

odoo.addons.l10n_fr_chorus_account.models.company:Requesting new token from PISTE via https://sandbox-oauth.aife.economie.gouv.fr/api/oauth/token
odoo.addons.l10n_fr_chorus_account.models.company:New token retreived with a validity of 3600 seconds
odoo.addons.l10n_fr_chorus_account.models.company:PISTE token expires on 2023-01-20 11:34:01.588083 GMT (includes margin)
odoo.addons.l10n_fr_chorus_account.models.company:Chorus API POST request to https://sandbox-api.aife.economie.gouv.fr/cpro/structures/v1/rechercher with login XXX@XXX.XX
odoo.addons.l10n_fr_chorus_account.models.company:Payload of the Chorus POST request: {'structure': {'identifiantStructure': 'GOODSIRETNUMBER', 'typeIdentifiantStructure': 'SIRET'}}
ERROR:odoo.addons.l10n_fr_chorus_account.models.company:Chorus API webservice answered with HTTP status code=403 and content=
WARNING:odoo.http:Wrong request on https://sandbox-api.aife.economie.gouv.fr/cpro/structures/v1/rechercher. HTTP error code received from Chorus: 403

Expected behavior
No error

@alexis-via
Copy link
Contributor

Haha, the cause of the bug is probably in your logs, see 'identifiantStructure': 'GOODSIRETNUMBER', !!!

@Auneor
Copy link
Author

Auneor commented Jun 21, 2023

Hi @alexis-via ,
It was just me that anonymized the siret for this ticket, but thanks, we could figure out what was the problem, it was a misuse of the "matelas de données", we had to log with login compte GP" et "mot de passe compte GP" and do the raccordement and it worked.
Thanks anyway for your great job :)

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