Error code GENERAL_FORBIDDEN, Insufficient access rights.

Here's the proper space to ask any question about Optiflow that doesn't match one of the dedicated subforums.
Post Reply
martinelsner
Posts: 3
Joined: Mon May 30, 2022 12:36 pm

Error code GENERAL_FORBIDDEN, Insufficient access rights.

Post by martinelsner »

Hello,

when calling the Optiflow service with a syntactically correct message, I get an HTTP error 403 along with the following response:

Code: Select all

  "description": "Insufficient access rights.",
  "errorCode": "GENERAL_FORBIDDEN",
  "details": {
    "message": "You do not have permission to access this app."
  }
Meanwhile other services like geocoding are working.
User avatar
Bernd Welter
Site Admin
Posts: 2966
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error code GENERAL_FORBIDDEN, Insufficient access rights.

Post by Bernd Welter »

Hello Martin,

if this error appears this means that the api key you used for the transaction respectively the so-called plan to which the token belongs to does not include access to the method you called, e.g. to the Route Optimization Optiflow API / startOptimization.

:!: Please get in touch with your PTV account manager to check the conditions to get the correct plan. It will be helpful for us if you provide your subscription ID so we can identify the account. As described in the article we manage various limitations via the plans.

:idea: The complete message also includes a traceId and an errorId : could be helpful sometimes if you mention them and also the endpoint that caused an issue.

Code: Select all

{
  "traceId": "xxx",
  "errorId": "yyy",
  "description": "Insufficient access rights.",
  "errorCode": "GENERAL_FORBIDDEN",
  "details": {
    "message": "You do not have permission to access this app."
  }
}         
Best regards,
Bernd

PS: in this particular case the underlying plan was a "migration plan" that is dedicated to serve xServer users to use the optimization APIs based on xTour 2 technology (both already in maintenance mode): Remember: the best optimization in town is the Route Optimization Optiflow API
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
martinelsner
Posts: 3
Joined: Mon May 30, 2022 12:36 pm

Re: Error code GENERAL_FORBIDDEN, Insufficient access rights.

Post by martinelsner »

Hello Bernd,

thanks a lot. After the correction of the plan the call was successfull!

Best regards
Martin
Post Reply