atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

[Bitbucket] repository.commits.each() -> Expected type of data is [commit], got [None]

Open gunarskepe opened this issue 2 years ago • 13 comments

atlassian-python-api 3.28.1

from atlassian.bitbucket import Cloud

for repository in project.repositories.each():
    for commit in repository.commits.each():
        log.info("commit = %s", commit.message)

Raises the following exception:

for commit in repository.commits.each():
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 38, in each
    yield self.__get_object(super(Commits, self).get(commit.get("hash")))
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 16, in __get_object
    return Commit(data, **self._new_session_args)
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 63, in __init__
    super(Commit, self).__init__(None, *args, data=data, expected_type="commit", **kwargs)
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python310\lib\site-packages\atlassian\bitbucket\cloud\base.py", line 22, in __init__
    raise ValueError("Expected type of data is [{}], got [{}].".format(expected_type, self.get_data("type")))
ValueError: Expected type of data is [commit], got [None].

According to Debug, the HTTP response returns a full list of commits.

gunarskepe avatar Nov 05 '22 11:11 gunarskepe

20 USD bounty attached:

https://gitpay.me/#/task/642/repository-commits-each-expected-type-of-data-is-commit-got-none

gunarskepe avatar Nov 05 '22 11:11 gunarskepe

Can you activate the debug logging or add a print of data as first line this function? https://github.com/atlassian-api/atlassian-python-api/blob/96e0cd19fe131d6f29217e61378e7f2bd0f22199/atlassian/bitbucket/cloud/repositories/commits.py#L62-L63

Spacetown avatar Nov 05 '22 20:11 Spacetown

Can you activate the debug logging or add a print of data as first line this function?

https://github.com/atlassian-api/atlassian-python-api/blob/96e0cd19fe131d6f29217e61378e7f2bd0f22199/atlassian/bitbucket/cloud/repositories/commits.py#L62-L63

full DEBUG log file + added additional print.

    def __init__(self, data, *args, **kwargs):
        print("print here for Spacetown")
        print(data)
        super(Commit, self).__init__(None, *args, data=data, expected_type="commit", **kwargs)
2022-11-06 14:16:52,904 - DEBUG - curl --silent -X GET -H 'Content-Type: application/json' -H 'Accept: application/json'  'https://api.bitbucket.org/2.0/workspaces/m8fintech'
2022-11-06 14:16:52,905 - DEBUG - Starting new HTTPS connection (1): api.bitbucket.org:443
2022-11-06 14:16:55,284 - DEBUG - https://api.bitbucket.org:443 "GET /2.0/workspaces/m8fintech HTTP/1.1" 200 None
2022-11-06 14:16:55,324 - DEBUG - HTTP: GET m8fintech -> 200 OK
2022-11-06 14:16:55,324 - DEBUG - HTTP: Response text -> {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "is_private": false, "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "hooks": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/hooks"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "members": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/members"}, "owners": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/members?q=permission%3D%22owner%22"}, "projects": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech"}, "snippets": {"href": "https://api.bitbucket.org/2.0/snippets/m8fintech"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}, "created_on": "2020-04-09T05:05:08.019208+00:00"}
2022-11-06 14:16:55,324 - DEBUG - curl --silent -X GET -H 'Content-Type: application/json' -H 'Accept: application/json'  'https://api.bitbucket.org/2.0/workspaces/m8fintech/projects'
2022-11-06 14:16:56,900 - DEBUG - https://api.bitbucket.org:443 "GET /2.0/workspaces/m8fintech/projects HTTP/1.1" 200 None
2022-11-06 14:16:58,116 - DEBUG - HTTP: GET None -> 200 OK
2022-11-06 14:16:58,117 - DEBUG - HTTP: Response text -> {"values": [{"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "key": "TVC", "uuid": "{4034fefc-319e-4060-8f07-72a271099fd4}", "is_private": true, "name": "TV - Cloud", "description": "", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/TVC"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/TVC"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key=\"TVC\""}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/TVC/avatar/32?ts=1666779926"}}, "created_on": "2022-10-26T10:25:26.481872+00:00", "updated_on": "2022-10-26T10:25:26.481887+00:00", "has_publicly_visible_repos": false}, {"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "key": "TVDOC", "uuid": "{2ad7f273-0bb0-4cf9-88e1-05cdd64c6651}", "is_private": true, "name": "TV-docker", "description": "", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/TVDOC"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/TVDOC"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key=\"TVDOC\""}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/TVDOC/avatar/32?ts=1666170740"}}, "created_on": "2022-10-19T09:12:20.750225+00:00", "updated_on": "2022-10-19T09:12:20.750243+00:00", "has_publicly_visible_repos": false}, {"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "key": "MF", "uuid": "{407f9394-ab6c-4412-b29f-0c19cc75558c}", "is_private": true, "name": "Martin Flaks", "description": "", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/MF"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/MF"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key=\"MF\""}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/MF/avatar/32?ts=1665397199"}}, "created_on": "2022-10-10T10:19:59.140574+00:00", "updated_on": "2022-10-10T10:19:59.140590+00:00", "has_publicly_visible_repos": false}, {"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "key": "TWSWEB", "uuid": "{ad04cd9a-5103-4223-873e-25a06876da39}", "is_private": true, "name": "tws-web-api", "description": "", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/TWSWEB"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/TWSWEB"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key=\"TWSWEB\""}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/TWSWEB/avatar/32?ts=1662101875"}}, "created_on": "2022-09-02T06:57:55.408556+00:00", "updated_on": "2022-09-02T06:57:55.408569+00:00", "has_publicly_visible_repos": false}, {"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "key": "TOK", "uuid": "{3c93306d-92eb-49a8-b28d-099a8cfdbd77}", "is_private": true, "name": "TV - Ondrej Klimo", "description": "", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/TOK"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/TOK"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key=\"TOK\""}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/TOK/avatar/32?ts=1660306587"}}, "created_on": "2022-08-12T12:16:27.254510+00:00", "updated_on": "2022-08-12T12:16:27.254522+00:00", "has_publicly_visible_repos": false}, {"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "key": "TON", "uuid": "{9fc4f1e1-d740-4189-908c-1ac6982a940d}", "is_private": true, "name": "TV - Ousamah Nuwayhid", "description": "", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/TON"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/TON"}, "repositories": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key=\"TON\""}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/TON/avatar/32?ts=1659435975"}}, "created_on": "2022-08-02T10:26:15.177897+00:00", "updated_on": "2022-08-02T10:26:15.177911+00:00", "has_publicly_visible_repos": false}, {"type": "project", "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8e2022-11-06 14:16:58,122 - INFO - found
2022-11-06 14:16:58,122 - DEBUG - curl --silent -X GET -H 'Content-Type: application/json' -H 'Accept: application/json'  'https://api.bitbucket.org/2.0/repositories/m8fintech?q=project.key="PRDX"'
2022-11-06 14:16:58,573 - DEBUG - https://api.bitbucket.org:443 "GET /2.0/repositories/m8fintech?q=project.key=%22PRDX%22 HTTP/1.1" 200 None
2022-11-06 14:16:58,618 - DEBUG - HTTP: GET None -> 200 OK
2022-11-06 14:16:58,618 - DEBUG - HTTP: Response text -> {"values": [{"type": "repository", "full_name": "m8fintech/prdx-market-maker", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java"}, "pullrequests": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/pullrequests"}, "commits": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commits"}, "forks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/forks"}, "watchers": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/watchers"}, "branches": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/refs/branches"}, "tags": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/refs/tags"}, "downloads": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/downloads"}, "source": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/src"}, "clone": [{"name": "https", "href": "https://[email protected]/m8fintech/prdx-market-maker.git"}, {"name": "ssh", "href": "[email protected]:m8fintech/prdx-market-maker.git"}], "hooks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/hooks"}}, "name": "prdx-market-maker", "slug": "prdx-market-maker", "description": "", "scm": "git", "website": null, "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "is_private": true, "project": {"type": "project", "key": "PRDX", "uuid": "{0061c33b-5dd6-4149-9ef7-01854cda6e2e}", "name": "Roberto (Paramountdax)", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/PRDX"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/PRDX"}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/PRDX/avatar/32?ts=1588142726"}}}, "fork_policy": "no_public_forks", "created_on": "2020-04-29T06:46:35.544087+00:00", "updated_on": "2022-11-04T07:14:46.536367+00:00", "size": 6337416, "language": "java", "has_issues": false, "has_wiki": false, "uuid": "{965edb45-210e-4a13-8361-8a7fa33d35fd}", "mainbranch": {"name": "master", "type": "branch"}, "override_settings": {"default_merge_strategy": false, "branching_model": false}}, {"type": "repository", "full_name": "m8fintech/prdx-market-maker-ui", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker-ui"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B83ec99af-0ed7-4ff9-9b42-29f48ccf0e1e%7D?ts=default"}, "pullrequests": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/pullrequests"}, "commits": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/commits"}, "forks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/forks"}, "watchers": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/watchers"}, "branches": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/refs/branches"}, "tags": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/refs/tags"}, "downloads": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/downloads"}, "source": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/src"}, "clone": [{"name": "https", "href": "https://[email protected]/m8fintech/prdx-market-maker-ui.git"}, {"name": "ssh", "href": "[email protected]:m8fintech/prdx-market-maker-ui.git"}], "hooks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker-ui/hooks"}}, "name": "prdx-market-maker-ui", "slug": "prdx-market-maker-ui", "description": "", "scm": "git", "website": null, "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "is_private": true, "project": {"type": "project", "key": "PRDX", "uuid": "{0061c33b-5dd6-4149-9ef7-01854cda6e2e}", "name": "Roberto (Paramountdax)", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/PRDX"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/PRDX"}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/PRDX/avatar/32?ts=1588142726"}}}, "fork_policy": "no_public_forks", "created_on": "2020-07-20T08:01:00.171294+00:00", "updated_on": "2020-07-21T09:35:18.422888+00:00", "size": 38766298, "language": "", "has_issues": false, "has_wiki": false, "uuid": "{83ec99af-0ed7-4ff9-9b42-29f48ccf0e1e}", "mainbranch": {"name": "master", "type": "branch"}, "override_settings": {"default_merge_strategy": false, "branching_model": false}}, {"type": "repository", "full_name": "m8fintech/grid-trading-bot", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot"}, "html": {"href": "https://bitbucket.org/m8fintech/grid-trading-bot"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7Bdc46ee51-9f56-46f7-b456-b0d510abcead%7D?ts=java"}, "pullrequests": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/pullrequests"}, "commits": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/commits"}, "forks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/forks"}, "watchers": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/watchers"}, "branches": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/refs/branches"}, "tags": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/refs/tags"}, "downloads": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/downloads"}, "source": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/src"}, "clone": [{"name": "https", "href": "https://[email protected]/m8fintech/grid-trading-bot.git"}, {"name": "ssh", "href": "[email protected]:m8fintech/grid-trading-bot.git"}], "hooks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/grid-trading-bot/hooks"}}, "name": "grid-trading-bot", "slug": "grid-trading-bot", "description": "", "scm": "git", "website": null, "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "is_private": true, "project": {"type": "project", "key": "PRDX", "uuid": "{0061c33b-5dd6-4149-9ef7-01854cda6e2e}", "name": "Roberto (Paramountdax)", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/PRDX"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/PRDX"}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/PRDX/avatar/32?ts=1588142726"}}}, "fork_policy": "no_public_forks", "created_on": "2021-03-08T09:03:27.932819+00:00", "updated_on": "2022-05-02T05:51:38.921815+00:00", "size": 1931842, "language": "java", "has_issues": false, "has_wiki": false, "uuid": "{dc46ee51-9f56-46f7-b456-b0d510abcead}", "mainbranch": {"name": "master", "type": "branch"}, "override_settings": {"default_merge_strategy": false, "branching_model": false}}, {"type": "repository", "full_name": "m8fintech/rebalance-engine", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine"}, "html": {"href": "https://bitbucket.org/m8fintech/rebalance-engine"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7Bdee0bc43-840c-48e3-9cf2-fa22a7af9ee6%7D?ts=java"}, "pullrequests": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/pullrequests"}, "commits": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/commits"}, "forks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/forks"}, "watchers": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/watchers"}, "branches": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/refs/branches"}, "tags": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/refs/tags"}, "downloads": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/downloads"}, "source": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/src"}, "clone": [{"name": "https", "href": "https://[email protected]/m8fintech/rebalance-engine.git"}, {"name": "ssh", "href": "[email protected]:m8fintech/rebalance-engine.git"}], "hooks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/rebalance-engine/hooks"}}, "name": "rebalance-engine", "slug": "rebalance-engine", "description": "", "scm": "git", "website": null, "owner": {"display_name": "m8fintech", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D"}, "avatar": {"href": "https://bitbucket.org/account/m8fintech/avatar/"}, "html": {"href": "https://bitbucket.org/%7Bf6049ed6-ae3d-47b9-b8dc-8ee308227730%7D/"}}, "type": "team", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "username": "m8fintech"}, "workspace": {"type": "workspace", "uuid": "{f6049ed6-ae3d-47b9-b8dc-8ee308227730}", "name": "m8fintech", "slug": "m8fintech", "links": {"avatar": {"href": "https://bitbucket.org/workspaces/m8fintech/avatar/?ts=1587725539"}, "html": {"href": "https://bitbucket.org/m8fintech/"}, "self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech"}}}, "is_private": true, "project": {"type": "project", "key": "PRDX", "uuid": "{0061c33b-5dd6-4149-9ef7-01854cda6e2e}", "name": "Roberto (Paramountdax)", "links": {"self": {"href": "https://api.bitbucket.org/2.0/workspaces/m8fintech/projects/PRDX"}, "html": {"href": "https://bitbucket.org/m8fintech/workspace/projects/PRDX"}, "avatar": {"href": "https://bitbucket.org/account/user/m8fintech/projects/PRDX/avatar/32?ts=1588142726"}}}, "fork_policy": "no_public_forks", "created_on": "2021-04-07T14:25:13.062302+00:00", "updated_on": "2021-09-21T07:53:13.689576+00:00", "size": 1610813, "language": "java", "has_issues": false, "has_wiki": false, "uuid": "{dee0bc43-840c-48e3-9cf2-fa22a7af9ee6}", "mainbranch": {"name": "master", "type": "branch"}, "override_settings": {"default_merge_strategy": false, "branching_model": false}}, {"type": "repository", "full_name": "m8fintech/hedge-engine", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine"}, "html": {"href": "https://bitbucket.org/m8fintech/hedge-engine"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B2a3b9f59-a47c-4cdd-a231-a9f09657be6a%7D?ts=java"}, "pullrequests": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/pullrequests"}, "commits": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/commits"}, "forks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/forks"}, "watchers": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/watchers"}, "branches": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/refs/branches"}, "tags": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/refs/tags"}, "downloads": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/downloads"}, "source": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/src"}, "clone": [{"name": "https", "href": "https://[email protected]/m8fintech/hedge-engine.git"}, {"name": "ssh", "href": "[email protected]:m8fintech/hedge-engine.git"}], "hooks": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/hedge-engine/hooks"}}, "name": "hedge-engine", "slug": "hedge-engine", "description": "", "scm": "git", "website": null, "owner": {"display_name": "m8fintech", 2022-11-06 14:16:58,623 - DEBUG - curl --silent -X GET -H 'Content-Type: application/json' -H 'Accept: application/json'  'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commits/'
2022-11-06 14:16:59,422 - DEBUG - https://api.bitbucket.org:443 "GET /2.0/repositories/m8fintech/prdx-market-maker/commits/ HTTP/1.1" 200 None
2022-11-06 14:16:59,561 - DEBUG - HTTP: GET None -> 200 OK
2022-11-06 14:16:59,562 - DEBUG - HTTP: Response text -> {"values": [{"type": "commit", "hash": "01fafc5ac686d3100cb5364a9b1bc65d9c36603e", "date": "2022-11-03T07:12:40+00:00", "author": {"type": "author", "raw": "Krists Ķemers <[email protected]>", "user": {"display_name": "Krists Ķemers", "links": {"self": {"href": "https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D"}, "avatar": {"href": "https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png"}, "html": {"href": "https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/"}}, "type": "user", "uuid": "{18f51953-252b-4a54-a6f3-f470256e78f7}", "account_id": "5e9808363a8b910c085b396c", "nickname": "Krists Kemers"}}, "message": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key", "summary": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Bu fix - Fix null point exception on map key</p>"}, "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}, "diff": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}, "approve": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/approve"}, "comments": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/comments"}, "statuses": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/statuses"}, "patch": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}}, "parents": [{"type": "commit", "hash": "c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}}}], "rendered": {"message": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Bu fix - Fix null point exception on map key</p>"}}, "repository": {"type": "repository", "full_name": "m8fintech/prdx-market-maker", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java"}}, "name": "prdx-market-maker", "uuid": "{965edb45-210e-4a13-8361-8a7fa33d35fd}"}}, {"type": "commit", "hash": "c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf", "date": "2022-11-03T05:52:16+00:00", "author": {"type": "author", "raw": "Krists Ķemers <[email protected]>", "user": {"display_name": "Krists Ķemers", "links": {"self": {"href": "https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D"}, "avatar": {"href": "https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png"}, "html": {"href": "https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/"}}, "type": "user", "uuid": "{18f51953-252b-4a54-a6f3-f470256e78f7}", "account_id": "5e9808363a8b910c085b396c", "nickname": "Krists Kemers"}}, "message": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.", "summary": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending.</p>\n<p>Fix the order canceling bug.<br>\nAdd bulk order error.<br>\nRefactor code.</p>"}, "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "diff": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "approve": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/approve"}, "comments": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/comments"}, "statuses": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/statuses"}, "patch": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}}, "parents": [{"type": "commit", "hash": "90108b1ae6223ee6cc5a7a7cc6788fa93a83be03", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}}}], "rendered": {"message": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending.</p>\n<p>Fix the order canceling bug.<br>\nAdd bulk order error.<br>\nRefactor code.</p>"}}, "repository": {"type": "repository", "full_name": "m8fintech/prdx-market-maker", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java"}}, "name": "prdx-market-maker", "uuid": "{965edb45-210e-4a13-8361-8a7fa33d35fd}"}}, {"type": "commit", "hash": "90108b1ae6223ee6cc5a7a7cc6788fa93a83be03", "date": "2022-11-02T12:59:00+00:00", "author": {"type": "author", "raw": "Krists Ķemers <[email protected]>", "user": {"display_name": "Krists Ķemers", "links": {"self": {"href": "https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D"}, "avatar": {"href": "https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png"}, "html": {"href": "https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/"}}, "type": "user", "uuid": "{18f51953-252b-4a54-a6f3-f470256e78f7}", "account_id": "5e9808363a8b910c085b396c", "nickname": "Krists Kemers"}}, "message": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nChange bulk order logic - store orders in the map and remove from it on response.", "summary": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nChange bulk order logic - store orders in the map and remove from it on response.", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Change bulk order logic - store orders in the map and remove from it on response.</p>"}, "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}, "diff": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}, "approve": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03/approve"}, "comments": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03/comments"}, "statuses": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03/statuses"}, "patch": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}}, "parents": [{"type": "commit", "hash": "9646806e5ffcb815a68abb274cf9c8c4d2464819", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/9646806e5ffcb815a68abb274cf9c8c4d2464819"}}}], "rendered": {"message": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nChange bulk order logic - store orders in the map and remove from it on response.", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Change bulk order logic - store orders in the map and remove from it on response.</p>"}}, "repository": {"type": "repository", "full_name": "m8fintech/prdx-market-maker", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java"}}, "name": "prdx-market-maker", "uuid": "{965edb45-210e-4a13-8361-8a7fa33d35fd}"}}, {"type": "commit", "hash": "9646806e5ffcb815a68abb274cf9c8c4d2464819", "date": "2022-11-02T06:50:17+00:00", "author": {"type": "author", "raw": "Krists Ķemers <[email protected]>", "user": {"display_name": "Krists Ķemers", "links": {"self": {"href": "https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D"}, "avatar": {"href": "https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png"}, "html": {"href": "https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/"}}, "type": "user", "uuid": "{18f51953-252b-4a54-a6f3-f470256e78f7}", "account_id": "5e9808363a8b910c085b396c", "nickname": "Krists Kemers"}}, "message": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nAdd error and null point check for Canceled and placed balk order response\n\nAdd orderId validation on null", "summary": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nAdd error and null point check for Canceled and placed balk order response\n\nAdd orderId validation on null", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Add error and null point check for Canceled and placed balk order response</p>\n<p>Add orderId validation on null</p>"}, "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/9646806e5ffcb815a68abb274cf9c8c4d2464819"}, "diff": {2022-11-06 14:16:59,569 - DEBUG - curl --silent -X GET -H 'Content-Type: application/json' -H 'Accept: application/json'  'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e'
2022-11-06 14:17:00,784 - DEBUG - https://api.bitbucket.org:443 "GET /2.0/repositories/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e HTTP/1.1" 200 None
2022-11-06 14:17:01,258 - DEBUG - HTTP: GET 01fafc5ac686d3100cb5364a9b1bc65d9c36603e -> 200 OK
2022-11-06 14:17:01,259 - DEBUG - HTTP: Response text -> {"values": [{"type": "commit", "hash": "01fafc5ac686d3100cb5364a9b1bc65d9c36603e", "date": "2022-11-03T07:12:40+00:00", "author": {"type": "author", "raw": "Krists Ķemers <[email protected]>", "user": {"display_name": "Krists Ķemers", "links": {"self": {"href": "https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D"}, "avatar": {"href": "https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png"}, "html": {"href": "https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/"}}, "type": "user", "uuid": "{18f51953-252b-4a54-a6f3-f470256e78f7}", "account_id": "5e9808363a8b910c085b396c", "nickname": "Krists Kemers"}}, "message": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key", "summary": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Bu fix - Fix null point exception on map key</p>"}, "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}, "diff": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}, "approve": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/approve"}, "comments": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/comments"}, "statuses": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/statuses"}, "patch": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/01fafc5ac686d3100cb5364a9b1bc65d9c36603e"}}, "parents": [{"type": "commit", "hash": "c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}}}], "rendered": {"message": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Bu fix - Fix null point exception on map key</p>"}}, "repository": {"type": "repository", "full_name": "m8fintech/prdx-market-maker", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker"}, "avatar": {"href": "https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java"}}, "name": "prdx-market-maker", "uuid": "{965edb45-210e-4a13-8361-8a7fa33d35fd}"}}, {"type": "commit", "hash": "c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf", "date": "2022-11-03T05:52:16+00:00", "author": {"type": "author", "raw": "Krists Ķemers <[email protected]>", "user": {"display_name": "Krists Ķemers", "links": {"self": {"href": "https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D"}, "avatar": {"href": "https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png"}, "html": {"href": "https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/"}}, "type": "user", "uuid": "{18f51953-252b-4a54-a6f3-f470256e78f7}", "account_id": "5e9808363a8b910c085b396c", "nickname": "Krists Kemers"}}, "message": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.", "summary": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending.</p>\n<p>Fix the order canceling bug.<br>\nAdd bulk order error.<br>\nRefactor code.</p>"}, "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "diff": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}, "approve": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/approve"}, "comments": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/comments"}, "statuses": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/statuses"}, "patch": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf"}}, "parents": [{"type": "commit", "hash": "90108b1ae6223ee6cc5a7a7cc6788fa93a83be03", "links": {"self": {"href": "https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}, "html": {"href": "https://bitbucket.org/m8fintech/prdx-market-maker/commits/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03"}}}], "rendered": {"message": {"type": "rendered", "raw": "PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.", "markup": "markdown", "html": "<p><a rel=\"nofollow\" href=\"https://m8fintech.atlassian.net/browse/PRDX-767\" target=\"_blank\" data-module-key=\"dvcs-connector-issue-key-linker\" data-link-key=\"dvcs-connector-issue-key-linker\" data-app-key=\"jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9\" data-principal-uuid=\"{f6049ed6-ae3d-47b9-b8dc-8ee308227730}\" class=\"ap-connect-dialog\">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending.</p>\n<p>Fix the order canceling bug.<br>\nAdd bulk order error.<br>\nRefactor code.</p>"}}, "repository": {"type": "repository", "full_name": "m8fintech/prdx-market-maker", "links": {"self": {"href": "https://api.biprint here for Spacetown
{'values': [{'type': 'commit', 'hash': '01fafc5ac686d3100cb5364a9b1bc65d9c36603e', 'date': '2022-11-03T07:12:40+00:00', 'author': {'type': 'author', 'raw': 'Krists Ķemers <[email protected]>', 'user': {'display_name': 'Krists Ķemers', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D'}, 'avatar': {'href': 'https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png'}, 'html': {'href': 'https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/'}}, 'type': 'user', 'uuid': '{18f51953-252b-4a54-a6f3-f470256e78f7}', 'account_id': '5e9808363a8b910c085b396c', 'nickname': 'Krists Kemers'}}, 'message': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key', 'summary': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Bu fix - Fix null point exception on map key</p>'}, 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e'}, 'diff': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/01fafc5ac686d3100cb5364a9b1bc65d9c36603e'}, 'approve': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/approve'}, 'comments': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/comments'}, 'statuses': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/01fafc5ac686d3100cb5364a9b1bc65d9c36603e/statuses'}, 'patch': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/01fafc5ac686d3100cb5364a9b1bc65d9c36603e'}}, 'parents': [{'type': 'commit', 'hash': 'c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf'}}}], 'rendered': {'message': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nBu fix - Fix null point exception on map key', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Bu fix - Fix null point exception on map key</p>'}}, 'repository': {'type': 'repository', 'full_name': 'm8fintech/prdx-market-maker', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker'}, 'avatar': {'href': 'https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java'}}, 'name': 'prdx-market-maker', 'uuid': '{965edb45-210e-4a13-8361-8a7fa33d35fd}'}}, {'type': 'commit', 'hash': 'c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf', 'date': '2022-11-03T05:52:16+00:00', 'author': {'type': 'author', 'raw': 'Krists Ķemers <[email protected]>', 'user': {'display_name': 'Krists Ķemers', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D'}, 'avatar': {'href': 'https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png'}, 'html': {'href': 'https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/'}}, 'type': 'user', 'uuid': '{18f51953-252b-4a54-a6f3-f470256e78f7}', 'account_id': '5e9808363a8b910c085b396c', 'nickname': 'Krists Kemers'}}, 'message': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.', 'summary': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending.</p>\n<p>Fix the order canceling bug.<br>\nAdd bulk order error.<br>\nRefactor code.</p>'}, 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf'}, 'diff': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf'}, 'approve': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/approve'}, 'comments': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/comments'}, 'statuses': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf/statuses'}, 'patch': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/c0cbab990b9039c2fe6c1264e3a4ca74fa4b9cbf'}}, 'parents': [{'type': 'commit', 'hash': '90108b1ae6223ee6cc5a7a7cc6788fa93a83be03', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03'}}}], 'rendered': {'message': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending.\n\nFix the order canceling bug.\nAdd bulk order error.\nRefactor code.', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending.</p>\n<p>Fix the order canceling bug.<br>\nAdd bulk order error.<br>\nRefactor code.</p>'}}, 'repository': {'type': 'repository', 'full_name': 'm8fintech/prdx-market-maker', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker'}, 'avatar': {'href': 'https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java'}}, 'name': 'prdx-market-maker', 'uuid': '{965edb45-210e-4a13-8361-8a7fa33d35fd}'}}, {'type': 'commit', 'hash': '90108b1ae6223ee6cc5a7a7cc6788fa93a83be03', 'date': '2022-11-02T12:59:00+00:00', 'author': {'type': 'author', 'raw': 'Krists Ķemers <[email protected]>', 'user': {'display_name': 'Krists Ķemers', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D'}, 'avatar': {'href': 'https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png'}, 'html': {'href': 'https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/'}}, 'type': 'user', 'uuid': '{18f51953-252b-4a54-a6f3-f470256e78f7}', 'account_id': '5e9808363a8b910c085b396c', 'nickname': 'Krists Kemers'}}, 'message': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nChange bulk order logic - store orders in the map and remove from it on response.', 'summary': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nChange bulk order logic - store orders in the map and remove from it on response.', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Change bulk order logic - store orders in the map and remove from it on response.</p>'}, 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03'}, 'diff': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03'}, 'approve': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03/approve'}, 'comments': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03/comments'}, 'statuses': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03/statuses'}, 'patch': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/90108b1ae6223ee6cc5a7a7cc6788fa93a83be03'}}, 'parents': [{'type': 'commit', 'hash': '9646806e5ffcb815a68abb274cf9c8c4d2464819', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/9646806e5ffcb815a68abb274cf9c8c4d2464819'}}}], 'rendered': {'message': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nChange bulk order logic - store orders in the map and remove from it on response.', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Change bulk order logic - store orders in the map and remove from it on response.</p>'}}, 'repository': {'type': 'repository', 'full_name': 'm8fintech/prdx-market-maker', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker'}, 'avatar': {'href': 'https://bytebucket.org/ravatar/%7B965edb45-210e-4a13-8361-8a7fa33d35fd%7D?ts=java'}}, 'name': 'prdx-market-maker', 'uuid': '{965edb45-210e-4a13-8361-8a7fa33d35fd}'}}, {'type': 'commit', 'hash': '9646806e5ffcb815a68abb274cf9c8c4d2464819', 'date': '2022-11-02T06:50:17+00:00', 'author': {'type': 'author', 'raw': 'Krists Ķemers <[email protected]>', 'user': {'display_name': 'Krists Ķemers', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/users/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D'}, 'avatar': {'href': 'https://secure.gravatar.com/avatar/541d02f87504a1c32bd4edcc680afc6d?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FKK-1.png'}, 'html': {'href': 'https://bitbucket.org/%7B18f51953-252b-4a54-a6f3-f470256e78f7%7D/'}}, 'type': 'user', 'uuid': '{18f51953-252b-4a54-a6f3-f470256e78f7}', 'account_id': '5e9808363a8b910c085b396c', 'nickname': 'Krists Kemers'}}, 'message': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nAdd error and null point check for Canceled and placed balk order response\n\nAdd orderId validation on null', 'summary': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nAdd error and null point check for Canceled and placed balk order response\n\nAdd orderId validation on null', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data-module-key="dvcs-connector-issue-key-linker" data-link-key="dvcs-connector-issue-key-linker" data-app-key="jira-bitbucket-connector-plugin.9d7e39e7-e9c9-4e11-84f2-6af5686406f9" data-principal-uuid="{f6049ed6-ae3d-47b9-b8dc-8ee308227730}" class="ap-connect-dialog">PRDX-767</a>: Investigate and fix error state for MM which is using bulk order sending</p>\n<p>Add error and null point check for Canceled and placed balk order response</p>\n<p>Add orderId validation on null</p>'}, 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/9646806e5ffcb815a68abb274cf9c8c4d2464819'}, 'diff': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/diff/9646806e5ffcb815a68abb274cf9c8c4d2464819'}, 'approve': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819/approve'}, 'comments': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819/comments'}, 'statuses': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/9646806e5ffcb815a68abb274cf9c8c4d2464819/statuses'}, 'patch': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/patch/9646806e5ffcb815a68abb274cf9c8c4d2464819'}}, 'parents': [{'type': 'commit', 'hash': 'b037db23959c1e6fe6b387a93bced08c7456a811', 'links': {'self': {'href': 'https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commit/b037db23959c1e6fe6b387a93bced08c7456a811'}, 'html': {'href': 'https://bitbucket.org/m8fintech/prdx-market-maker/commits/b037db23959c1e6fe6b387a93bced08c7456a811'}}}], 'rendered': {'message': {'type': 'rendered', 'raw': 'PRDX-767: Investigate and fix error state for MM which is using bulk order sending\n\nAdd error and null point check for Canceled and placed balk order response\n\nAdd orderId validation on null', 'markup': 'markdown', 'html': '<p><a rel="nofollow" href="https://m8fintech.atlassian.net/browse/PRDX-767" target="_blank" data
Traceback (most recent call last):
  File "g:\My Drive\Internal\git projects\excel-python\excel\scheduled_db_tasks.py", line 358, in <module>
    bitbucket_cloud()
  File "g:\My Drive\Internal\git projects\excel-python\excel\scheduled_db_tasks.py", line 340, in bitbucket_cloud
    for commit in repository.commits.each():
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python311\Lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 38, in each
    yield self.__get_object(super(Commits, self).get(commit.get("hash")))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python311\Lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 16, in __get_object
    return Commit(data, **self._new_session_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python311\Lib\site-packages\atlassian\bitbucket\cloud\repositories\commits.py", line 65, in __init__
    super(Commit, self).__init__(None, *args, data=data, expected_type="commit", **kwargs)
  File "C:\Users\gunar\AppData\Local\Programs\Python\Python311\Lib\site-packages\atlassian\bitbucket\cloud\base.py", line 22, in __init__
    raise ValueError("Expected type of data is [{}], got [{}].".format(expected_type, self.get_data("type")))
ValueError: Expected type of data is [commit], got [None].

gunarskepe avatar Nov 06 '22 12:11 gunarskepe

Can you run curl https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e? According to https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commit-commit-get this should return a hash but in your log it is a list of commits.

Spacetown avatar Nov 06 '22 18:11 Spacetown

Can you run curl https://api.bitbucket.org/2.0/repositories/m8fintech/prdx-market-maker/commits/01fafc5ac686d3100cb5364a9b1bc65d9c36603e? According to https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commit-commit-get this should return a hash but in your log it is a list of commits.

I've checked it in my playground and I found the error in the each function. Also the property message uses the wrong data element. @flichtenheld was the usage of title instead of message intended?

Spacetown avatar Nov 06 '22 20:11 Spacetown

@Spacetown @sreway thanks for your work. Today I will deploy a new release. @gunarskepe thanks for the motivating people :)

gonchik avatar Nov 08 '22 06:11 gonchik

Hello,

Was this fix deployed yet? i am having the same problem and it is a big issue for my project.

Thank you very much.

yzislin avatar Nov 11 '22 14:11 yzislin

You can use the master branch until a new release is created.

Spacetown avatar Nov 11 '22 19:11 Spacetown

That's exactly what I am doing. It seems to work. Just curious, is there a plan to add more endpoints in this python module to pull more data from official REST API endpoints?

yzislin avatar Nov 11 '22 20:11 yzislin

Feel free to add the needed ones.

Spacetown avatar Nov 11 '22 23:11 Spacetown

I could recreate this. Could you provide a more elaborate steps to recreate the bug?

ben-mathu avatar Jul 19 '23 11:07 ben-mathu

It seems like the issue is occurring because the data parameter passed to the Commit constructor is None. Let's investigate why data is None in this context.

Looking at your debug logs, it seems that the data retrieved from the Bitbucket API is indeed returning commits. However, there could be an issue in how the data is being processed or passed to the Commit constructor.

Since the data parameter is None, it's failing at this line in the Commit constructor:

super(Commit, self).__init__(None, *args, data=data, expected_type="commit", **kwargs)

One possible reason for data being None could be due to an error in the way data is extracted from the response or the format in which it's expected.

Let's try to print out the data variable just before this line to see what it contains:

def __init__(self, data, *args, **kwargs):
    print("Data received in Commit constructor:", data)
    super(Commit, self).__init__(None, *args, data=data, expected_type="commit", **kwargs)

By adding this print statement, we can inspect the data variable and see if it's indeed None, and if so, we can trace back to find out why it's not being populated correctly.

imhunterand avatar Jun 10 '24 20:06 imhunterand

@gonchik This issue is solved.

Spacetown avatar Aug 20 '24 20:08 Spacetown