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

1.3k Views Asked by At

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

2

There are 2 best solutions below

1
Leonam Bernardo On

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.

1
oblivion02 On

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