Feathers error 409 - conflict: message 'follows: null already exists''
See original GitHub issueI’m facing very strange problem.
when I run ‘create’ from my client on a service, Always return error with a message ‘follows: null already exists’ my service is very simple
import mongooseService from 'feathers-mongoose';
import PostModel from './postmodel';
export default function postService() {
const app = this;
app.service('/post', mongooseService({Model: PostModel}));
// apply no hooks
}
// the model
import mongoose from 'mongoose';
const Schema= mongoose.Schema;
const PostSchema = new Schema({
title: { type: String},
content: { type: String}
// that's all
});
const PostModel = mongoose.model('Post', PostSchema);
export default PostModel;
Please help if you have a solution.
Thanks in advance.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
How To Fix the “409 Conflict” Error (5 Methods) - Kinsta
The "409 conflict" error can be frustrating, but it is actually easy to fix. Learn how to fix the error using 5 different...
Read more >Errors | feathers - FeathersJS
Feathers errors contain the following fields: name - The error name (e.g. "BadRequest", "ValidationError", etc.) message - The error message ...
Read more >409 Conflict - HTTP - MDN Web Docs
The HTTP 409 Conflict response status code indicates a request conflict with the current state of the target resource.
Read more >Errors · Feathersjs
The following error types, all of which are instances of FeathersError are ... will already send Conflict or Unprocessable errors with the validation...
Read more >feathers-mongoose | Yarn - Package Manager
Promise = global.Promise; // Connect to a local database called `feathers` mongoose.connect('mongodb://localhost:27017/feathers'); app.use('/messages', service ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
you can log onto mongodb to check the indexes:
Then restart mongod and your server
Thanks
I just faced the same problem with one of my collections. First single doc was written correctly but no more new additions were failing with mentioned conflict error. I must mention the schema
– that’s it! But any patch or get requests were executing successfully on first record.
My codes are running on localhost and DB on mongo atlas cloud.
After wasting all the energy finally deleted the entire collection.
NOW IT"S WORKING AS DESIRED!
Thank god it was in development phase!