youling66
08/27/2023, 3:58 AMflask --app app:app run --host 0.0.0.0 --port 6789 3 APIs works fine.
If I run project with gunicorn app:app -c gunicorn_config.py , (1)check_permission does work! but (2)read_relationship (3)lookup_resources can't iterate to get all expected response, unless the expected response contains only one struct(relationship/object).
You can get more information in logs added to attachment file.
https://cdn.discordapp.com/attachments/844600078948630559/1145205715699519548/reproduce.tar.gzvroldanbet
08/27/2023, 9:49 AMyouling66
08/27/2023, 12:04 PMyouling66
08/27/2023, 12:12 PMhttps://cdn.discordapp.com/attachments/1145205716030861352/1145330019061727242/AL20QKGbCz.jpg▾
youling66
08/28/2023, 1:42 AMpython -m venv venv, then enter the venv, and finally prompt pip install -r requirements.txtyouling66
08/28/2023, 1:47 AMpython -m venv venv, then enter the venv, and finally prompt pip install -r requirements.txt
2. but you need to create your own spicedb instance first, and update function as this picture shows.
3. finally run project with flask --app app:app run --host 0.0.0.0 --port 6789 or gunicorn app:app -c gunicorn_config.py
https://cdn.discordapp.com/attachments/1145205716030861352/1145535024825896991/image.png▾