[英]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.