504 Time-out error on Select application form submission

Created on 30 December 2022, over 2 years ago
Updated 18 January 2023, over 2 years ago

Problem/Motivation

I'm trying to connect the site to Acquia. On 'Acquia Subscription setup' (/admin/config/system/acquia-agent/setup) page I click 'Authenticate with Acquia Cloud' button, pass authorization and redirect on 'Select application' page (/admin/config/system/acquia-agent/configure). Then I choose a subscription from select list and press 'Set application' button. The site starts loading and crashing with 500 or 504 error after some time.

Reason: there is a function _acquia_agent_cloud_api_request() which runs on form submission. It makes an API request to Acquia:
/applications/{applicationUuid}/settings/keys
(https://cloudapi-docs.acquia.com/#/Applications/getApplicationLegacyProd...)
In my case this request always returns 403 error with the message: "You do not have permission to access these product keys."
This case is not handled by the logic and the function loops, resulting in a timeout.

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇧🇾Belarus yurikulinkovich

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024