NoSuchKey:指定的键不存在。同时推送放大 graphql API

NoSuchKey: The specified key does not exist. while push amplify graphql API

我正在使用 AWS amplify 创建 graphql API。 我 运行 命令并创建了 schema.graphql,但是当我 运行 Amplify push 我得到这个错误:

Fetching updates to backend environment: dev from the cloud.(node:21276) UnhandledPromiseRejectionWarning: NoSuchKey: The specified key does not exist.

我该如何解决这个问题?

我意识到这个问题已有 4 个月了。希望您现在已经解决了它。

检查您使用的 Amplify CLI 的版本。这个错误出现在 4.21.4,回滚到 4.21.3 修复了它。错误似乎在 4.29.4 中返回,回滚到 4.29.0 为我解决了它。

供参考:https://github.com/aws-amplify/amplify-cli/issues/4612