amazon-web-services - AWS Lambda 上的 Apollo graphql

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

{
"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)"
]

最佳答案

我相信这与您发送到 AWS Lambda 的测试有关。您发送的默认请求很可能与我发送默认请求时一样,我遇到了同样的错误。尝试使用 apollo 客户端测试您的应用程序。

关于amazon-web-services - AWS Lambda 上的 Apollo graphql 服务无法读取 null 的属性 'Accept',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62653766/

相关文章:

c++ - 为什么 glBufferSubData 很慢?

java - 在 springboot 中创建名为 'org.springframework.boo

django - React 和 Nginx 在使用 axios 时弄乱了 url,不正确的 API

amazon-web-services - 使用 bitbucket codestar 连接手动触发

python - 在 Django 项目中从 Scrapy 获取蜘蛛列表

node.js - 如何在服务器端渲染中使用 Mongodb

react-native - 当应用程序已经安装时,如何从 React Native 中的实际应用程

c# - CreatedAtAction 结果为 "No route matches the sup

node.js - NodeMailer - G-Suite - 服务账户 - 以群组邮件形式发送

testing - 在 Cypress 中运行测试的所有断言