Hello,
i'm not sure maybe this is more related to this ticket:
https://www.drupal.org/project/commerce_api/issues/3116590 →
When i call the route: /en/jsonapi/current-store
With header Commerce-Current-Store set to current (main, and only) store UUID not ID!
I'm getting exception with backtrace:
Drupal\\Core\\ParamConverter\\ParamNotConvertedException: The \"resource_type\" parameter was not converted for the path \"/jsonapi/current-store\" (route name: \"commerce_api.current_store\") in web/core/lib/Drupal/Core/ParamConverter/ParamConverterManager.php:104
Stack trace:
#0 web/core/lib/Drupal/Core/Routing/Enhancer/ParamConversionEnhancer.php(45): Drupal\\Core\\ParamConverter\\ParamConverterManager->convert(Array)
#1 web/core/lib/Drupal/Core/Routing/Router.php(260): Drupal\\Core\\Routing\\Enhancer\\ParamConversionEnhancer->enhance(Array, Object(Symfony\\Component\\HttpFoundation\\Request))
#2 web/core/lib/Drupal/Core/Routing/Router.php(131): Drupal\\Core\\Routing\\Router->applyRouteEnhancers(Array, Object(Symfony\\Component\\HttpFoundation\\Request))
#3 web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php(92): Drupal\\Core\\Routing\\Router->matchRequest(Object(Symfony\\Component\\HttpFoundation\\Request))
#4 vendor/symfony/http-kernel/EventListener/RouterListener.php(113): Drupal\\Core\\Routing\\AccessAwareRouter->matchRequest(Object(Symfony\\Component\\HttpFoundation\\Request))
#5 [internal function]: Symfony\\Component\\HttpKernel\\EventListener\\RouterListener->onKernelRequest(Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent), 'kernel.request', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))
#6 web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent), 'kernel.request', Object(Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher))
#7 vendor/symfony/http-kernel/HttpKernel.php(127): Drupal\\Component\\EventDispatcher\\ContainerAwareEventDispatcher->dispatch('kernel.request', Object(Symfony\\Component\\HttpKernel\\Event\\GetResponseEvent))
#8 vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)
#9 web/modules/contrib/simple_oauth/src/HttpMiddleware/BasicAuthSwap.php(67): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#10 web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Drupal\\simple_oauth\\HttpMiddleware\\BasicAuthSwap->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#11 web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\\Core\\StackMiddleware\\Session->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#12 web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\\Core\\StackMiddleware\\KernelPreHandle->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#13 web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\\page_cache\\StackMiddleware\\PageCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#14 vendor/asm89/stack-cors/src/Asm89/Stack/Cors.php(49): Drupal\\page_cache\\StackMiddleware\\PageCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#15 web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Asm89\\Stack\\Cors->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#16 web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\\Core\\StackMiddleware\\ReverseProxyMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#17 vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\\Core\\StackMiddleware\\NegotiationMiddleware->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#18 web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\\StackedHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)
#19 web/index.php(19): Drupal\\Core\\DrupalKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request))
#20 /Users/XXXXX/.composer/vendor/laravel/valet/server.php(158): require('/Volumes/TOSHIB...')
#21 {main}