Skip to content

Instantly share code, notes, and snippets.

View rohel01's full-sized avatar

Michaël Melchiore rohel01

View GitHub Profile
@rohel01
rohel01 / main.py
Created February 1, 2021 20:05
Youtrack python client test
import openapi_client as oac
from openapi_client.api import default_api
from pprint import pprint
configuration = oac.Configuration()
configuration.access_token = "HIDDEN"
with oac.ApiClient(configuration) as api_client:
api_instance = default_api.DefaultApi(api_client)
@rohel01
rohel01 / execution_stacktrace.log
Last active February 1, 2021 20:03
Python REST Youtrack error
/home/michael/src/project/venv/bin/python /home/michael/src/project/src/main.py
[{'id_readable': 'TEST-3', 'type': 'Issue'},
{'id_readable': 'TEST-2', 'type': 'Issue'}]
Traceback (most recent call last):
File "/home/michael/src/project/venv/lib/python3.8/site-packages/openapi_client/model_utils.py", line 1595, in get_allof_instances
allof_instance = allof_class(**kwargs)
File "/home/michael/src/project/venv/lib/python3.8/site-packages/openapi_client/model_utils.py", line 1563, in wrapped_init
return fn(self, *args, **kwargs)
File "/home/michael/src/project/venv/lib/python3.8/site-packages/openapi_client/model/database_multi_value_issue_custom_field_all_of.py", line 176, in __init__
setattr(self, var_name, var_value)