1. Home
  2. Issues
  3. Asynchronous Flush Failed

Asynchronous Flush Failed

The LogHero WordPress plugin gathers log events in a log file to send them in a batch to the LogHero API. To maintain fast loading times for all your visitors, the plugin sends these batches asynchronously by hitting an endpoint on your WordPress site. For some server configurations, hitting this endpoint will be refused by the server. To ensure that your log events are sent, the plugin switches to synchronous mode and retries sending the log events and generates the warning above. We encountered these problems particularly on sites that are using Cloudflare. Cloudflare does not accept requests from the plugin as it has an invalid browser signature. Whenever the log buffer needs is flushed, these sites produce an error similar to the following:

Error 1010 Ray ID: 43d595ae530ebf16 • 2018-07-20 12:55:53 UTC 
Access denied
What happened?
The owner of this website has banned your access based on your browser's signature (43d595ae530ebf16-ua59).

For more information about the error, visit the Cloudflare support site.

How to fix it

The plugin switches to synchronously sending the log events to the API automatically. However, to get rid of the WordPress and server warnings, go to the Log Hero settings page in the admin panel of your WordPress site (Settings → Log Hero) and activate the checkbox “Disable Async Mode” in the advanced settings section. This will configure the plugin to always use the synchronous mode and hide the warning.

Updated on August 7, 2018

Was this article helpful?

Related Articles

Add A Comment