isleshocky77/suitecrm-mautic

Connection Issues

Opened this issue · 0 comments

I have mautic and suitecrm both running on Docker for local development.

I am using localhost for the suitecrm hostname. I am using localhost:81 for the mautic host name.

I have created an OAuth2 API on the mautic side and entered the client and secret key in the module configuration settings. For the return URI I have used http://localhost

I may be stuck in the weeds using localhost and 127.0.0.1 instead of an actual host name like suitecrm.dev or mautic.dev. I am merely trying to get the module to install and test with it.

Anyway, when it tries to redirect back, I get a white screen and I notice the URL is

http://127.0.0.1//index.php?module=Mautic&action=OauthAuthorize&state=779145b2f5da4476c5d24b0dd76336e1&code=NDRmYTAxMWEzYTliZDI0MDk2ZmYwNmNmMDk1YmQyZjM4MmI3N2VlZmU0ZjA4Mjg0NGE0ODZjYzU4YWIzMmY0Zg

There are 2 slashes after 127.0.0.1. This provides a blank screen. I have yet to look at logs.

When I change the URL to:

http://localhost/index.php?module=Mautic&action=OauthAuthorize&state=642d4a0e21cb8b9e78c927d308095982&code=ODA0OGUyODA2Y2YyOTQ5YjNhNjY0YTkwMzFlZmFhZjhhNGUxZTQ1ZmExZDRjMzYzOTllZjgyMTEzYjc2MTU3YQ

I get the following:

string(56) "The response has unexpected status code (0). Response: "