Files
backstage/.changeset/loud-panthers-arrive.md
T
Manuel Stein 6c118dd093 wrap aws-sdk errors - (prettier update)
there are http errors with no message from aws-sdk, so the error
 is wrapped to conform to the @backstage/errors assertError checks

Signed-off-by: Manuel Stein <manuel.stein@nokia-bell-labs.com>
2022-07-23 18:34:57 +03:00

432 B

@backstage/plugin-techdocs-node
@backstage/plugin-techdocs-node
patch

Fix AWS S3 404 NotFound error

When reading an object from the S3 bucket through a stream, the aws-sdk getObject() API may throw a 404 NotFound Error with no error message or, in fact, any sort of HTTP-layer error responses. These fail the @backstage/error's assertError() checks, so they must be wrapped. The test for this case was also updated to match the wrapped error message.