小编Dan*_*son的帖子

错误:(gcloud.sql.connect)HTTP错误400:传入请求包含无效数据

问题

我无法通过命令行连接到我的Cloud SQL postgres实例,该实例以前一直在工作:

gcloud sql connect <instance_name> --user=<username>
Run Code Online (Sandbox Code Playgroud)

这是我得到的错误:

ERROR: (gcloud.sql.connect) HTTPError 400: The incoming request contained invalid data.

通过我的三星Galaxy S8在4G热点上运行macOS Mojave 10.14(18A391)。

$ gcloud --version

Google Cloud SDK 227.0.0
bq 2.0.39
core 2018.11.30
gsutil 4.34
Run Code Online (Sandbox Code Playgroud)

日志记录

运行带有--log-http标志的命令,它将返回:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "invalidRequest",
    "message": "The incoming request contained invalid data."
   }
  ],
  "code": 400,
  "message": "The incoming request contained invalid data."
 }
}
Run Code Online (Sandbox Code Playgroud)

为什么会发生这种情况,我该怎么解决?

google-cloud-sql google-cloud-platform

7
推荐指数
1
解决办法
1819
查看次数

MaxConcurrency 属性如何用于 AWS Step Functions 中的 Map Task?

更新:地图状态步骤模板创建一个步骤函数并运行它也会引发错误。这是强有力的证据表明该MaxConcurrency属性与Parameters值一起不起作用。

我无法MaxConcurrency在步骤函数定义中成功使用该属性。

这可以通过使用地图任务文档中提供的示例(2019 年 9 月 18 日新增)来演示:

{
  "StartAt": "ExampleMapState",
  "States": {
    "ExampleMapState": {
      "Type": "Map",
      "MaxConcurrency": 2,
      "Parameters": {
        "ContextIndex.$": "$$.Map.Item.Index",
        "ContextValue.$": "$$.Map.Item.Value"
      },
      "Iterator": {
         "StartAt": "TestPass",
         "States": {
           "TestPass": {
             "Type": "Pass",    
             "End": true
           }
         }
      },
      "End": true
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

通过使用以下输入执行 step 函数:

[
  {
    "who": "bob"
  },
  {
    "who": "meg"
  },
  {
    "who": "joe"
  }
]

Run Code Online (Sandbox Code Playgroud)

我们可以在执行事件历史记录中观察到:

  • ExecutionStarted
  • MapStateEntered
  • MapStateStarted …

amazon-web-services aws-step-functions

5
推荐指数
1
解决办法
2156
查看次数