surrealdb/surrealdb.py

Bug: Surreal.query("SLEEP") returns "IAM error: Not enough permissions to perform this action"

dimentyy opened this issue · 1 comments

The bug

Surreal.query("SLEEP") returns [{"result": "IAM error: Not enough permissions to perform this action", status: "ERR", time="116.125µs"}]

It might be not only SLEEP

Steps to reproduce

Python code:

from surrealdb import Surreal

async with Surreal(...) as db:
    print(await db.query("SLEEP 1s"))  # Will print an error

Using $ surreal sql shell:

> SLEEP 1s  -- Will be fine

Expected behaviour

Actually 'sleeping' for 1s

SurrealDB version

1.3.1 for macos on aarch64

surrealdb.py version

0.3.2 for macos on aarch64 using Python 3.12

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

I'll open it in the main repository