janhommes / o.js

o.js - client side oData lib.
https://janhommes.github.io/o.js/example/
MIT License
238 stars 57 forks source link

Request failed, reason: unable to get local issuer certificate - Proxy? #93

Closed pmc-sstaehle closed 5 years ago

pmc-sstaehle commented 5 years ago

Hi there,

I want to use this library within a (server-side) nestJS project. I managed to include it into my application but when I try to get the resource, it gives me the following error message: 'request to https://AddressInCompanyNetwork/resource.xsodata/XYHeader?%24format=json failed, reason: unable to get local issuer certificate'.

I'm within a company internal network. Maybe I have to set a security proxy? Do you guys have any ideas?

janhommes commented 5 years ago

sounds like the certificate is missing. Do you have the possibility to use http instead?

pmc-sstaehle commented 5 years ago

Unfortunately no :-(

janhommes commented 5 years ago

You can disable node checking for certificates: https://stackoverflow.com/questions/10888610/ignore-invalid-self-signed-ssl-certificate-in-node-js-with-https-request

pmc-sstaehle commented 5 years ago

ok, thx. I will try that.