From b458c3babebb6c5600f36c91fde46e23f50cca39 Mon Sep 17 00:00:00 2001 From: wvffle Date: Sat, 2 Jul 2022 11:16:10 +0000 Subject: [PATCH] Add one more request to create an actor --- .gitpod/init_actor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitpod/init_actor.py b/.gitpod/init_actor.py index e1e64e4af..7dde3945e 100644 --- a/.gitpod/init_actor.py +++ b/.gitpod/init_actor.py @@ -11,9 +11,11 @@ res = req.post('http://localhost:8000/api/v1/users/login', data={ 'username': 'gitpod', 'password': 'gitpod', 'csrfmiddlewaretoken': token, - 'next': '/api/v1/libraries/?scope=me' }) print(res.status_code, res.content) +res = req.get('http://localhost:8000/') +print(res.status_code) + if res.status_code == 401: exit(1) \ No newline at end of file