-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Can't Get Token after Upgrade to 2.0.4 Rest #4016
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ircsome after composer create-project, can you verify that you installed Magento2? |
Yes ... @mazhalai here are the rest of the installation steps I took after composer create-project ....
|
@ircsome so to recap, you deployed via |
Did you follow steps to create and configure an integration? @mazhalai - yes. I am using Token Based Authentication as suggested in these instructions. I am developing a php module to access product data via the rest api (see attached for a couple of functions from this). My primary use of curl from the terminal is to test if the api interface is working before I code the php. I have tried to a) update the existing 2.0.2 install to 2.0.4 and re-test, b) install a completely new 2.0.4 and test. My testing works fine with 2.0.2 - and I get the results returned that I expect. But I get the errors described in the original report with either install of 2.0.4. |
@ircsome we have created MAGETWO-51785 to investigate and fix. |
@mazhalai thanks! how do I track the progress of MAGETWO-51785? |
@ircsome Sorry that is our internal tracking, it is not available for the public. Once a solution is merged, the commits will be linked to this ticket. |
@ircsome, could you answer some questions:
|
|
@ircsome, if you update a magento instance on clarts.com to 2.0.4, does it work or not? |
When I first reported the error I was getting 404s whether I tried against a new install of 2.0.4 or an upgrade of 2.0.2 to 2.0.4. I have just done a clean install of 2.0.4 using the attached script. I no longer get a 404 ... but now I don't get anything returned. Has the repo changed in he intervening period? (NOTE: just noticed the repo has been updated to 2.0.5 which may account for the different result). |
@ircsome , I've installed Magento 2.0.5 from composer. I verified for php 5.6 and php 7. In both cases it works as expected. |
@ircsome we are closing this bug, since it is not reproducible after repeated tries. Please feel free to open a new issue if problems exist. |
…ion-pr [Pangolin] Deliver community converted Captcha tests - closes magento-commerce/magento-functional-tests-migration#248 Convert CaptchaEditCustomerTest to MFTF - closes magento-commerce/magento-functional-tests-migration#244 Convert CaptchaOnStoreFrontRegisterTest to MFTF - closes magento-commerce/magento-functional-tests-migration#245 Convert CaptchaOnStoreFrontLoginTest to MFTF - closes magento-commerce/magento-functional-tests-migration#275 Convert CaptchaOnContactUsTest to MFTF - closes magento-commerce/magento-functional-tests-migration#247 Convert CaptchaOnAdminLoginTest to MFTF - closes magento-commerce/magento-functional-tests-migration#379 Convert ResetCustomerPasswordFailedTest to MFTF
Steps to reproduce
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition /var/www/domain/magento/
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 similarActual result
The text was updated successfully, but these errors were encountered: