404 GraphQL call error
Related posts
As raised on the following post:
Related github issues
- https://github.com/salesagility/SuiteCRM-Core/issues/4
- https://github.com/salesagility/SuiteCRM-Core/issues/1
Errors
If you are getting an 404
when calling /api/graphql
, like:
Possible root cause
The 404 here suggests that you may not have your webserver configured to allow re-writes.
Debugging the problem
To make sure that the problem is indeed related with mod_rewrite
You can double check if this is a re-write problem by doing a request to: https://<your_host>/index.php/api/graphql
. If you get an error message similar to the following and not a 404
it means its a problem with the rewrite.
Solution
Please check that you have mod_rewrite
enabled in apache. Also check that your server is configured to allow re-writes for your page with a configuration similar to this:
<VirtualHost *:80>
ServerName domain.tld
ServerAlias www.domain.tld
DocumentRoot /var/www/project/public
<Directory /var/www/project/public>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>