engine icon indicating copy to clipboard operation
engine copied to clipboard

When certificate is not fully compliant, fetcher fails

Open martinratinaud opened this issue 2 years ago • 0 comments

Exemple with this [PDF document] from Zalando(https://partnerportal.zalando.com/partners/sfc/servlet.shepherd/document/download/0695q0000052elGAAQ)

{
  "name": "Zalando",
  "documents": {
    "Commercial Terms": {
      "fetch": "https://partnerportal.zalando.com/partners/sfc/servlet.shepherd/document/download/0695q0000052elGAAQ"
    }
  }
}

It works when using

  • Safari
  • Brave
  • Chrome

But when looking at the certificate, it seems that is is not fully compliant and thus causing an error in fetching.

This error goes away if we use process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; which is not really what we want here.

Difficult to consider this is not an error on our side as users can download in most modern browsers.

@Ndpnt what do you think?

martinratinaud avatar Sep 14 '22 05:09 martinratinaud