impress-2020/src/server
Matchu ae6b012f88 Fail harder when *all* layers fail to load
This was actually being _triggered_ by the fact that the user outfits page doesn't generate great outfit image URLs! It doesn't encode the layerUrls parameter, so now that image URLs sometimes contain `&`, the parameter was being misparsed.

Example:
```
http://localhost:3000/api/outfitImage?size=300&layerUrls=https://impress-2020.openneo.net/api/assetImage?libraryUrl=https%3A%2F%2Fimages.neopets.com%2Fcp%2Fitems%2Fdata%2F000%2F000%2F054%2F54348_cf1cfe10c7%2Fall-background.js&size=300,http://images.neopets.com/cp/bio/data/000/000/041/41572_0450defb29/41572.svg,http://images.neopets.com/cp/bio/data/000/000/041/41570_83582a4a83/41570.svg,http://images.neopets.com/cp/bio/data/000/000/041/41571_7e6c072e12/41571.svg,http://images.neopets.com/cp/bio/data/000/000/041/41582_06159c1e4d/41582.svg,http://images.neopets.com/cp/bio/data/000/000/041/41574_520e661a8a/41574.svg,http://images.neopets.com/cp/bio/data/000/000/041/41573_f4f480ba37/41573.svg,https://impress-asset-images.openneo.net/object/000/000/480/480378/300x300.png?v2-1597211608000
```

would get the following list of layer URLs:
```
["https://impress-2020.openneo.net/api/assetImage?libraryUrl=https://images.neopets.com/cp/items/data/000/000/054/54348_cf1cfe10c7/all-background.js"]
```

Anyway, I'm gonna fix that (probably by just not using this layerUrls param anymore and moving to the new outfit ID + timestamp URLs), but let's also just have clearer error messages instead of just a blank image! That way, if something similar happens again, the client will fall back to alt text, instead of showing a blank image.
2021-09-03 14:55:50 -07:00
..
__image_snapshots__ outfit-images: render actual PNG and SVG layers! 2021-01-04 05:58:19 +00:00
__snapshots__ simplify validPetPoses out of the server directory 2020-09-06 00:40:00 -07:00
lib Apply sampling rates to Honeycomb events 2021-05-26 18:50:19 -07:00
types Use /api/assetImage for all image sizes 2021-08-19 17:56:09 -07:00
auth.js Fix misc lint errors 2021-05-03 15:06:07 -07:00
db.js Use ES module syntax in backend instead of require 2021-02-02 22:26:55 -08:00
index.js Lint against console.log 2021-05-03 15:01:49 -07:00
loaders.js Add negative word filters to search 2021-07-29 00:25:35 -07:00
modeling.js Lint against console.log 2021-05-03 15:01:49 -07:00
neopets-assets.js Support HTTPS asset URLs 2021-06-12 02:29:30 -07:00
outfit-images.js Fail harder when *all* layers fail to load 2021-09-03 14:55:50 -07:00
outfit-images.test.js Use Fastly to cache our PNG assets from S3 2021-05-12 22:49:59 -07:00
util.js Fix misc lint errors 2021-05-03 15:06:07 -07:00
util.test.js Fix misc lint errors 2021-05-03 15:06:07 -07:00