Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidSignatureException when invoking :PostToConnection #255

Open
wkok opened this issue Apr 25, 2024 · 0 comments
Open

InvalidSignatureException when invoking :PostToConnection #255

wkok opened this issue Apr 25, 2024 · 0 comments

Comments

@wkok
Copy link

wkok commented Apr 25, 2024

Dependencies

{com.cognitect.aws/api                     {:mvn/version "0.8.692"}
 com.cognitect.aws/endpoints               {:mvn/version "1.1.12.701"}
 com.cognitect.aws/apigatewaymanagementapi {:mvn/version "847.2.1365.0"}}

Description

Invoking :PostToConnection works fine for the first few invocations

(-> (aws/client {:api               :apigatewaymanagementapi
                 :endpoint-override {:hostname "xxxxxxx.execute-api.eu-central-1.amazonaws.com"
                                     :path     "/xxxx/@connections/"}})

    (aws/invoke  {:op      :PostToConnection
                  :request {:ConnectionId "xxxxxxx"
                            :Data         "some data"}}))

but, after leaving it idle for about 5-10 mins then invoking it again, hangs on aws/invoke for about 5 minutes after which the following is returned as the result:

{:message "Signature expired: 20240425T100521Z is now earlier than 20240425T101638Z (20240425T102138Z - 5 min.)",
 :cognitect.aws.http/status 403,
 :cognitect.anomalies/category :cognitect.anomalies/forbidden,
 :cognitect.aws.error/code "InvalidSignatureException"}

Stack traces

None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant