apache / apache/apisix-java-plugin-runner

request help: "ext-plugin-post-resp" plugin use https upstream service response 502 bad gateway

未关闭
#276 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
152
派生
102
PR 合并指标
30 天内没有已合并 PR

描述

### Issue description

When I use http upstream, the plugin works normally.
Not working properly when using https.
error logs in the log: "unable to get local issuer certificate",
It seems that upstream needs to verify the certificate. How can I bypass the certificate?

err log:

2023/11/23 07:05:04 [error] 70#70: *141105 [lua] ext-plugin-post-resp.lua:153: phase_func(): failed to request: 20: unable to get local issuer certificate, client: 172.19.0.1, server: _, request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443"
2023/11/23 07:05:04 [error] 70#70: *141105 [lua] ext-plugin-post-resp.lua:49: close(): close http object failed: closed, client: 172.19.0.1, server: _, request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443"
2023/11/23 07:05:04 [warn] 70#70: *141105 [lua] plugin.lua:1107: run_plugin(): ext-plugin-post-resp exits with http status code 502, client: 172.19.0.1, server: _, request: "GET /api/v1/code HTTP/1.1", host: "127.0.0.1:9443"

### Environment

docker
apisix == 3.6.0

* your apisix-java-plugin-runner version

apisix-java-plugin-runner version == 0.4.0

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。