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 2020/05/19 09:29:24 UTC

[GitHub] [couchdb-nano] armanriazi opened a new issue #224: Protocol https not suported

armanriazi opened a new issue #224:
URL: https://github.com/apache/couchdb-nano/issues/224


   When I set https url cloudant db I get this error
   require("nano")("https://u:p@cloudanturl").use("mydb");
   
   > Error: Protocol \"https\" not supported. Expected \"http:\"\n    at new ClientRequest (_http_client.js:131:11)\n    at Object.request (http.js:38:10)\n    at Object.request (https.js:239:15)\n    at Request.start (/home/node/app/production/vidly-api/node_modules/nano/node_modules/request/request.js:751:32)\n    at Request.write (/home/node/app/production/vidly-api/node_modules/nano/node_modules/request/request.js:1491:10)\n    at end (/home/node/app/production/vidly-api/node_modules/nano/node_modules/request/request.js:549:18)\n    at Immediate.<anonymous> (/home/node/app/production/vidly-api/node_modules/nano/node_modules/request/request.js:578:7)\n    at runCallback (timers.js:794:20)\n    at tryOnImmediate (timers.js:752:5)\n    at processImmediate [as _immediateCallback] (timers.js:729:5
   > #
   ## Your Environment
   heroku
   local execution
   expressjs


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

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



[GitHub] [couchdb-nano] rnewson commented on issue #224: Protocol https not suported

Posted by GitBox <gi...@apache.org>.
rnewson commented on issue #224:
URL: https://github.com/apache/couchdb-nano/issues/224#issuecomment-630819050


   Please don't paste passwords (or the vast majority of a password) to public repositories.
   
   We'll look into the ticket shortly, I've scrubbed the comment and all history but I think you should rotate your password as a precaution.


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

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



[GitHub] [couchdb-nano] glynnbird commented on issue #224: Protocol https not suported

Posted by GitBox <gi...@apache.org>.
glynnbird commented on issue #224:
URL: https://github.com/apache/couchdb-nano/issues/224#issuecomment-630832561


   To answer the original question, Nano definitely _does_ work with https. Please make sure you're using the latest version - I've just tried it and it works fine.
   
   ```js
   const db = require('nano')(url).use('mydb');
   db.list({limit:1}).then(console.log)
   // { total_rows: 23200, offset: 0, rows: [...] }
   ```


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

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



[GitHub] [couchdb-nano] glynnbird closed issue #224: Protocol https not suported

Posted by GitBox <gi...@apache.org>.
glynnbird closed issue #224:
URL: https://github.com/apache/couchdb-nano/issues/224


   


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

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