-
Notifications
You must be signed in to change notification settings - Fork 131
Expected HTTP Status Code: 200 (OK). Actual Status Code: 404 (Not Found) #47
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
Any ideas? |
Hi @Jeroenhuisjes. |
Also this error can occur if Magento is not using URL Rewrites. |
Hi @okolesnyk! We tried vendor/bin/codecept run and variations of this and we tried different vendor/bin/robo commands. |
Hey @Jeroenhuisjes We didn't properly test it with nginx. Because I can only reproduce this with nginx webserver. |
Hi @Jeroenhuisjes. Thank you for the report. We created internal ticket MQE-897 to track the progress. We will update you here about progress on this issue. |
@okolesnyk Thanks! |
Hi @Jeroenhuisjes |
@okolesnyk |
Thanks for confirming, @Jeroenhuisjes! We'll go ahead and close this issue. |
Hi. My base url is: magento.test. |
Hi, we are running into the same problem in 2.2.0. After some investigation we found out that the first API call made by vendor/bin/codecept run to get the API token goes to BASE_URL/rest//default/V1/integration/admin/token. On this url we are getting a 404 with postman too. After removing "default" from the url we could successfully receive a token. We checked all configuration options in the .env file but could not find any configuration regarding this default value in the url. |
Hi. After you do that you should run: vendor/bin/robo build:project command |
It does work with a fresh magento dev version. It seems like it can't find the webshop url and perform an assertion.
Preconditions
Steps to reproduce
Expected result
Actual result
In IsEqual.php line 140:
Expected HTTP Status Code: 200 (OK). Actual Status Code: 404 (Not Found)
Failed asserting that 404 matches expected 200.
run [-o|--override OVERRIDE] [-e|--ext EXT] [--report] [--html [HTML]] [--xml [XML]] [--tap [TAP]] [--json [JSON]] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage [COVERAGE]] [--coverage-html [COVERAGE-HTML]] [--coverage-xml [COVERAGE-XML]] [--coverage-text [COVERAGE-TEXT]] [--coverage-crap4j [COVERAGE-CRAP4J]] [--coverage-phpunit [COVERAGE-PHPUNIT]] [--no-exit] [-g|--group GROUP] [-s|--skip SKIP] [-x|--skip-group SKIP-GROUP] [--env ENV] [-f|--fail-fast] [--no-rebuild] [--] [] []
PHP Fatal error: Uncaught RuntimeException: Command Did Not Finish Properly in /home/jeroen/public_html/magento2/dev/tests/acceptance/vendor/codeception/codeception/src/Codeception/Subscriber/ErrorHandler.php:101
Stack trace:
#0 [internal function]: Codeception\Subscriber\ErrorHandler->shutdownHandler()
#1 {main}
thrown in /home/jeroen/public_html/magento2/dev/tests/acceptance/vendor/codeception/codeception/src/Codeception/Subscriber/ErrorHandler.php on line 101
The text was updated successfully, but these errors were encountered: