You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from pycaprio import Pycaprio
client = Pycaprio("http://inception.instance.com", authentication=("user", "pass"))
client.api.create_project("test")
I got this back (edited for privacy, but all the good stuff is there.):
Traceback (most recent call last):
File "...\Local\Programs\Python\Python38\lib\code.py", line 90, in runcode
exec(code, self.locals)
File "<input>", line 8, in <module>
File "...\venv\lib\site-packages\pycaprio\core\adapters\http_adapter.py", line 83, in create_project
return ProjectSchema().load(response.json()['body'])
File "...\venv\lib\site-packages\pycaprio\core\schemas\project.py", line 21, in load
return Project(project_dict['id'], project_dict['name'])
TypeError: list indices must be integers or slices, not str
I went into the http_adapter.py file and wrote code to print out response.json() and got:
Could you post your INCEpTION and pycaprio version so I can follow up?
The steps needed to reproduce are just create a project? Could you reproduce it steadily?
Running this code (edit for security):
I got this back (edited for privacy, but all the good stuff is there.):
I went into the http_adapter.py file and wrote code to print out
response.json()
and got:This looks like the body expected when submitted
GET
notPOST
. I ran this via the SwaggerUI and got back:What's going on here?
The text was updated successfully, but these errors were encountered: