Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Gateway time out drupal portal

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.'));
    }
}

 

 

Questions:

  1. What could cause a consistent timeout when calling the Apigee Edge API from Drupal during testConnection() validation? Are there known latency issues or endpoint restrictions we should be aware of?
  2. Is there a recommended timeout configuration for cURL requests to Apigee Edge APIs, and can it be extended to accommodate potential network delays?
  3. Are there specific logs or diagnostics available on the Apigee Edge side to investigate whether the request is being received or blocked?
  4. Could this be related to rate limits or other restrictions applied to our Apigee organization ([Your Organization Name])?
  5. Are there any network configuration steps (firewall, proxy settings, etc.) or debugging tools you recommend to troubleshoot this issue?

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.

0 3 341
3 REPLIES 3

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

  • Create Drupal users for any Apigee developers that are in the Drupal system
  • Create developers in Apigee for all users in this Drupal system that are not already in Apigee

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!