Skip to content

GET /documents/{documentId}/content - NoSuchKeyException #207

@mfriesen

Description

@mfriesen

calling GET /documents/{documentId}/content when the S3 document doesn't exist responses with 500 and error : The specified key does not exist.

at com.formkiq.aws.s3.S3Service.getContentAsString(S3Service.java:280)
2024-02-18T19:56:55.877-06:00 at com.formkiq.stacks.api.handler.DocumentIdContentRequestHandler.get(DocumentIdContentRequestHandler.java:92)
2024-02-18T19:56:55.877-06:00 at com.formkiq.aws.services.lambda.AbstractRestApiRequestHandler.callHandlerMethod(AbstractRestApiRequestHandler.java:137)
2024-02-18T19:56:55.877-06:00 at com.formkiq.aws.services.lambda.AbstractRestApiRequestHandler.processRequest(AbstractRestApiRequestHandler.java:631)
2024-02-18T19:56:55.877-06:00 at com.formkiq.aws.services.lambda.AbstractRestApiRequestHandler.processApiGatewayRequest(AbstractRestApiRequestHandler.java:557)
2024-02-18T19:56:55.877-06:00 at com.formkiq.aws.services.lambda.AbstractRestApiRequestHandler.handleRequest(AbstractRestApiRequestHandler.java:346)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions