作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试使用 github 时出现错误“无法连接到 GitHub API:org.kohsuke.github.HttpException:服务器返回 HTTP 响应代码:-1,消息:URL 为‘null’:https://github.xxx.com/api/v3/user” Jenkins 中的拉取请求生成器
最佳答案
您可能需要将证书颁发机构证书添加到 java keytool。
如果您查看您的 jenkins 日志并发现类似这样的内容:
org.kohsuke.github.HttpException: Server returned HTTP response code: -1, message: 'null' for URL: https://github.xxx.com/api/v3/user
向下滚动,看看是否有这样一行:
Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
此错误表示 SSL 握手因 PKIX 路径/证书路径相关问题而失败。尝试将您的 CA 证书添加到 key 工具并重新启动 Jenkins 以查看是否有帮助。
Here's the post这帮助我使用 keytool 修改了 java 证书。 (默认的 key 工具密码是“changeit”)
关于github - 无法连接到 GitHub API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44548942/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!