Magento-RestApi icon indicating copy to clipboard operation
Magento-RestApi copied to clipboard

The remote server returned an error: (302) Moved Temporarily.

Open juanrayner opened this issue 5 years ago • 0 comments

I followed the fairly simple tutorial on the project's home page, but I'm getting this kind of response when I try to create the connection for the first time:

MagentoApiInstance = new MagentoApi(); MagentoApiInstance = MagentoApiInstance.Initialize("http://magento1.test.eu", "d5d6b303940fba3ad2dfb36feac36b00", "699ffcec8fbea08e4e82ec3170e53726"); MagentoApiInstance = MagentoApiInstance.AuthenticateAdmin("Admin", "pass");

Error: ex.Message: The remote server returned an error: (302) Moved Temporarily.

ex.StackTrace: at System.Net.HttpWebRequest.GetResponse() at Magento.RestApi.MagentoApi.Login(MagentoWebClient webClient, String loginUrl, String userName, String password, String oauthToken) at Magento.RestApi.MagentoApi.AuthenticateAdmin(String userName, String password) at WebAspNetCore.Class.MagentoReader.TestConnectionAsync() in e:\Repositorios\Tool-e-byteRepository\Wishlist\WishlistSLN\WebAspNetCore\Class\MagentoReader.cs:line 31

juanrayner avatar Aug 21 '19 16:08 juanrayner