CURL ERROR: Failed to connect to 127.0.0.1: Permission denied (RestApiClient.php:143)

You can connect, means no error with SELinux.

This error indicates you have an error in your zone configuration as described e.g. here.