Andreas
03/04/2021, 11:55 PMRESPONSE null
when querying for the schema. No other errors. Any ideas what I'm missing here?
Here's a basic example using it with the CDK: https://github.com/tlakomy/cdk-graphql-lambda-exampleFrank
Andreas
03/05/2021, 1:10 AMFrank
Frank
Andreas
03/05/2021, 11:47 AMFrank
Andreas
03/05/2021, 9:16 PMFrank
Frank
Frank
RESPONSE null
response you were getting?Andreas
03/05/2021, 10:01 PMAndreas
03/05/2021, 10:04 PMFrank
Matt Vagni
03/08/2021, 11:36 AMFrank
Matt Vagni
03/08/2021, 4:28 PMMatt Vagni
03/08/2021, 4:28 PMMatt Vagni
03/08/2021, 4:30 PMMatt Vagni
03/08/2021, 4:31 PMimport { APIGatewayProxyResult } from 'aws-lambda';
function random(length: number) {
let result = '';
const characters =
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}
export async function handler(): Promise<APIGatewayProxyResult> {
return {
statusCode: 200,
// 8097 - fine
// 8098 - breaks
body: random(8098),
headers: { 'Content-Type': 'text/plain' },
};
}
you can use this to reproduce (courtesy of @Akos)Matt Vagni
03/08/2021, 4:35 PMAkos
03/08/2021, 6:47 PMFrank
Matt Vagni
03/08/2021, 7:03 PMMatt Vagni
03/08/2021, 7:03 PMFrank
Frank
Andreas
03/08/2021, 8:26 PMAndreas
03/08/2021, 8:27 PMTypeError: Cannot read property 'type' of undefined
at returnLambdaResponse (/Users/andreas/projects/apollo-server-lambda/node_modules/@serverless-stack/cli/scripts/start.js:1149:24)
at ChildProcess.<anonymous> (/Users/andreas/projects/apollo-server-lambda/node_modules/@serverless-stack/cli/scripts/start.js:1186:5)
at ChildProcess.emit (events.js:311:20)
at ChildProcess.EventEmitter.emit (domain.js:482:12)
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
Andreas
03/08/2021, 8:27 PMFrank
Frank
.build/sst-debug.log
?Andreas
03/08/2021, 11:14 PM