We are trying to set up Sync Gateway 3.1 and we are unable to make the Rest API work.
We are getting this error message when we try to connect using Postman.
GET http://XX.XX.XXX.XXX:4984/_all_dbs
Error: connect ECONNREFUSED XX.XX.XXX.XXX:4984
After reviewing this Bootstrap Configuration | Couchbase Docs
, we added the API section as mentioned.
Do we need to add the API section in the bootstrap file for the Rest API to work?
I have added the Sync Gateway Configuration that we are using.
Any pointer will be helpful.
Thanks!!
{
"bootstrap": {
"server": "couchbases://XX.XXX.XX.XXX",
"username": "XXXXXXXXXX",
"password": "XXXXXXXXXX",
"server_tls_skip_verify": true,
"use_tls_server": true
},
"api": {
"admin_interface": "127.0.0.1:4985",
"admin_interface_authentication": false,
"compress_responses": true,
"enable_advanced_auth_dp": true,
"hide_product_version": true,
"idle_timeout": "30s",
"max_connections": 5,
"metric_interface": "127.0.0.1:4986",
"metrics_interface_authentication": false,
"pretty": true,
"profile_interface": "127.0.0.1:4984",
"public_interface": "127.0.0.1:4984",
"read_header_timeout": "30s",
"server_read_timeout": "30s",
"server_write_timeout": "30s"
},
"logging": {
"log_file_path": "/var/tmp/sglogs",
"redaction_level": "partial",
"console": {
"log_level": "none",
"log_keys": [
"*"
]
},
"error": {
"enabled": true,
"rotation": {
"max_size": 20,
"max_age": 180
}
},
"warn": {
"enabled": true,
"rotation": {
"max_size": 20,
"max_age": 90
}
},
"info": {
"enabled": false
},
"debug": {
"enabled": false
}
}
}
3 posts - 3 participants