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/11/23 08:46:22 UTC

[GitHub] [couchdb-nano] sl45sms commented on issue #174: Nano does not work when using special characters in CouchDB password

sl45sms commented on issue #174:
URL: https://github.com/apache/couchdb-nano/issues/174#issuecomment-976289720


   I've solved using
   ```
   const opts = {
     url: `http://couchdb:5984`,
     
     requestDefaults: { 
       headers: {
         Authorization:"Basic " + new Buffer("admin:"+cdbpass).toString('base64')
       }
     }
   }
   
   const couchdb = nano(opts)
   ```


-- 
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