开发者社区 > 云原生 > Serverless > 正文

函数计算使用模板访问mysql 报错502如何解决?

函数计算使用模板访问mysql 报错502如何解决?
{
"errorMessage": "Expecting value: line 1 column 1 (char 0)",
"errorType": "JSONDecodeError",
"stackTrace": [
[
"File \"/var/fc/runtime/python3.10/bootstrap.py\"",
"line 549",
"in wsgi_wrapper",
"body = request_handler(environ, start_response)"
],
[
"File \"/code/index.py\"",
"line 55",
"in handler",
"request_body_json=json.loads(request_body)"
],
[
"File \"/var/fc/lang/python3.10/lib/python3.10/json/init.py\"",
"line 346",
"in loads",
"return _default_decoder.decode(s)"
],
[
"File \"/var/fc/lang/python3.10/lib/python3.10/json/decoder.py\"",
"line 337",
"in decode",
"obj, end = self.raw_decode(s, idx=_w(s, 0).end())"
],
[
"File \"/var/fc/lang/python3.10/lib/python3.10/json/decoder.py\"",
"line 355",
"in raw_decode",
"raise JSONDecodeError(\"Expecting value\", s, err.value) from None"
]
]
}

展开
收起
三分钟热度的鱼 2024-07-17 22:47:59 26 0
0 条回答
写回答
取消 提交回答

快速交付实现商业价值。

相关产品

  • 函数计算
  • 相关电子书

    更多
    Hologres Serverless之路:揭秘弹性计算组 立即下载
    Serverless开发平台: 让研发效能再提升 立即下载
    Serverless 引领云上研发新范式 立即下载

    相关镜像