# Problem with mautic API, can not save API setting

**URL:** https://forum.mautic.org/t/problem-with-mautic-api-can-not-save-api-setting/20939
**Category:** Product Support
**Tags:** mautic-4
**Created:** [September 20, 2021, 2:00pm UTC](https://forum.mautic.org/t/problem-with-mautic-api-can-not-save-api-setting/20939 "2021-09-20T14:00:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![led.dhany](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/led.dhany/32/486_2.png) [@led.dhany](https://forum.mautic.org/u/led.dhany)
#### Post date: [September 20, 2021, 2:00pm UTC](https://forum.mautic.org/t/problem-with-mautic-api-can-not-save-api-setting/20939/1 "2021-09-20T14:00:52Z")

</div>

**Your software**  
My Mautic version is: 4.0.0  
My PHP version is: 7.4.22  
My Database type and version is: 10.3.30-MariaDB-cll-lve

**Your problem**  
My problem is:  
I uninstall my mautic and install new mautic.  
But now i can not save API setting.

 ![2021-09-20_20-45-18](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/d/dd080615ca19ec1fb6ba9f2d6f854a49c5d28209.jpeg)

These errors are showing in the log:  
here the log:

[](javascript:top.window.close())

# mautic\_prod-2021-09-20.php ( ASCII text )

[2021-09-20 10:41:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 10:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 10:56:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 10:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:11:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:11:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 11:11:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:26:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:26:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 11:26:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:41:01] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:41:01] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 11:41:01] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 11:56:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 11:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:11:01] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:11:01] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 12:11:01] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:26:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:26:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 12:26:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:41:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:41:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 12:41:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 12:56:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 12:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:11:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:11:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 13:11:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:26:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:26:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 13:26:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:41:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:41:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 13:41:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:56:02] mautic.WARNING: MaxMind license key is required.    
[2021-09-20 13:56:02] mautic.ERROR: Failed to fetch remote IP data: URI must be a string or UriInterface    
[2021-09-20 13:56:02] mautic.WARNING: MaxMind license key is required.

Steps I have tried to fix the problem:  
i tried nothing, please help the solution,

---

<div class="post-metadata">

### Author: ![mzagmajster](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mzagmajster/32/687_2.png) [@mzagmajster](https://forum.mautic.org/u/mzagmajster)
#### Post date: [September 20, 2021, 3:10pm UTC](https://forum.mautic.org/t/problem-with-mautic-api-can-not-save-api-setting/20939/2 "2021-09-20T15:10:16Z")

</div>

I believe you are trying to use MaxMind service and do not have license key: [https://docs.mautic.org/en/setup/maxmind-license](https://docs.mautic.org/en/setup/maxmind-license). Select something else in the dialog shown on the link and see if logs clear.
