Skip to content

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

Description

@juanrayner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions