This message contains interactive elements.
# help
r
This message contains interactive elements.
Deprecation Notice: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero in /data/vendor/sllh/composer-versions-check/src/VersionsCheck.php:54 In CurlDownloader.php line 377: curl error 55 while downloading https://repo.packagist.org/p2/spryker/product-option-cart-connector~dev.json: Fai led sending data to the peer
p
Heyhey, please try: https://sprykercommunity.slack.com/archives/CKJRJM5FG/p1686842354478689?thread_ts=1686839416.795909&cid=CKJRJM5FG It should be removed ootb with the next product release. But for now you have to remove that falsy package by yourself
r
i have tried this but still having issue /data | Store: US | Env: docker.dev | Debug: (.) | Testing: (.) ╰─$ glue glue-apicontrollercache:warm-up Code bucket: US | Store: US | Environment: docker.dev Symfony\Component\Console\Exception\NamespaceNotFoundException - Exception: There are no commands defined in the "glue-apicontrollercache" namespace. in /data/vendor/symfony/console/Application.php (650) Request URI: n/a Trace: #0 /data/vendor/symfony/console/Application.php(701): Symfony\Component\Console\Application->findNamespace('glue-api:contro...') #1 /data/vendor/symfony/console/Application.php(259): Symfony\Component\Console\Application->find('glue-api:contro...') #2 /data/vendor/spryker/console/src/Spryker/Glue/Console/ConsoleBootstrap.php(193): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #3 /data/vendor/symfony/console/Application.php(171): Spryker\Glue\Console\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #4 /data/vendor/spryker/console/bin/glue(23): Symfony\Component\Console\Application->run() #5 /data/vendor/bin/glue(120): include('/data/vendor/sp...')
p
But this is another issue. Where do you have this command from?
r
p
This docs page is not really working with the latest demoshop version yet since it requires some newer glue modules (as found in spryker-suite)
r
so what should i do now ?
p
it depends on what you want to achieve in the end šŸ™‚ What is you goal?
r
i just want to create restAPI module and use it through glue endpoint
p
You can try to use this POC to reach that result: https://github.com/spryker-academy/b2b-demo-shop/pull/6 - it makes the current Glue API in demoshops usable with the upcoming glue storefront api best practises
r
Thank you 🫶
Hey @plain-city-95899 i have setuped the code which you have shared with me in git repo but when i hit the URL it gives error and all my api are giving same error 404
p
Please use the request header: Content-Type application/vnd.api+json
šŸ‘ 1
and you also have to request an antelope with special name /antelopes/Bob for example. but this exercise is a follow up from Pub&Sync exercise actually
r
Content-type works but still giving error proxy] [gateway] - 172.19.0.1 - - [07/Jul/20230703:26 +0000] "GET /antelopes/Joy HTTP/1.1" 500 2866 "-" "PostmanRuntime/7.32.3" "-" [glue] [glue_us] - {"@timestamp":"2023-07-07T070325.980474+00:00","@version":1,"host":"290271a3f40a","message":"Spryker\\Client\\Search\\Exception\\SearchDelegatorException - None of the applied \"Spryker\\Client\\SearchExtension\\Dependency\\Plugin\\SearchAdapterPluginInterface\"s is applicable for the specified context. in \"/data/vendor/spryker/search/src/Spryker/Client/Search/Delegator/SearchDelegator.php::222\"","type":"Spryker","channel":"Spryker","level":"CRITICAL","monolog_level":500,"extra":{"environment":{"application":"GLUE_STOREFRONT","environment":"docker.dev","store":"US","codeBucket":"US","locale":"en_US"},"server":{"url":"http://glue.us.spryker.local/antelopes/Joy","is_https":0,"hostname":"290271a3f40a","user_agent":"PostmanRuntime/7.32.3","user_ip":"172.19.0.27","request_method":"get","referer":null},"request":{"requestId":"4319cc29","type":"WEB","request_params":[]}},"context":{"exception":{"class":"Spryker\\Client\\Search\\Exception\\SearchDelegatorException","message":"None of the applied \"Spryker\\Client\\SearchExtension\\Dependency\\Plugin\\SearchAdapterPluginInterface\"s is applicable for the specified context.","code":0,"file":"/data/vendor/spryker/search/src/Spryker/Client/Search/Delegator/SearchDelegator.php:222","trace":["/data/vendor/spryker/search/src/Spryker/Client/Search/Delegator/SearchDelegator.php:55","/data/vendor/spryker/search/src/Spryker/Client/Search/SearchClient.php:82","/data/src/Pyz/Client/AntelopeSearch/AntelopeSearchClient.php:34","/data/src/Pyz/Glue/AntelopesRestApi/Processor/Reader/AntelopeResourceReader.php:42","/data/src/Pyz/Glue/AntelopesRestApi/Controller/AntelopesResourceController.php:23","/data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/Executor/ResourceExecutor.php:109","/data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/ApiApplication/RequestFlowExecutor.php:113","/data/vendor/spryker/glue-application/src/Spryker/Glue/GlueApplication/ApiApplication/ApiApplicationProxy.php:123","/data/public/Glue/index.php:23"]}}} [2023-07-07T070325.980474+00:00] Spryker.CRITICAL: Spryker\Client\Search\Exception\SearchDelegatorException - None of the applied "Spryker\Client\SearchExtension\Dependency\Plugin\SearchAdapterPluginInterface"s is applicable for the specified context. in "/data/vendor/spryker/search/src/Spryker/Client/Search/Delegator/SearchDelegator.php::222" {"exception":"[object] (Spryker\\Client\\Search\\Exception\\SearchDelegatorException(code: 0): None of the applied \"Spryker\\Client\\SearchExtension\\Dependency\\Plugin\\SearchAdapterPluginInterface\"s is applicable for the specified context. at /data/vendor/spryker/search/src/Spryker/Client/Search/Delegator/SearchDelegator.php:222)
p
yes because this exercise expects an antelope client etc available
it was just an example for you šŸ™‚
r
Yeah šŸ˜„ and i have cloned the client transfers and other antelope modules to check how it works but i'm stuck.
And what about the rest of the api's they are also giving 404 and they have content type also.
Hey @plain-city-95899 i took reference from your provided repo and created RestApi module and it is working fine but i my old endpoints are not working so where i have to plug my RestApi module or is there any other solution available ?