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

U01AC7NN6MQ
U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

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?

Β«1

Comments

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Hi Niklas, are you using demo data from our demo shops?

    https://glue.de.b2c.demo-spryker.com/catalog-search?q=camera

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Interesting, there is difference in found results.

    https://www.de.b2c.demo-spryker.com/en/search?q=camera

    @UQKSAARKN any ideas?

  • Eugenia Poidenko
    Eugenia Poidenko Sprykee Posts: 145 πŸ§‘πŸ»β€πŸš€ - Cadet

    What’s the difference? I’m looking at yves and glue results and they seem the same to me

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    For me in Yves there are 99 results and in Glue only 3. πŸ€”

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yes I am using the demo data.

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    @valerii.trots they are the same for me too, I see 12 results which is the 1st page out of 99 (@UQKSAARKN 🀝 😬)

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Ok, in incognito mode I have 99 as well. Interesting that cache clearing and hard reload doesn't help. πŸ€”

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2020

    maybe you have some interesting session?

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    with black/white lists configured f.e.

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    but hm, if you just access the url via browser - should not be the case (since no token is provided)

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2020

    So the responses are always the same for me doesn't really matter if it is in chrome or in Postman or whatever.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    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.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    We are using docker

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    @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

  • Andriy Netseplyayev
    Andriy Netseplyayev Sprykee Posts: 519 πŸ§‘πŸ»β€πŸš€ - Cadet

    your request was for de though. Check other virtual hosts

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    they all are the same

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    US, DE, AT

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    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.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    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.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet
  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2020

    Throws the same error for each product he cycles through @valerii.trots

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    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.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    Yeah I already tried that, didn't work.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    In fact it made it worse, because now my Yves doesn't have products either, except the ones on the front page.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    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?

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    Linux Centos 7
    B2B
    202001.0

    I haven't made any changes to the demo shops code base or data

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2020

    Yes I followed the installation guide

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    Unfortunately I have no idea.
    I would suggest to remove that application, prune docker volumes and containers by running docker system prune -a and docker 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.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 πŸ§‘πŸ»β€πŸš€ - Cadet

    Its fixed, setting everything up fresh worked, thanks

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    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.