Giter VIP home page Giter VIP logo

Comments (5)

jo avatar jo commented on August 15, 2024

No, it should work with https out of the box. Could you provide more information about how you called it?

from couchdb-push.

OliverAndersRWE avatar OliverAndersRWE commented on August 15, 2024

I call push(serverUrl,targetAppPath, function(err, resp) {
if (err) {
console.log(chalk.red.underline("ERROR"))
console.log(chalk.red(JSON.stringify(err)))
} else {
console.log(chalk.green.bold.underline("SUCCESS"))
console.log(resp)
}
})
where serverurl is like https://userId:[email protected]:443/dbName

the error occurs in couchdb-ensure/index.js line 8 in the request function:

module.exports = function configure (url, callback) {
const db = nanoOption(url)
const couch = nanoOption({ url: db.config.url, parseUrl: false })

couch.request({
method: 'HEAD',
db: db.config.db
}, function (error) {
if (!error) return callback(null, existResponse)
if (error.statusCode !== 404) return callback(error)

Hope this helps?

Kind Regards,
Oliver

from couchdb-push.

jo avatar jo commented on August 15, 2024

Thats strange, I took your example and it worked for me.

Do you use the most recent version of couchdb-push (3.1.0)?

from couchdb-push.

OliverAndersRWE avatar OliverAndersRWE commented on August 15, 2024

Hi,
devDependencies": {
...
"couchdb-push": "^3.1.0",
...
}

I'm using the version above... I switched back to the http connection and the port 5982 and it worked again.

I will try to set up a seperate project for testing and will ping back when this solves the issue...

Many thanks for looking into it.

Kind Regards,
Oliver

from couchdb-push.

jo avatar jo commented on August 15, 2024

Yeah let me know the outcome, I'm happy to help.

from couchdb-push.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.