【问题标题】:AWS Tookit not able to connect to AWS account via shared credentials in VSCodeAWS 工具包无法通过 VSCode 中的共享凭证连接到 AWS 帐户
【发布时间】:2022-11-26 17:38:44
【问题描述】:

我已经在 VSCode 中安装了 AWS 工具包并尝试连接到我的 AWS 账户。它正在抛出套接字关闭错误。

显然,它在 intelliJ 中工作得很好

检查以下日志: 此操作关闭了哪个套接字?

凭据文件

[saml]
aws_access_key_id        = xxxxxxx
aws_secret_access_key    = xxxxxxx

日志

xxxxxxxxxxxxxxxxxxx [INFO]: autoconnect: trying "profile:saml"
xxxxxxxxxxxxxxxxxxx [ERROR]: Error: Socket is closed
    at new NodeError (node:internal/errors:371:5)
    at Socket._writeGeneric (node:net:785:8)
    at Socket._write (node:net:807:8)
    at doWrite (node:internal/streams/writable:408:12)
    at clearBuffer (node:internal/streams/writable:569:7)
    at Socket.Writable.uncork (node:internal/streams/writable:348:7)
    at ClientRequest._flushOutput (node:_http_outgoing:969:10)
    at ClientRequest._flush (node:_http_outgoing:938:22)
    at onSocketNT (node:_http_client:818:9)
    at processTicksAndRejections (node:internal/process/task_queues:84:21) {
  code: 'NetworkingError',
  region: 'xxxxx',
  hostname: 'xxxxx',
  retryable: true,
  time: xxxxxxxxxxxxxxx,
  statusCode: 407
}

【问题讨论】:

    标签: node.js amazon-web-services visual-studio-code vscode-extensions


    【解决方案1】:

    代理未在 VsCode 中配置导致套接字关闭错误。我添加了代理详细信息并成功连接。 文件 --> 首选项 -> 设置 --> 应用程序 --> 代理。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-03-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-13
      • 2022-08-22
      相关资源
      最近更新 更多