What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hello everyone, I am currently trying to get products from the Glue API. This is the endpoint I am
Hello everyone,
I am currently trying to get products from the Glue API.
This is the endpoint I am trying to hit.
http://glue.de.spryker.local/catalog-search?q=camera
This endpoint returns no results, changing the query to other products that are being rendered in yves doesn't work either, so somehow my glue api isn't getting the data.
Response: https://pastebin.com/34ALFumU
All auth endpoints work, I am really not sure what is causing it, any idea what I could do?
Comments
-
Hi Niklas, are you using demo data from our demo shops?
https://glue.de.b2c.demo-spryker.com/catalog-search?q=camera
0 -
Interesting, there is difference in found results.
https://www.de.b2c.demo-spryker.com/en/search?q=camera
@UQKSAARKN any ideas?
0 -
Whatβs the difference? Iβm looking at yves and glue results and they seem the same to me
0 -
For me in Yves there are 99 results and in Glue only 3. π€
0 -
Yes I am using the demo data.
0 -
@valerii.trots they are the same for me too, I see 12 results which is the 1st page out of 99 (@UQKSAARKN π€ π¬)
0 -
Ok, in incognito mode I have 99 as well. Interesting that cache clearing and hard reload doesn't help. π€
0 -
maybe you have some interesting session?
0 -
with black/white lists configured f.e.
0 -
but hm, if you just access the url via browser - should not be the case (since no token is provided)
0 -
So the responses are always the same for me doesn't really matter if it is in chrome or in Postman or whatever.
0 -
Is it docker or vagrant? Or something else?
Glue gets its data from ES. As well as Yves. If Yves shows search results, Glue should show exactly them as well.I can't imagine what could go wrong in this case unfortunately.
0 -
We are using docker
0 -
@U01AC7NN6MQ if youβre not getting response neither in Yves or Glue it might mean that your ES is empty. Please check your rabbitMQ - if the queue is full of messages - that might be it
0 -
your request was for de though. Check other virtual hosts
0 -
they all are the same
0 -
US, DE, AT
0 -
So Yves has all the products when you go on the main page of the shop, you can click them and you get all the info about them. What doesnt work is clicking on any categories in the navigation or searching for products using the search bar, result is always 0 products, autocomplete works and returns results, hitting enter results in 0 entries though.
0 -
Main page isn't a Product Listing Page (PLP), so comes not from ElasticSearch but from Redis.
Product Description Page (PDP) (when you click on the product) also comes not from ES but from Redis.So there are some problems with ES itself (not running\wrong version\etc) that you need to find out.
What are those messages in the
event.error
queue? You can open that queue and get one or many messages and see what is the error there.0 -
-
Throws the same error for each product he cycles through @valerii.trots
0 -
I searched exact error in our internal slack. Couldn't find anything useful.
Could you just re-install the application running
docker/sdk reset
?
It will empty DB\Redis\ElasticSearch, import data into DB and sync it to Redis\ES again.0 -
Yeah I already tried that, didn't work.
0 -
In fact it made it worse, because now my Yves doesn't have products either, except the ones on the front page.
0 -
So to sum up: you have just installed one of our demo shops according to our installation guides and you have this problem, right? Have you changed anything in the data or demo shop's codebase?
Could you tell what demo shop have you installed? v202001.0-p1? B2B or B2C? Is it Mac\Windows\Linux?
0 -
Linux Centos 7
B2B
202001.0I haven't made any changes to the demo shops code base or data
0 -
Yes I followed the installation guide
0 -
Unfortunately I have no idea.
I would suggest to remove that application, prune docker volumes and containers by runningdocker system prune -a
anddocker system prune --volumes
.
Then clone current (latest) version of the demo shop from master:git clone <https://github.com/spryker-shop/b2b-demo-shop.git> b2b-demo-shop && cd b2b-demo-shop && git clone <https://github.com/spryker/docker-sdk.git> docker && docker/sdk bootstrap deploy.dev.yml && docker/sdk up
.0 -
Its fixed, setting everything up fresh worked, thanks
0 -
Could be that at some docker volume the data has been corrupted or something like this. I haven't had any problems with v202001.0 in Linux.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 930 Developer Corner
- 788 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random