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/08/26 14:20:34 UTC

[GitHub] [couchdb-nano] sploders101 edited a comment on issue #271: Nano with Axios upgrade does not work for HTTPS based couchdb access anymore

sploders101 edited a comment on issue #271:
URL: https://github.com/apache/couchdb-nano/issues/271#issuecomment-906453838


   @indrajit-kanjilal 
   I believe that this is a configuration issue. From what I can tell, the requestDefaults are shallow-merged (can be problematic; addressed in issue #273) with the request directly before being passed to axios. According to [axios documentation](https://github.com/axios/axios#request-config), it requires an `Agent` instance:
   
   >  // `httpAgent` and `httpsAgent` define a custom agent to be used when performing http
   >  // and https requests, respectively, in node.js. This allows options to be added like
   >  // `keepAlive` that are not enabled by default.
   >  httpAgent: new http.Agent({ keepAlive: true }),
   >  httpsAgent: new https.Agent({ keepAlive: true }),
   
   Try passing your agent options into a ` new https.Agent(...)` call and move that to the `httpsAgent` property.
   
   ---
   
   @ceras-ella
   > which is all fine, but when you'll try to create or destroy a database you end up with a circular structure error:
   
   This may be addressed by #274 and #275. I believe that error may have been caused by the logging function using a JSON-based deep clone, which doesn't work with circular references.


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