andyrichardson / subscriptionless

GraphQL subscriptions (and more) on serverless infrastructure
MIT License
93 stars 3 forks source link

One or more parameter values were invalid: Condition parameter type does not match schema type #29

Closed louisholley closed 2 years ago

louisholley commented 2 years ago

firstly, thanks for this package, it seems a lot more promising than aws-lambda-graphql which we're currently using. I've followed all of the setup steps and I've got our API deploying w/ subscriptionless, but I'm getting the following error when calling instance.publish:

One or more parameter values were invalid: Condition parameter type does not match schema type

I think this is a dynamodb error...has anyone encountered this?

louisholley commented 2 years ago

if it helps, it seems to be throwing somewhere between lines 809 - 827 of index.js in getFilteredSubs (console.log on line 828 isn't printing)

louisholley commented 2 years ago

also (i don't know if this is related) it seems like no connections are being stored in dynamo, checking the logs for handleGatewayEvent is showing a series of CONNECT and DISCONNECT events, the latter with disconnectReason: 'Connection closed abnormally'. any advice would be hugely appreciated!

image

louisholley commented 2 years ago

I got this working eventually, turns out it was issues with AWS privileges and not using graphql-ws correctly on the client! thanks so much again for the package