You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2021/09/01 14:18:29 UTC

[GitHub] [couchdb-nano] glynnbird commented on issue #271: Nano with Axios upgrade does not work for HTTPS based couchdb access anymore

glynnbird commented on issue #271:
URL: https://github.com/apache/couchdb-nano/issues/271#issuecomment-910331206


   You are right as ever @sploders101. Nano does work for HTTPS - it works with Cloudant, for example, just fine. The problem comes when dealing with HTTPS certificate which can't be authenticated with your operating system's CA bundle. If you need to supply your own certification authority file then you'll need to create your own https agent like so:
   
   ```js
   const httpsAgent = new https.Agent({
     ca: '/path/to/cert',
     rejectUnauthorized: true
   })
   const nano = Nano({
     url: process.env.COUCH_URL,
     log: console.log,
     requestDefaults: {
       agent: httpsAgent
     }
   })
   ```
   
   The circular references bugs are now fixed on main, and will be released soon.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org