j___.___j
j___.___j

Reputation: 326

MongoDB Stitch error: Inserting item, no rule exists for namespace

Using MongoDB Stitch with my iOS App, an authenticated user can't write to the database – the error in the log (and the console) reads as no rule exists for namespace.

Find screenshots of my configuration and the log attached – any help is much appreciated!

enter image description here

enter image description here

Upvotes: 2

Views: 1502

Answers (2)

oblivion02
oblivion02

Reputation: 567

You have to configure MongoDB Realm/Stitch for access the collection. Make sure your changes are saved/deployed.

Upvotes: 1

Leonam Bernardo
Leonam Bernardo

Reputation: 11

I tried setting up stitch once and got into the same problem. Just make sure if the (databasename) or (collectionname) is matching with what you are using in your script. Or just try deleting the collection from there and create a new one.

Upvotes: 1

Related Questions