Something went wrong. Try again later

frobie

300k or bust!

268 262594 32 90
Forum Posts Wiki Points Following Followers

frobie's forum posts

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#1 frobie  Staff

@peteace Thanks for finding those. We know the cause but the programmatic fix would be to compare each image size we have stored against their image storage counterpart and then resize if it does not exist. This solution would take eons just due to the sheer enormity of images we have across all three sites. While we work on a better solution, ping me any you see and I'll fix them manually--which is kind of worse now that I see it in text.

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#2 frobie  Staff

@soup_menu Got a fix in that will force the image paths returned to use the http protocol. Should be live Tuesday. Serving the images through https is a decision higher than my pay grade.

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#3 frobie  Staff

@peteace: This one should be fixed. Most likely there are other images like this, let me know if you see any others pop up.

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#4 frobie  Staff

@craves Should be fixed. Check it the next time you're in chat and PM me if it is not correct.

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#5 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 frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#6 frobie  Staff

@myron0815 The search endpoint returns the same result as our site search which is powered by Swiftype. The other endpoints query our databases.

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#7 frobie  Staff

@lhero If you want just the names, it would be:

http://www.giantbomb.com/api/games/?api_key=[APIKEY]&format=json&field_list=name

Then you would need to paginate to get more games:

http://www.giantbomb.com/api/games/?api_key=[APIKEY]&format=json&field_list=name&page=2

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#8  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 frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#9  Edited By frobie  Staff

@peteace@szlifier Updated the API to return images correctly. It will no longer return the CDN url to the image which may not exist. Instead it will return a path that will resize the image if it does not exist. Note the resize job is put in a queue so it may not be instant. But, in the future, the resized image will appear for the given path.

Avatar image for frobie
frobie

268

Forum Posts

262594

Wiki Points

90

Followers

Reviews: 0

User Lists: 4

#10 frobie  Staff

@eastman I can't take the credit, but this should be working now.