Calling Developers!
We are reenergizing our code contribution process! Learn More

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..

Hey guys me again, as before I am using the spryker b2b demo shop, for some reason the glueAPI cata

Options
U01AC7NN6MQ
U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet

Hey guys me again,

as before I am using the spryker b2b demo shop, for some reason the glueAPI catalogSearch returns all the products with image links that don't provide an image extension with the images.
So instead of example.jpg these links just provide example. React can't handle these images without extension so I am not able to use the image data.

Comments

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    sounds weird. Did you check, how do they look like in DB? Or - do they work in Yves? I’m not sure the problem is on the Glue

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    @UKJSE6T47 if you have a spryker b2b shop running right now you can try this link

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    edited September 2020
    Options
  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    They work in yves just fine

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    ah, so you’re using the one-s we have in spryker demoshop ootb. What exactly you want to achieve here? I believe you can simply change the image of the product to the one you want to, with normal extension and give it a try.
    These images are set like this (w.o. extension) in our demo-data files. You can search in data/ folder for cloudfront and will find them

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    I believe in your project you should have your own images

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    if you do it for testing / POC only, then just take couple of products and give them the “normal” image URLs with extensions

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    Well we used it for testing, but the approach you named doesn't work, simply adding a .jpg at the of the url throws an xml error

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    I mean not adding the jpg to that images, but changing the whole URL to something different, e.g. https://daily.jstor.org/wp-content/uploads/2019/05/the_quantum_random_number_generator_alt2_1050x700.jpg
    or whatever

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    for over 450 products? 😄

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    then we’re coming back to my question: what do you want to achieve? Would 2-3 products be enough for your test?

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    We wanted to showcase some functionality to our customer but we don't have their data yet, so yeah thats why we wanted to use your data.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    edited September 2020
    Options

    Why are the images saved without extension in the first place?

  • Andriy Netseplyayev
    Andriy Netseplyayev Domain Lead Solution Architecture Sprykee Posts: 519 🧑🏻‍🚀 - Cadet
    Options

    they are not saved w.o. extension. They are specified in the demo-data w.o. extension.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    Why are the images specified in the demo data w.o. extension.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    That way it's not possible to display the demo data in any way while using the glue api. Atleast that I know off.

  • U01AC7NN6MQ
    U01AC7NN6MQ Posts: 58 🧑🏻‍🚀 - Cadet
    Options

    If a MIME type would be provided everything would be fine.