Skip to content

Commit 6105399

Browse files
nicolasbisurgiMariusWirtz
authored andcommitted
adding async_requests_mode=False to overcome incomplete response from endpoint
1 parent 66aa9d2 commit 6105399

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

TM1py/Services/GitService.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ def tm1project_delete(self):
4343
def tm1project_put(self, tm1_project: TM1Project) -> TM1Project:
4444
url = '/api/v1/!tm1project'
4545
body_json = tm1_project.body
46-
47-
response = self._rest.PUT(url=url, data=body_json)
46+
47+
# we need to ensure that async_requests_mode=False for this specific request as the response will not include
48+
# the Location field with the async_id.
49+
response = self._rest.PUT(url=url, data=body_json, async_requests_mode=False)
4850
return TM1Project.from_dict(response.json())
4951

5052
def git_init(self, git_url: str, deployment: str, username: str = None, password: str = None,

0 commit comments

Comments
 (0)