Skip to content

The store that was requested wasn't found #39770

Open
@coresh

Description

@coresh

Preconditions and environment

  • Magento version: 2.4.7-p4, 2.4.8-beta2
  • php version: 8.3

Case: Core config data value for the path: 'web/url/use_store' === 1

select * from core_config_data where path='web/url/use_store';
+-----------+---------+----------+-------------------+-------+---------------------+
| config_id | scope   | scope_id | path              | value | updated_at          |
+-----------+---------+----------+-------------------+-------+---------------------+
|       523 | default |        0 | web/url/use_store | 1     | 2024-08-29 20:49:29 |
+-----------+---------+----------+-------------------+-------+---------------------+

Steps to reproduce

php.ini:

xdebug.mode=develop,trace

The issue provided by the request:

curl 'https://your-magento-test-host.com/graphql' -H 'accept: */*' -H 'accept-language: en-US,en;q=0.9' -H 'authorization;' -H 'cache-control: no-cache' -H 'content-type: application/json' -b 'SID=94638c7c90fa603674e1df25068d13d6; _ga=GA1.1.1738941708.1742491653; pwaProMore=1; cookie_accepted=true; cf_clearance=FwzcQkb_y5TxCmAatAQ22oOun9jzGow1XWdB8QA7VL0-1742536421-1.2.1.1-pQ_1vRuHXNR.t34JcS9EFcH.k1B54Hmkjaom_W.AmIcaCP1ycv39jwrMDu8RDR3rmr58YasLwU4ZURrJRVma7JsmhMljnCeNJ7oIeCYQbllqJSm43aQygaghKXQQ11Z_AgpFKtcVfz08AKDXYvyXzLVAmNxZW5pdlKu4wLe_kvI3Ss3GFDgOkLpPL1iwgzg_5WWCzFVyxD8mAvOvNzrSG6GqwrYnoI7wEz7JRRYCJm1N.UWw8YxFop4RqykGFQhLkmsyQVu9up.7RYaWoZAKvi_kHwbv_XMhGYybPe6se7eLdtoGBoGRHrjV7lprVwsKyek9WKgj2k0NzUFCbr6ByFRLZSmyCglFkfXgp_Wd4_o; _ga_LWFKYRLFVB=GS1.1.1742536422.5.0.1742536422.0.0.0' -H 'origin: https://your-magento-test-host.com' -H 'pragma: no-cache' -H 'priority: u=1, i' -H 'referer: https://your-magento-test-host.com/en_us/' -H 'sec-ch-ua: "Not:A-Brand";v="24", "Chromium";v="134"' -H 'sec-ch-ua-mobile: ?0' -H 'sec-ch-ua-platform: "Linux"' -H 'sec-fetch-dest: empty' -H 'sec-fetch-mode: cors' -H 'sec-fetch-site: same-origin' -H 'store: en_us' -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36' -H 'x-magento-cache-id: b665ee02f24c915afc32f00f3697beb351eea255490f62b3e93dbdaf4ba1bff6' --data-raw '{"operationName":"createCart","variables":{},"query":"mutation createCart {\n  cartId: createEmptyCart\n}\n"}';

Expected result

{"data":{"cartId":"vVujuoM9XmEGzeootUTWt7adbJPlHUQ5"}}

Actual result

'{"operationName":"createCart","variables":{},"query":"mutation createCart {\n  cartId: createEmptyCart\n}\n"}';

Additional information

Magento\Framework\Exception\NoSuchEntityException

Magento\Framework\Exception\NoSuchEntityException: The store that was requested wasn't found. Verify the store and try again.  in vendor/magento/module-store/Model/StoreRepository.php on line 75

Call Stack:
    0.0001     507288   1. {main}() pub/index.php:0
    0.0110    2907496   2. Magento\Framework\App\Bootstrap->run($application = class Magento\Framework\App\Http { ... }) pub/index.php:35
    0.0111    2919104   3. Magento\Framework\App\Http->launch() vendor/magento/framework/App/Bootstrap.php:264
    0.0111    2919104   4. Magento\Framework\App\Request\Http->getFrontName() vendor/magento/framework/App/Http.php:111
    0.0111    2919104   5. Magento\Framework\App\Request\Http->getPathInfo() vendor/magento/framework/App/Request/Http.php:219
    0.0111    2919104   6. Magento\Framework\App\Request\Http->getOriginalPathInfo() vendor/magento/framework/App/Request/Http.php:169
    0.0111    2919144   7. Magento\Backend\App\Request\PathInfoProcessor\Proxy->process($request = class Magento\Framework\App\Request\Http { ... }, $pathInfo = '/graphql') vendor/magento/framework/App/Request/Http.php:154
    0.0121    2927000   8. Magento\Backend\App\Request\PathInfoProcessor->process($request = class Magento\Framework\App\Request\Http { ... }, $pathInfo = '/graphql') generated/code/Magento/Backend/App/Request/PathInfoProcessor/Proxy.php:105
    0.0140    3653080   9. Magento\Store\App\Request\PathInfoProcessor->process($request = class Magento\Framework\App\Request\Http { ... }, $pathInfo = '/graphql') vendor/magento/module-backend/App/Request/PathInfoProcessor.php:55
    0.0140    3653080  10. Magento\Store\App\Request\StorePathInfoValidator->getValidStoreCode($request = class Magento\Framework\App\Request\Http { ... }, $pathInfo = '/graphql') vendor/magento/module-store/App/Request/PathInfoProcessor.php:42
    0.0143    3818928  11. Magento\Store\Model\StoreRepository->getActiveStoreByCode($code = 'graphql') vendor/magento/module-store/App/Request/StorePathInfoValidator.php:99
    0.0143    3818928  12. Magento\Store\Model\StoreRepository->get($code = 'graphql') vendor/magento/module-store/Model/StoreRepository.php:89

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.8-beta2Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

    Type

    No type

    Projects

    Status

    Needs Update

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions