Hitting connection refused error with couchdb community provider

Hello Terraform Discuss Community,

I am trying to use the community provider for CouchDB: https://github.com/nicolai86/terraform-provider-couchdb

I have made couch.tf:

provider "couchdb" {
  endpoint = "http://localhost:5984"

When I use terraform plan, I get the following error:

Error: Get http://localhost:5984/: dial tcp [::1]:5984: connect: connection refused

  on couch.tf line 1, in provider "couchdb":
   1: provider "couchdb" {

Can you please help me figure out why this is happening? And how to get around it?

Thanks in advance,