• Resolved AOS

    (@fandoment)


    Hi, I’ve suddenly started getting a 504 error when going to the page to review registrations.
    My hosting company says:

    We’ve narrowed this down to an external HTTP call on the members requests page. The plugin is performing an HTTP request to api.hostip.info for every IP address in the list (currently 15 calls) and each of the calls is timing out after 5 seconds by default, because api.hostip.info seems to be down. 5 seconds for every call makes the page load for at least 75 seconds, and our cap on the web server level is 60 seconds, at which point it aborts the request and issues a gateway timeout.

    We’ve commented out the line in the plugin itself for now which does render the page but with no host lookup info, and the flag images are not loading either. This is a temporary fix from our side, and for a more permanent fix you should contact the author with this problem. They should probably:

    * Set smaller timeouts for such HTTP calls
    * Batch them if possible and/or run in parallel
    * Handle api.hostip.info being down gracefully
    * Perform the lookups only once and save it when the member record is created

    This is over my head ?? but I am passing it on to you.

    Thank you.

    https://www.ads-software.com/plugins/bp-registration-options/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘504 Bad Gateway’ is closed to new replies.