Fauna DB - unable to get demo working

Run up against a brick wall.....

I've followed (I believe) the example on P333/4 of the dev guide - but no luck. I'm getting a 

"ReferenceError: 'faunadb' is not defined.

All commands copy/pasted into the console with only one difference I've noticed - the documentation talks about (after step 5) "At the end of the result, you should see a line with the Secret: 'secret'.
This didn't appear - the user-role is created and I've checked the priviledges for this role and all seems to be ok.

I created a key from: security->newkey and used that as the secret. I'm guessing this is what I need to do...


Did you execute the script step by step and not all at once?
Due to the asynchronous nature of Fauna operations and the script relying on results of previous steps, it needs to be executed step by step.

Thanks Bruno - I'll check and own up if I was impatient!


Something odd going on - latest version of edge gives the previously mentioned error. Chrome on the otherhand led me to the problem - it returned an error - "undefined index ' users_by_email' leading me to assume permissions were somehow incorrect.

It was a permissions issue that I haven't really tracked down - but I've worked round it be creating a new key from https://dashboard.fauna.com/keys/@db/[mydb] in the admin role.

Interestingly - this now works fine from Chrome and Firefox but Edge is still refusing to play. 

Is this the new Microsoft Edge or the old version?
I cannot see an issue here with the newest Microsoft Edge.

Yep - newest (chromium).
Firefox ok too.

So, this is a browser specific issue in the console of Fauna?
In that case, I would suggest to take this up with Fauna support. It is unclear to me why it would behave different in Microsoft Edge Chromium from Google Chrome or Firefox.

You make a good point.

I hope this thread is useful to anyone looking in - and I would welcome any comments from others to see whether this is just my experience. (Vmware / Win 10 Pro )