Saltar al contenido

AppFlow Hubspot Connection not updating the token

0

Hi,

I have setup the hubspot connection in the AppFlow with all required scopes configured as per https://docs.aws.amazon.com/appflow/latest/userguide/connectors-hubspot.html. After configuring the flow and running it, I have noticed that after some time the ingestion fails and I am getting 401 from HubSpot. The logs on the HubSpot show that the token timed out. To fix it I need to edit connection and re-submit userid and the secret.

AppFlow establishes the initial connection with ClientId and Secret however after the first token expired, AppFlow is not renewing it.

preguntada hace 3 años448 visualizaciones
1 Respuesta
0

We're facing the same issue, the oauth2 request is missing two scopes required for the data import, these scopes are:

  • crm.objects.custom.read
  • crm.schemas.custom.read

both scopes are declared in the documentation (https://docs.aws.amazon.com/appflow/latest/userguide/connectors-hubspot.html) but missing from the URL for authorizing the application: https://app.hubspot.com/oauth/authorize?scope=oauth+crm.objects.companies.write+crm.objects.companies.read+crm.objects.deals.write+crm.objects.deals.read+crm.objects.owners.read+crm.objects.contacts.read+crm.objects.contacts.write+crm.lists.write+crm.lists.read+tickets+automation+e-commerce+forms+sales-email-read&response_type=code&prompt=consent&client_id=<redacted>&redirect_uri=https%3A%2F%2F<region>.console.aws.amazon.com%2Fappflow%2Foauth&state=<redacted>

Wonder if as a workaround we can create the connector, copy the url of the authorization window, add the missing scopes and complete Oauth2 with these missing scopes

respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.