简体   繁体   English

使用 GitHub Webhook 使用 dockerimage 转发到 Jenkins 时 Nodejs 错误“EPROTO”

[英]Nodejs Error “EPROTO” when using GitHub Webhook to forward to Jenkins using dockerimage

I'm using a jenkins server behind a firewall.我在防火墙后面使用 jenkins 服务器。 I used smee-client smee.io to get the webhooks from GitHub through the firewall.我使用 smee-client smee.io通过防火墙从 GitHub 获取 webhook。

I used the dockerimage from deltaprojects/smee-client .我使用了来自deltaprojects/smee-client的 dockerimage。 It is running and connects to smee.io/xyz to get the webhooks.它正在运行并连接到 smee.io/xyz 以获取 webhook。 But if GitHub sending a webhook (configured sending it to smee.io/xyz) it was successfull with a 200 Response.但是,如果 GitHub 发送一个 webhook(配置发送到 smee.io/xyz)它是成功的 200 响应。 But the smee-client ist throwing some EPROTO Errors from nodejs.但是 smee-client 会从 nodejs 抛出一些 EPROTO 错误。 (see output below) (见下文 output)

Config Github webhook:配置 Github webhook:
Payload url https://smee.io/xyz有效载荷 url https://smee.io/xyz
Content type application/json内容类型 application/json
Enable SSL verification启用 SSL 验证
* Send me everything * 把所有东西都发给我
[*] active [*] 积极的

Webhooks seems to work and get a 200 HTML Response Webhooks 似乎工作并获得 200 HTML 响应

The smee-client is showing the following Error: smee 客户端显示以下错误:

{ Error: write EPROTO 140483050982248:error:1408F10B:SSL 
routines:ssl3_get_record:wrong version 
number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

at WriteWrap.afterWrite [as oncomplete] (net.js:788:14)
errno: 'EPROTO',
code: 'EPROTO',
syscall: 'write',
response: undefined }
{ Error: write EPROTO 140483050982248:error:1408F10B:SSL 
routines:ssl3_get_record:wrong version 
number:../deps/openssl/openssl/ssl/record/ssl3_record.c:332:

at WriteWrap.afterWrite [as oncomplete] (net.js:788:14)
errno: 'EPROTO',
code: 'EPROTO',
syscall: 'write',
response: undefined }

I tried to build the image myself but with the same result in Error massage.我尝试自己构建图像,但在错误按摩中得到相同的结果。 I'm not that fammiliar with ssl certificates or even if this problem is related to ssl.我对 ssl 证书并不熟悉,即使这个问题与 ssl 有关。
Maybe someone faced this problem as well and know a hint what i'm doing wrong?也许有人也遇到过这个问题并且知道提示我做错了什么? That would be really nice那真的很好

Got solved by forwarding from smee-client to jenkins with http:// instead of https://通过使用 http:// 而不是 https:// 从 smee-client 转发到 jenkins 解决了
This Error message was kind of misleading此错误消息有点误导

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM