triniwiz / triniwiz/nativescript-plugins
[nativescript-couchbase] Error when running the replicator isRunning() command
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 87
- Forks
- 57
- Avg merge
- 1h 36m
- Merged PRs (30d)
- 4
Description
I have an issue with couchbase when running isRunning() command.
here's my code:
try {
const couchbase = new CouchBase(environment.couchbaseDb),
replicator = couchbase.createReplication(`ws://${environment.couchbaseUrl}/${environment.couchbaseDb}`, 'both')
replicator.setContinuous(true)
replicator.start()
console.log('is couchbase running? ' + replicator.isRunning())
} catch(e) {
console.log('Couchbase error: ', e)
}
and here's the error response from console:
JS: Couchbase error: TypeError: Cannot read property 'BUSY' of undefined
my package.json:
"dependencies": {
"@angular/animations": "14.2.8",
"@angular/common": "14.2.8",
"@angular/compiler": "14.2.8",
"@angular/core": "14.2.8",
"@angular/forms": "14.2.8",
"@angular/http": "8.0.0-beta.10",
"@angular/platform-browser": "14.2.8",
"@angular/platform-browser-dynamic": "14.2.8",
"@angular/router": "14.2.8",
"@nativescript-community/drawingpad": "4.1.0",
"@nativescript-community/geocoding": "3.1.0",
"@nativescript-community/ui-image": "4.3.6",
"@nativescript-community/ui-lottie": "1.0.0",
"@nativescript-community/ui-material-bottom-navigation": "7.0.3",
"@nativescript-community/ui-material-bottomsheet": "7.0.33",
"@nativescript/angular": "14.2.6-alpha.0",
"@nativescript/background-http": "5.0.2",
"@nativescript/camera": "5.0.12",
"@nativescript/core": "8.3.5",
"@nativescript/directions": "2.0.1",
"@nativescript/firebase": "11.1.3",
"@nativescript/geolocation": "8.0.2",
"@nativescript/local-notifications": "6.0.0",
"@nativescript/theme": "3.0.2",
"@nativescript/zip": "6.0.0",
"@nstudio/nativescript-camera-plus": "4.1.0",
"@nstudio/nativescript-checkbox": "2.0.4",
"@triniwiz/nativescript-couchbase": "1.4.0",
"@triniwiz/nativescript-image-zoom": "4.1.2",
"@triniwiz/nativescript-toasty": "4.1.3",
"blueimp-md5": "2.19.0",
"nativescript-appavailability": "1.3.2",
"nativescript-audio": "6.2.6",
"nativescript-barcodescanner": "4.0.1",
"nativescript-feedback": "2.0.0",
"nativescript-phone": "3.0.3",
"nativescript-ui-autocomplete": "7.0.2",
"nativescript-ui-listview": "10.0.2",
"reflect-metadata": "0.1.13",
"rxjs": "7.5.5",
"zone.js": "0.11.6"
},
"devDependencies": {
"@angular-devkit/build-angular": "14.2.7",
"@angular/compiler-cli": "14.2.8",
"@nativescript/android": "8.3.1",
"@nativescript/types": "8.3.1",
"@nativescript/webpack": "5.0.9",
"@ngtools/webpack": "14.2.7",
"typescript": "4.7.4"
},
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the error with @triniwiz/nativescript-couchbase 1.4.0 and trace the replicator.isRunning() implementation in the plugin. Check the native Couchbase replicator state handling and any existing tests or examples. Done means isRunning() no longer throws and reports the replicator state correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- database, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100