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 your authorization details' correctness.
Please check that your API URL consists https protocol, for example, https://mautic.test.edu/.
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.
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 email@example.com.
We would be glad to talk with you.