Closed dimentyy closed 6 months ago
Surreal.query("SLEEP") returns [{"result": "IAM error: Not enough permissions to perform this action", status: "ERR", time="116.125µs"}]
Surreal.query("SLEEP")
[{"result": "IAM error: Not enough permissions to perform this action", status: "ERR", time="116.125µs"}]
It might be not only SLEEP
SLEEP
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:
$ surreal sql
> SLEEP 1s -- Will be fine
Actually 'sleeping' for 1s
1.3.1 for macos on aarch64
0.3.2 for macos on aarch64 using Python 3.12
No response
I'll open it in the main repository
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:
Using
$ surreal sql
shell: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?
Code of Conduct