【问题标题】:Error in Postman: Error: write EPROTO 8768:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:Postman 中的错误:错误:写入 EPROTO 8768:错误:1408F10B:SSL 例程:ssl3_get_record:错误的版本号:
【发布时间】:2020-09-07 00:50:53
【问题描述】:

在 Postman 中请求 GET 期间 (https://localhost:9001/test) 我收到一个错误:

错误:写入 EPROTO 8768:error:1408F10B:SSL routines:ssl3_get_record:错误的版本号:c:\users\administrator\buildkite-agent\builds\pm-electron\postman \electron-release\vendor\node\deps\openssl\openssl\ssl\record\ssl3_record.c:252:

警告:此请求未完全发送,可能没有所有必需的系统标头

邮递员配置:

  • SSL 证书验证已禁用;
  • 代理配置 - 默认代理配置和发送请求的代理配置被禁用;
  • 以毫秒为单位的请求超时 - 0。

【问题讨论】:

  • 如果您尝试在不是 HTTPS 而是更多 HTTP(根本不使用 TLS)上进行 HTTPS 通信,通常会出现此错误消息。确保您的端点是 HTTPS。
  • @PatrickMevzek 评论应该是最佳答案
  • 我从这里解决了:stackoverflow.com/a/60936241/5783617

标签: ssl postman


【解决方案1】:

对于不需要 https 的 Localhost,请尝试使用 http://localhost:9001/test

【讨论】:

  • 我也面临着 localhost,邮递员代理配置似乎有些问题
【解决方案2】:

检查您是否使用HTTP 协议而不是HTTPS 向服务器发送请求:

示例

export const config = {
    baseUrl: "http://localhost:4000"
}

【讨论】:

    【解决方案3】:
    const transporter = nodemailer.createTransport({
        host:'smtp.gmail.com',
        port:587,
        secure:false,
        requireTLC:true,
        auth: {
            user:'youmail@gmail.com',
            pass:'youpass'
        }
    }
    

    注意secure:false

    secure:true 时发生错误。

    【讨论】:

      【解决方案4】:

      它必须是 http 而不是 localhost 的 https

      “http://localhost:3000”

      不是

      “https://localhost:3000”

      【讨论】:

        【解决方案5】:

        原因是链接不正确。 在我使用过的控制器中

        @RequestMapping(value="/{baseSiteId}/test")

        而这个 {baseSiteId} 不是我所期望的。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 2014-01-12
          • 2020-11-28
          • 1970-01-01
          • 2021-06-01
          • 2019-02-14
          • 2015-06-20
          • 2015-06-19
          相关资源
          最近更新 更多