#adamazlo_api

1 messages ยท Page 1 of 1 (latest)

frosty quartzBOT
prisma orchidBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

frosty quartzBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1250187592834744436

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

worthy sky
#

Hello
Can you share the product ID of the product or the request ID where you're setting the URL?

gloomy remnant
#

Hi, the product ID is prod_QH9Y1widCykone

#

Request req_ZLesd1FHAGkmYb

worthy sky
#

Interesting. Does it only happen when the image is in google storage?

gloomy remnant
#

Seems so, I just updated it via the API to use discords logo that I pulled from google and it shows

frosty quartzBOT
gloomy remnant
#

But the bucket we use in google is public so i dont think thats the issue?

worthy sky
#

Hmm interesting. .

queen edge
#

๐Ÿ‘‹ stepping in for my teammate

gloomy remnant
#

Hm

#

I just found a random image using google storage from google and tried that, and i am seeing the image

queen edge
#

Very interesting ๐Ÿค”

gloomy remnant
#

So it doesnt seem to be strictly a google storage issue and might have something to do with our bucket? But I'm not sure why since that image I sent in the support request is onbviously public

queen edge
#

Perhaps there's some setting you'll need to toggle

gloomy remnant
#

https://storage.googleapis.com/gweb-cloudblog-publish/images/Storage-to-Use_v04-23-21.max-1600x1600.jpeg

#

Sorry, I'm trying to share the URLs im testing with but it keeps converting them to images

#

https://storage.googleapis.com/mazlo-assets-dev/adam/logo.png

queen edge
#

No worries! Try adding them within code blocks

gloomy remnant
#

Haha just checking on that first one

#

Thanks

queen edge
#

https://storage.googleapis.com/gweb-cloudblog-publish/images/Storage-to-Use_v04-23-21.max-1600x1600.jpeg

gloomy remnant
#

Gotcha

#

Are there any logs in stripe that im not seeing that might indicate why this image is blocked?

queen edge
#

I don't see any obvious logs right off the bat

#

I did notice you have another product that uses a different CDN for image URLs: prod_QGkNW43AMzee5p

It seems like we're able to make a call to this URL just fine when loading the Dashboard and can render the image

gloomy remnant
#

Yes that was another random image i found of our logo through google

queen edge
#

Ah, I see

gloomy remnant
#

One of our engineers just found that we arent setting the content type when we upload to our bucket and think thats the issue

queen edge
#

Oh, interesting. that sounds like it might be it

#

Here's what I found, and you can try this yourself as well

#

Try loading the Product view from the Dashboard in Chrome and open Dev Tools > Network. If you filter the requests for storage.googleapis.com, you'll see the Dashboard tries to make a call to the image URL and the response we get back is a cloudfront.net URL. If you copy/paste that Cloudfront URL into your browser, you'll see a "Unsupported content-type returned" error

gloomy remnant
#

Ah yep, seems like thats it then

#

Thank you so much for helping with the investigation!

queen edge
#

Sure thing! Is setting the content type something you can test quickly so we can be sure that was it?

gloomy remnant
#

Yeah looking into it now, will let you know shortly

#

Yep looks like that was it, we're seeing images now

queen edge
#

Amazing!

#

Great sleuthing on your end, too