簡體   English   中英

AWS Lambda 上的 Apollo graphql 服務無法讀取 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)"
]

}

我相信這與您發送到 AWS Lambda 的測試有關。 您最有可能發送默認請求,因為當我這樣做時,我得到了同樣的錯誤。 嘗試使用 apollo 客戶端測試您的應用程序。

阿波羅服務器發生了重大變化。 您需要編寫文件上傳行。 https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md#v230

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM