Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 28, 20195 yr Hi everyone, I am looking for someone who can help me fix my REST & OAuth error. I have done all the steps required, but it keeps showing me this: The API endpoint is not giving the expected response. Check you followed the instructions correctly. The URL being tested is: https://forum.grinderscape.org/api/index.php?/core/hello In order to use the REST API: Download this file. Upload it to the /api folder in your site's directory (/home/forum/public_html/api). Rename it to '.htaccess' (with no file name). I am certainly sure I have done all the steps right, but still shows this. If you go to the link above it throws a 401 if you check in the chrome inspect network. Could it be something with Cloudflare? but what exactly do I have to disable or do? Please someone help, willing to pay if required.
March 28, 20195 yr It looks like for some reason your server isn't passing the HTTP Authorization header to PHP. If your server running Apache or nginx? PHP running as an apache module, cgi or fastcgi?
March 28, 20195 yr Author Hi, I am not sure if my server is running on Apache or nginx, but its a CentOS server with WHM and Cpanel. PHP running as CGI
March 28, 20195 yr You should probably ask your hosting provider. The issue is that the HTTP Authorization header isn't being sent to the PHP script... if you're running nginx, or PHP in a mode that doesn't support .htaccess files, you probably need whoever manages the server to modify something in the server configuration. But if you're not sure what your server is running, it's difficult to advise what that might be. Your hosting provider should be able to sort it.
March 29, 20195 yr Author Well the thing is I am the one who is managing the server, but not really sure what to do. It's self-managed server. If there is anything you'd recommend that would be appreciated. If anything I can try or mess with let me know.
March 29, 20195 yr If you are managing your own server, I would suggest step 1 is probably to find out if you are using Apache, nginx, or a combination of the two. I'm afraid some level of server management knowledge is going to be needed if you are managing your own server.
Archived
This topic is now archived and is closed to further replies.