axios-module icon indicating copy to clipboard operation
axios-module copied to clipboard

After updating to 5.13.0 getting SSL error

Open JulianMelzig opened this issue 4 years ago • 2 comments

After upgrading from version 5.12.5 to 5.13.0 I am getting this error when doing SSR requests in the asyncData function:

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

I am using Cloudflare and Nuxt proxy if this is relevant. The nuxt.config.js looks like this:

 proxy: {
    "/api/": {
      target: process.env.API_BASE,
      pathRewrite: { "^/api/": "" },
      logLevel: "debug",
    },
    "/pixel/": {
      target: process.env.PIXEL_BASE,
      pathRewrite: { "^/pixel/": "" },
    },
  },
  /*
   ** Axios module configuration
   ** See https://axios.nuxtjs.org/options
   */
  axios: {
    proxy: true,
    debug: true,
  },

Any ideas ? This must have something to do with this update because I can immediately reproduce it after the update and not before. You can also see the comparison of the log files in the screenshot. The "rewriting path" is not triggered Bildschirmfoto 2021-03-10 um 19 35 33

JulianMelzig avatar Mar 10 '21 18:03 JulianMelzig

This might be related to proxyHeadersIgnore https://github.com/nuxt-community/axios-module/blob/main/lib/module.js#L85-L87

farnabaz avatar Mar 11 '21 15:03 farnabaz

@JulianMelzig did you find a solution for that? I am facing the same error with 5.13.6.

nelhop avatar Jul 14 '22 09:07 nelhop