question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: parent cluster object has been closed

See original GitHub issue

Hi, im new with ottoman, i try to call model findOne() Here is my model declare: `import { model, Ottoman, Schema } from ‘ottoman’ import { KEY_GENERATOR, PRICING_MODELS } from ‘…/…/consts’

const ottoman = new Ottoman() ottoman.connect('couchbase://****)

export const PriceSchema = new Schema({ propertyId: { type: String, required: true }, roomId: { type: String, required: true }, agreementId: { type: String, required: true }, rateId: { type: String, required: true }, rateType: { type: String, required: true }, allotment: Number, price: { type: Number, required: true }, isActive: { type: Boolean, required: true }, status: String, date: { type: String, required: true }, })

export const PriceModel = model(PRICING_MODELS.PRICE, PriceSchema, { collectionName: ‘prices’, keyGenerator: KEY_GENERATOR, })`

and const test = await PriceModel.findOne() console.log(test)

But i got error: Error: parent cluster object has been closed. Please tell me why? Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
ceddybicommented, Jan 26, 2021

I just want to thank you all for this thread, in the last 24 hours I decided to create my own new ORM package, highly inspired by node-ottoman https://github.com/stoqey/sofa

Things make more sense now 🤘🏿🙏🍾

Please don’t hesitate to throw some feedback on it

Thank you very much again

1reaction
zonorioncommented, Jan 7, 2021

@gsi-alejandro thank you so much

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: parent cluster object has been closed - Node.js SDK
Getting Error: parent cluster object has been closed with Couchbase Node SDK v3. When on development I would get his error randomly and ......
Read more >
Error: cluster object was closed in couchbase and nodejs
But, if I had to guess, I'd say cluster is being created outside of your handler.retrieve . So by the time whatever framework...
Read more >
Error: parent cluster object has been closed - Bountysource
Hi, im new with ottoman, i try to call model findOne() Here is my model declare: `import { model, Ottoman, Schema } from...
Read more >
couchbase/discuss - Gitter
I've got an issue on bucket automaticly close and get the error "Error: parent cluster object has been closed" , seems it was...
Read more >
Troubleshoot Cluster service account - Windows Server
If several clusters are using the same domain account as their Cluster service account, you may receive this error message before you create ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found