Functions / call): insert not permitted (status 403)

Hello
My repo is here: https://github.com/coding-to-music/mongo-realm-covid-chartjs

You can login here: https://mongo-realm-covid-chartjs.vercel.app

Then navigate to Countries
Then press Save Data

The schema rules default to allow read and insert
The problem is collection Data, the collection Users is allowing insert. Tasks also has rows, but that came from another application, in database tracker.

I am getting this message in the browser console (ctrl-shift-I) :

Error: Request failed (POST https://stitch.mongodb.com/api/client/v2.0/app/mongo-realm-covid-chartjs-ryfil/functions/call): insert not permitted (status 403)
    at Button.js:2850:24
    at l (index.js:63:40)
    at Generator._invoke (index.js:293:22)
    at Generator.next (index.js:118:21)
    at n (asyncToGenerator.js:3:20)
    at s (asyncToGenerator.js:25:9)

Hi @Tom_Connors,

I think you can update the function Authentication to “System” so it has full rights. Or you may be missing some write authorization in the Rules tab.

Cheers,
Maxime.

1 Like

It worked, thanks very much for your help

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.