繁体   English   中英

使用 GraphQL 应用程序时如何执行查询

[英]How can I execute the query when using GraphQL application

当我尝试通过 npm run start 执行 Amplify GraphiQL Explorer 时,它最初通过浏览器运行。 但是,当我在几秒钟后执行 GraphQL 查询时,出现以下错误:

Error:
[0] CredentialsError: Missing credentials in config, if using AWS_CONFIG_FILE, set 
AWS_SDK_LOAD_CONFIG=1
[0]     at Timeout.connectTimeout [as _onTimeout] 
(C:\Users\username\WebstormProjects\configurationservice\node_modules\serverless-plugin- 
offline-dynamodb-stream\node_modules\aws-sdk\lib\http\node.js:69:15)
[0]     at listOnTimeout (node:internal/timers:559:17)
[0]     at processTimers (node:internal/timers:502:7)
[0]
[0] 1 deprecation found: run 'serverless doctor' for more details
[0] npm run local exited with code 1

我不知道原因,我担心我是否也应该使用该参数。 任何帮助,将不胜感激。

我发现了问题。 .aws 文件夹中的凭证文件应包含 [default] 配置文件。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM