Skip to content

Can't Get Token after Upgrade to 2.0.4 Rest #4016

Closed
@ghost

Description

Steps to reproduce

  1. Install Magento from release.

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /var/www/domain/magento/

  1. from terminal enter ...

curl -X POST "http://domain.com/magento/index.php/rest/V1/integration/admin/token" \
-H "Content-Type:application/json" -d '{"username":"admin", "password":"admin123"}'

Expected result

"6kv3mxw10oxrcaqkkq956t23xhybk90q" or similar

Actual result

  1. Magento 2.0.2 ... result as expected
  2. Magento 2.0.4 ... (after either upgrade of 2.0.2 or new install)
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /magento/index.php/rest/V1/integration/admin/token was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions