[英]How can I execute the query when using GraphQL application
When I try to execute Amplify GraphiQL Explorer via npm run start, it works initially via browser.当我尝试通过 npm run start 执行 Amplify GraphiQL Explorer 时,它最初通过浏览器运行。 But when I execute the GraphQL query after for a few seconds I get the following error:
但是,当我在几秒钟后执行 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
I dont know the reason and I am concerned about whether I am supposed to use the parameter as well.我不知道原因,我担心我是否也应该使用该参数。 Any help would be appreciated.
任何帮助,将不胜感激。
I found the problem.我发现了问题。 Credentials file in.aws folder should include [default] profile.
.aws 文件夹中的凭证文件应包含 [default] 配置文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.