Skip to main content

What should I do if I face an error while exporting to Mautic?

This post will explain the problem and how to fix it if you get an error while transferring to Mautic.

Written by Oleksandr

Invalid authorization details

If you see such an error during export to Mautic, the issue can be due to the invalid authorization details, or your account may have been cached.

So, first of all, I recommend you check the correctness of your authorization details.

Please check that your API URL consists https protocol, for example, https://contribute.mautic.org/contributing-to-mautic/tester.

Please be advised that for successful export, the "API enabled?" and "Enable HTTP basic auth?" controls should be activated in your Mautic account.

You can find these controls in the "Configuration" → "API Settings" menu.

If you are sure that the authorization details are absolutely correct, then clean the cache of your Mautic account.

There are several ways to do that:

The easiest is to go to the Configuration/System Settings/General Settings/Path to the cache directory to see the cache Path. Then follow the cache Path and delete its content.

If you want to do it via CLI command, also go to the Configuration/System Settings/General Settings/Path to the cache directory to see the cache Path.

Then navigate to the Mautic root folder and run rm -rf/ the cache Path you figured out. The new cache files will generate themselves after the next Mautic refresh in the browser.

Please follow this link to find more detailed instructions on clearing the cache.

498 error in console. Failed to create export account

If you see such an error during export to Mautic, the issue can be related to inner permissions.

It often occurs when Cloudflare is connected (from e.g. DDOS attacks). In this case please try to whitelist our IP address (it's possible under a paid (PRO) Cloudflare account).

To get IPs please kindly contact our support team.

Please be advised:

If you are in US, please try to setup JS challenge outside of US since Stripo servers are based in EU.

How to check if Cloudflare is blocking the connection

Run this command from any computer (replace the values with your Mautic URL, Client ID, and Client Secret):

curl -i "https://YOUR-MAUTIC-DOMAIN/oauth/v2/token?grant_type=client_credentials&client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET"

If the response contains the headers Server: cloudflare and Cf-Mitigated: challenge, and the body is an HTML page saying "Just a moment...", it means Cloudflare shows a browser JavaScript challenge on your API endpoints. Server-to-server integrations cannot pass browser challenges, so the connection fails with a 403/498 error before the request even reaches your Mautic.

Contact our support team to get the list of IPs.

There could be another solution: to create a WAF Skip rule (works on any Cloudflare plan, including Free)

  1. Open Cloudflare Dashboard → select your domain.

  2. Go to Security → WAF → Custom rulesCreate rule.

  3. Set the matching conditions:

    • URI Pathstarts with/oauth

    • Or

    • URI Pathstarts with/api

  4. Set the action to Skip and select the components to skip (custom rules, rate limiting rules, managed rules, Super Bot Fight Mode).

  5. Save and deploy the rule.

To verify, run the curl command again then you should receive a JSON response instead of the HTML page. After that, reconnect your Mautic account in Stripo.

Alternatively, you can whitelist Stripo's IP addresses (Security → WAF → Tools → IP Access Rules → Allow).


Thank you for taking the time to read our articles. We hope you will find this information helpful.


If you have any additional questions, please email us at support@stripo.email.

We would be glad to talk with you.


Did this answer your question?