简体   繁体   English

AWS Lambda 上的 Apollo graphql 服务无法读取 null 的属性“接受”

[英]Apollo graphql service on AWS Lambda Cannot read property 'Accept' of null

Apollo graphql service on AWS Lambda Cannot read property 'Accept' of null AWS Lambda 上的 Apollo graphql 服务无法读取 null 的属性“接受”

{
"errorType": "TypeError",
"errorMessage": "Cannot read property 'content-type' of undefined",
"stack": [
    "TypeError: Cannot read property 'content-type' of undefined",
    "    at fileUploadHandler (/var/task/node_modules/apollo-server-lambda/dist/ApolloServer.js:144:50)",
    "    at Runtime.handler (/var/task/node_modules/apollo-server-lambda/dist/ApolloServer.js:167:13)",
    "    at Runtime.handleOnce (/var/runtime/Runtime.js:66:25)"
]

} }

I believe this has to do with the test that you are sending to AWS Lambda.我相信这与您发送到 AWS Lambda 的测试有关。 You are sending the default request most likely as when I did that I got the same error.您最有可能发送默认请求,因为当我这样做时,我得到了同样的错误。 Try testing your application using apollo client.尝试使用 apollo 客户端测试您的应用程序。

There is a breaking change in the apollo server.阿波罗服务器发生了重大变化。 You need to write the file uploads line.您需要编写文件上传行。 https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md#v230 https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md#v230

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法从 Lambda 调用 AppSync GraphQL api:TypeError:无法读取 Z37A6259CC0C1DAE299A78 的属性“匹配” - Unable to call AppSync GraphQL api from Lambda: TypeError: Cannot read property 'match' of null AWS Lambda:“无法读取未定义的属性‘0’” - AWS Lambda: "Cannot read property '0' of undefined" AWS Lambda TypeError:无法读取未定义的属性“ toString” - AWS lambda TypeError: Cannot read property 'toString' of undefined TypeError:无法读取未定义的属性'id'-AWS Lambda - TypeError: Cannot read property 'id' of undefined - AWS Lambda AWS LAMBDA 函数“无法读取未定义的属性‘s3’” - AWS LAMBDA function "Cannot read property 's3' of undefined" aws-放大错误!!! 类型错误:无法读取 null 的属性“indexOf” - aws-amplify error !!! TypeError: Cannot read property 'indexOf' of null 无服务器框架+ AWS + Lambda + DynamoDB + GraphQL + Apollo服务器=无法使POST请求生效 - Serverless framework + AWS + Lambda + DynamoDB + GraphQL + Apollo Server = Can't make POST Request Work AWS Graphql lambda 查询 - AWS Graphql lambda query AWS Lambda:函数已成功创建,但在创建触发器时出错:无法读取未定义的属性“包含” - AWS Lambda: function was created successfully but an error occurred when creating the trigger: Cannot read property 'includes' of undefined 带有订阅的AWS云中的Apollo GraphQL服务器 - Apollo GraphQL server in AWS cloud with subscriptions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM