-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tm1project_put in GitService not working properly #872
Comments
Thanks for raising the issue. I agree. Your suggested fix seems the most appropriate solution to the problem. |
Good question: I checked against our OnPrem (same PA version as cloud but running on RHEL) and it does not fail, the only connection parameter that differs from the one to cloud is the ssl as it is set to False in our OnPrem installations. |
I doubt it's related to the SSL. I think most likely due to the implementation of the TM1 API in PAoC. I have seen on multiple occasions that the API behaved slightly more fragile than on-premise. For instance, when using |
Hi @MariusWirtz , |
Thank you! Please open a PR for the fix. Yes, raising a ticket with IBM will be a good long-term solution. |
Hi @MariusWirtz ,
Though I understand the PREFERENTIAL behavior of the asyn-request, I find it a bit hard to understand why this function (PUT tm1project) is the only one facing this issue; does it mean that all other functions that TM1Py executes with respond-async are honored by the service and this one does not? Do we have a proper handling of the 202 return code for async requests? |
Thank you.
Yes! I think we must change the implementation of the async response handling in TM1py so that, potentially, the request returns a normal response instead of async-id, even though this is the only function that behaves this way. |
Solved with 6105399 |
Describe the bug
When attempting to put a tm1project using the tm1project_put function under GitService, I get an error message stating:
This happens ONLY when
async_requests_mode=True
.To Reproduce
To Avoid This Behavior
Under the GitService.py you can force the PUT function to use
async_requests_mode=False
:Expected behavior
The response from the server does not have a Location section in its headers, so I'm not sure if the response if wrong or if we should not expect it at all thus, enforce the
async_requests_mode=False
in the function above.At any point, the value of
async_request_mode
should not be relevant for this operation.Version
TM1py 1.10.2
TM1 Server Version: 11.8.01700.1
The text was updated successfully, but these errors were encountered: