Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
Hi I am building a webApp (with firebase) for a client.
My question is regarding to the Product rest API.
Problem:
API works fine except for images in this format { src: myurl }.
When I try to upload the image via the admin UI I see the image for a split second then I get
"Image: Media processing failed".
My guess is the firebase storage API here a example url =>
I think shopify is removing the url parameters but I have no clue how to test that.
=> uploads without url parameters work just fine.
Possible Solution (kinda ugly):
I could just download the image on the client side => base64 and upload the image in this format { attachment: myBase64 }.
I believe I am facing the same issue using Firebase Storage.
Shopify endpoint: /admin/api/2021-01/products.json (POST)
I tried creating products with urls from firebase storage, but Shopify API didn't download images for some reason, even though there's no error thrown.
Just as you described, I ended up encoding images to base64 first and then using "attachment" property instead of "src".
I'm not sure if this is a Firebase or Shopify issue. Hopefully Shopify team can take a look at this.
The problem still persists, exactly as described by the person that created the thread.
User | RANK |
---|---|
5 | |
5 | |
5 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022