Ok, glad to know we’ve narrowed it down a bit.
Right now the code should be using a relative URL to hit the API (might good to make this a configurable URL). It should append /api/v1/your/call/here
to the end of the domain and port of the page you are currently on. So if you’re at http://localhost:8065/someteam/channels/somechannel
in your browser, then the request will be made to http://localhost:8065/api/v1/your/call/here
.
The server would then show in the logs (with DEBUG level logging on):
[09/21/15 08:08:40] [DEBG] /api/v1/your/call/here
That would mark a successful start to the API call. It’s weird that your error log is missing the /api/v1/
part of the URL, but it explains why it’s a 404 (wrong URL).
You can try to curl the following:
curl -i http://127.0.0.1:8065/api/v1/users/me
That should return a 200 OK with a blank body (since no authentication is provided) and should give you a good idea as to whether you can correctly hit the API or not.
If that does work, then the APIs are working with your local address. That likely leaves the problem of the public URL not working with API calls. To test that you would curl using the public URL seen in your above screenshot:
curl -i https://mattermost.alerque.com/api/v1/users/me
If that produces the same result as the previous curl, then ok good, the proxy will have worked with the API request correctly. That would leave the problem that the Mattermost client is not constructing the URLs correctly.
To test that you can go into the file located here ‘platform/web/react/utils/client.jsx’ and search for /api/v1/teams/create_with_sso/
and replace it with https://mattermost.alerque.com/api/v1/teams/create_with_sso/
and save the file. You won’t need to restart the server, just wait ~10 seconds and reload the page in your browser. Try creating a team and see what happens.
If that works as well, then for some reason the URL construction is not working properly and I can help look into that. If any of the troubleshooting above fails before we get to this step, it’ll still help narrow down the issue and I can help further from there.
Sorry for the late response, I had a busy weekend but hopefully we can figure this out for you soon