Closed espen42 closed 3 years ago
Reproduced independently in two different apps, and seems to happen from webapp.js too - not just services.
Effects all kinds of asset types (which all work in prod).
Problem was that a key under response.headers had a value that was undefined
. This was obfuscated in the log. In this case it was the ETag
header, but any key in .headers with an undefined value will cause this crash, it seems.
In prod mode, after adding a few log lines to src/main/resources/lib/enonic/static/index.es6 # getResponse200:
This produces an image output.
In devmode however, it appears the service itself fails, since it's able to log the output from getResponse200 before failing with a 500: