Wrong URLS in json data

Avatar image for insideep
insideep

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Hi, this morning I noticed that address stored in small_ulr data in game entity is changed. Now we have a full address and it is okay, but the address is wrong.
I received addresses like this https://www.giantbomb.com/api/image/scale_small/817079-crash_time_logo.png but the correct URL of the image is
https://www.static.giantbomb.com/api/image/scale_small/817079-crash_time_logo.png. Are there changes in progress? Thanks in advance and good work!

Avatar image for insideep
insideep

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I'm sorry, I'm wrong the correct url is http://www.static.giantbomb.com/api/image/scale_small/817079-crash_time_logo.png. The problem when will be solved? Thanks in advance!

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#3  Edited By frobie  Staff

@insideep A change was made to return a path that would resize an image to the given size or pass the image through. The format of this image path is now:

http://www.giantbomb.com/api/image/<size>/<filename>

This has a side benefit of distributing the load across our CDNs. Previously, all the load was coming from one image server.

Avatar image for insideep
insideep

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Thanks for the reply. Good work!

Avatar image for insideep
insideep

5

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@frobie I noticed that I receive this string with https protocol but some images don't load. For example this: https://www.giantbomb.com/api/image/scale_small/2133340-box_ctr.png of the game with id 6196. I tried to load http://www.giantbomb.com/api/image/scale_small/2133340-box_ctr.png and it works. What's the problem? The server have to update itself entirely yet? Thanks in advance!

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

0

Followers

Reviews: 0

User Lists: 4

#6 frobie  Staff

@insideep The API should not be returning https for the image paths. Give me an example of one that does so I can debug it.

Avatar image for mechanations
mechanations

2

Forum Posts

0

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

@frobie: If the query is made over https, it returns https image paths.

Example: https://www.giantbomb.com/api/game/3030-4725/?api_key=[api_key]&resources=game&field_list=image&limit=10

Hope that helps.

Avatar image for subkamran
subkamran

37

Forum Posts

364

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

I still need to use the old static path, because it will respond to HTTPS (even if it's an invalid cert, I use my own CDN proxy in front of it) and my site is always-over-SSL. It'd be great if the new URLs under www.giantbomb.com could support HTTPS eventually too.