Rashed Ahmed Posted March 28, 2019 Share Posted March 28, 2019 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. Link to comment Share on other sites More sharing options...
Mark Posted March 28, 2019 Share Posted March 28, 2019 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? Link to comment Share on other sites More sharing options...
Rashed Ahmed Posted March 28, 2019 Author Share Posted March 28, 2019 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 Link to comment Share on other sites More sharing options...
Rashed Ahmed Posted March 28, 2019 Author Share Posted March 28, 2019 Anyone? Link to comment Share on other sites More sharing options...
Mark Posted March 28, 2019 Share Posted March 28, 2019 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. Link to comment Share on other sites More sharing options...
Rashed Ahmed Posted March 29, 2019 Author Share Posted March 29, 2019 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. Link to comment Share on other sites More sharing options...
bfarber Posted March 29, 2019 Share Posted March 29, 2019 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. Link to comment Share on other sites More sharing options...
Rashed Ahmed Posted March 31, 2019 Author Share Posted March 31, 2019 Paying $30.00 through paypal, someone pm me or offer to fix it please. Link to comment Share on other sites More sharing options...
Rashed Ahmed Posted April 3, 2019 Author Share Posted April 3, 2019 bump Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.