Hi,
We are using Apigee Kickstart with Drupal for our developer portal. During user registration, we encounter a gateway timeout error when validating the connection to Apigee Edge. Specifically, the testConnection() method in the apigee_edge.sdk_connector service fails with the following error:
Could not create/update Drupal user: [user_email], because there was no connection to Apigee Edge. cURL error 28: Connection timed out after 30000 milliseconds (see https://curl.haxx.se/libcurl/c/libcurl-errors.html).
The function responsible for this validation is as follows:
function apigee_edge_form_user_form_api_connection_validate(array $form, FormStateInterface $form_state) {
$sdk_connector = \Drupal::service('apigee_edge.sdk_connector');
try {
$sdk_connector->testConnection();
} catch (\Exception $exception) {
$form_state->setError($form, t('User registration is temporarily unavailable. Try again later or contact the site administrator.'));
}
}
We would appreciate guidance on resolving this issue so we can restore seamless user registration functionality.
NOTE : On all other pages like Create APP, APP Listings, every thing is working fine ans smoothly.
Hi @abdul009
The issue might be due to the Apigee Connection settings are not properly set in Drupal portal.
Can you please check that connection or if required, re-configure the Apigee Connection Settings in Admin > Configuration > Apigee > General form.
Make sure to clear your browser cache and flush Drupal caches.
I will recommend you to run the Developer Synchronization (Admin > Configuration > Apigee > Developers > Synchronization) which will perform these tasks
Post that you can check and update.
The issue you are facing is due to some issues while configuring Apigee Connection. Please follow above steps, it will help you.
Thanks!
I have configured Apigee Connection properly, in fact on that page i tried test connection and it was successful. Regarding Developers > Synchronization i know this feature works for both sides. I am talking about normal user registration flow, when a user comes to portal, registers on portal, It also getting register on Apigee side on same time, so i am getting gateway time out error on registration.
We can not do Synchronization all time.
Thanks
Hi @abdul009
Noted you are getting the issue on registering the user only. Sync Developers was the option for sometimes if the issue occurs, But if it occuring all the time, do share a log for it.
Can you turn on the Apigee Debug module and check in Recent Logs, what error do you get during the registration of user. If you can share this log it will be helpful to identify the issue.
Thanks!
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |