Hello! I seem to be having 2 issues (that are prob...
# help
h
Hello! I seem to be having 2 issues (that are probably unrelated to each other). 1. Websockets with CUSTOM authorizer throw an error.
Copy code
AuthorizerResultTtlInSeconds cannot be set for WEBSOCKET protocol Apis. (Service: AmazonApiGatewayV2; Status Code: 400; Error Code: BadRequestException; Request ID: 59e5ff5a-907f-4d2c-a2f6-0012888cf27d; Proxy: null)
2. When running unit tests (
sst test
), I seem to also be getting an error. I've tried to test my Websocket Authorizer and got inspiration from this: https://github.com/serverless-stack/serverless-stack/blob/e14edc65afa59493c615c59c5d520fda0e7b5477/packages/resources/test/WebSocketApi.test.ts#L617 Testing other areas of my stacks seem to also throw similar error or say that there's no resource like X at all.
Copy code
TypeError: Converting circular structure to JSON
        --> starting at object with constructor 'CloudAssembly'
        |     property 'artifacts' -> object with constructor 'Array'
        |     index 0 -> object with constructor 'TreeCloudArtifact'
        --- property 'assembly' closes the circle
        at JSON.stringify (<anonymous>)
Thanks.
f
Hey @Hubert, yeah i’m looking into the
AuthorizerResultTtlInSeconds
issue. Will keep you posted.
Will also look into the issue with the test.
h
Thanks, looking forward to hearing what is the cause. I've been ripping my hairs out for hours and days now.
o
Seeing the same issue with
AuthorizerResultTtlInSeconds
. Also, looking forward to a resolution. 🙏
f
@Orlando @Hubert will provide update soon
This should be fixed in v0.46.0. Give it a try and let me know if it works for you!
o
Thanks @Frank for making these updates so quickly! So far, has been working well for us.