简体   繁体   English

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

[英]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.

相关问题 在使用 dbeaver 时,如何添加添加了 aws athena 查询引擎 3 新参数的 jdbc 参数? - How can I add jdbc parameter that added new parameter of aws athena query engine 3 while using dbeaver? 使用 graphql 查询时如何解决验证错误? (打字稿) - How to resolve validation error when querying with graphql? (typescript) 如何使用 AWS Appsync 创建自定义的、硬编码的运行状况检查 GraphQL 查询? - How to create a custom, hardcoded health check GraphQL query with AWS Appsync? 如何使用 Boto3 查询 AWS SSO 用户的 UserId - How can I query UserId for AWS SSO Users using Boto3 当我尝试使用 termux 在 Android 上安装 firebase 时,我该如何解决这个问题? - How can I fix this problem I'm getting when I try to install firebase on Android using termux? 如何查询特定数据? - HOW CAN I QUERY A SPECIFIC DATA? 如何使用 GORM 创建表? - How can I create a table using GORM? ProgrammingError:使用 extras.execute_values 的 psycopg2 更新查询中“,”处或附近的语法错误 - ProgrammingError: syntax error at or near "," in psycopg2 update query using extras.execute_values 如何实时从数组和firestore数据库中查询存储的用户ID? - How can i query stored user ids from array in the real time and firestore database? 当我的程序在集群外运行时,如何使用 AWS 使用 .NET 向 EKS Kube.netes API 进行身份验证? - How can I use AWS to authenticate to the EKS Kubernetes API using .NET when my program is running outside the cluster?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM