Skip to content

Commit

Permalink
apis: comment ROME related scopes for FranceTravail APIs
Browse files Browse the repository at this point in the history
Those two scopes makes the _refresh_token call fail with an
`invalid_scope` error (possibly related to a maintenance on Rome API).

This error currently prevents all use of France Travail APIs while
those 2 scopes are only needed for the `sync_romes_and_appellations`
command.

This commenting should allow the use of the other API but we'll need
to uncomment them at one point to reenable
`sync_romes_and_appellations`.
  • Loading branch information
xavfernandez committed Jan 17, 2025
1 parent 3e2a3a2 commit 831047c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions itou/utils/apis/pole_emploi.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ class PoleEmploiRateLimitException(PoleEmploiAPIException):
"api_maj-pass-iaev1",
"api_offresdemploiv2",
"api_rechercheindividucertifiev1",
"api_romev1",
"nomenclatureRome",
# TODO: check if those 2 ROME-related scopes are again valid in a few days and uncomment them
# "api_romev1",
# "nomenclatureRome",
"o2dsoffre",
"passIAE",
"rechercherIndividuCertifie",
Expand Down

0 comments on commit 831047c

Please sign in to comment.