开发者社区 > 云原生 > 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 23 0
0 条回答
写回答
取消 提交回答

快速交付实现商业价值。

相关产品

  • 函数计算
  • 热门讨论

    热门文章

    相关电子书

    更多
    One Box: 解读事务与分析一体化数据库 HybridDB for MySQL 立即下载
    One Box:解读事务与分析一体化数据库HybridDB for MySQL 立即下载
    如何支撑HTAP场景-HybridDB for MySQL系统架构和技术演进 立即下载

    相关镜像