cancel
Showing results for 
Search instead for 
Did you mean: 

404 error in oauth/initiate

404 error in oauth/initiate

Hi,

 

I get a 404 error when I use custom script using OAuth.

 

OAuthException Object (
[message:protected] => Invalid auth/bad request (got a 404, expected HTTP/1.1 20X or a redirect)
[string:Exception:private] =>
[code:protected] => 404
[file:protected] => /home/username/public_html/createItem.php
[line:protected] => 165
[trace:Exception:private] => Array ( [0] => Array ( [file] => /home/username/public_html/createItem.php [line] => 165 [function] => getRequestToken [class] => OAuth [type] => -> [args] => Array ( [0] => http://mydomain.net/oauth/initiate?oauth_callback=http%3A%2F%2Fmydomain.net%2FcreateItem.php ) ) )
[previous:Exception:private] =>
[lastResponse] =>

 

I configured the REST - OAuth Consumers, REST - Roles, REST - Attributes in Admin panel > Systems as per Magento documenation.

 

why am I getting 404 error? Is a redirection error required using .htaccess. I have no htaccess now. If so, what rule is needed in .htaccess.