AR
02/20/2022, 7:52 PMgraphql-stack
. leaving the rds database stack defaults as they are, i'm getting a
\"message\":\"FATAL: database \\\"acme\\\" does not exist; SQLState: 3D000\"
it looks like the aurora instance was created successfully with the DB identifier dev-acme-database-<cluster-id>
when i check in the aws console.
checking the SST console I also am getting a "No RDS clusters in this app" message. do I need to change that RDS_DATABASE
value inside the database stack migrator
function?thdxr
02/20/2022, 7:53 PMthdxr
02/20/2022, 7:54 PMdefaultDatabaseName
creates a db for you with that namethdxr
02/20/2022, 7:54 PMthdxr
02/20/2022, 7:55 PMAR
02/20/2022, 8:18 PMbackend/migrations/base.js
was breaking the buildthdxr
02/21/2022, 2:15 AMAR
02/21/2022, 5:43 PMthdxr
02/21/2022, 5:44 PMAR
02/21/2022, 6:51 PM{
"query": "query Todos {\n session {\n currentUser {\n todos {\n id\n title\n __typename\n }\n __typename\n }\n __typename\n }\n}",
"operationName": "Todos",
"variables": {}
}
its sending a POST
to the correct url and returning a 500. in logs seeing
1bf34b92-5449-4f10-8694-3a34663ceee6 ERROR TypeError: Cannot read properties of undefined (reading 'method')
/home/alan/dev/projects/graphql-stack/node_modules/@serverless-stack/node/dist/esm/graphql.js:12
method: event.requestContext.http.method,
^
TypeError: Cannot read properties of undefined (reading 'method')
at Runtime.handler2 (/home/alan/dev/projects/graphql-stack/node_modules/@serverless-stack/node/dist/esm/graphql.js:12:47)
at Runtime.handleOnce (/home/alan/dev/projects/graphql-stack/node_modules/@serverless-stack/aws-lambda-ric/src/Runtime/Runtime.ts:77:27)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
thdxr
02/21/2022, 6:55 PMdefaultPayloadFormatVersion: sst.ApiPayloadFormatVersion.V2,
AR
02/21/2022, 7:51 PMAR
02/22/2022, 9:43 PMthdxr
02/22/2022, 9:49 PMAR
02/26/2022, 7:28 PMTodoResolver
is importing from backend/functions/graphql/resolvers/types.ts
but codegen is creating/updating backend/services./graphql/resolvers/types.ts
so prolly wanna delete that first oneAR
03/08/2022, 5:21 PMParameter.use
function on the API stack it looks like it's hitting a limit of max 10 parameter names it can read at a time:
1a5b9c55-27a9-4912-8cb9-e1d19ab597bb REQUEST dev-mangrove-api-graphqlLambdaGETE703A5DF-vntYNhncW5zU [functions/graphql/graphql.handler] invoked by API POST /
Unhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"ValidationException: 1 validation error detected: Value '[/mangrove/dev/BUCKET, /mangrove/dev/RDS_SECRET, /mangrove/dev/RDS_ARN, /mangrove/dev/RDS_DATABASE, /mangrove/dev/COGNITO_USER_POOL_ID, /mangrove/dev/MY_SPECIAL_CONFIG, /mangrove/dev/DYNAMO_TABLE, /mangrove/dev/PLAID_CLIENT_ID, /mangrove/dev/PLAID_SECRET, /mangrove/dev/SLACK_ID, /mangrove/dev/SLACK_SECRET]' at 'names' failed to satisfy constraint: Member must have length less than or equal to 10.","reason":"ValidationException: 1 validation error detected: Value '[/mangrove/dev/BUCKET, /mangrove/dev/RDS_SECRET, /mangrove/dev/RDS_ARN, /mangrove/dev/RDS_DATABASE, /mangrove/dev/COGNITO_USER_POOL_ID, /mangrove/dev/MY_SPECIAL_CONFIG, /mangrove/dev/DYNAMO_TABLE, /mangrove/dev/PLAID_CLIENT_ID, /mangrove/dev/PLAID_SECRET, /mangrove/dev/SLACK_ID, /mangrove/dev/SLACK_SECRET]' at 'names' failed to satisfy constraint: Member must have length less than or equal to 10.","promise":{},"stack":["Runtime.UnhandledPromiseRejection: ValidationException: 1 validation error detected: Value '[/mangrove/dev/BUCKET, /mangrove/dev/RDS_SECRET, /mangrove/dev/RDS_ARN, /mangrove/dev/RDS_DATABASE, /mangrove/dev/COGNITO_USER_POOL_ID, /mangrove/dev/MY_SPECIAL_CONFIG, /mangrove/dev/DYNAMO_TABLE, /mangrove/dev/PLAID_CLIENT_ID, /mangrove/dev/PLAID_SECRET, /mangrove/dev/SLACK_ID, /mangrove/dev/SLACK_SECRET]' at 'names' failed to satisfy constraint: Member must have length less than or equal to 10."," at process.<anonymous> (/home/alan/dev/projects/graphql-stack/node_modules/@serverless-stack/aws-lambda-ric/src/index.ts:48:19)"," at process.emit (node:events:390:28)"," at process.emit (node:domain:475:12)"," at emit (node:internal/process/promises:136:22)"," at processPromiseRejections (node:internal/process/promises:242:25)"," at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
AR
03/08/2022, 5:22 PMthdxr
03/08/2022, 5:24 PM@serverless-stack-slack/node
thdxr
03/08/2022, 5:24 PMthdxr
03/08/2022, 5:24 PMAR
03/08/2022, 5:25 PMthdxr
03/08/2022, 10:34 PMthdxr
03/08/2022, 10:34 PM