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
Critical/Blocker (select if the issue makes the application unusable or causes serious data loss)
High (select if the issue affects a major feature and there is no workaround or the available workaround is very complex)
Medium (select if the issue affects a minor feature or affects a major feature but has an easy enough workaround to not cause any major inconvenience)
Low (select if the issue doesn't significantly affect the user experience, like minor visual bugs)
Describe the bug
When calling APIClient.get_session() I get a TypeError("Cannot mix str and non-str arguments"). After some debugging I found a fix by converting the boolean self.verify to a string with str(self.verify).
Environment:
OS: [Ubuntu]
Version: [Ubuntu 22.04.4 LTS]
Reproduction Steps
Steps to reproduce the behavior:
Create a APIClient
Start a session
Call get_session()
Expected behavior
Return a dict with the session info.
Screenshots
None.
Contact Details
None.
The text was updated successfully, but these errors were encountered:
Your comment is correct, "verify" is a keyword argument, "self.verify" should therefore not be passed as a positional argument. "response = requests.get(self._get_url_api_v1(f"sessions/{id}"), verify=self.verify, headers=self.headers)" fixes the issue!
Severity
Describe the bug
When calling APIClient.get_session() I get a TypeError("Cannot mix str and non-str arguments"). After some debugging I found a fix by converting the boolean self.verify to a string with str(self.verify).
Environment:
Reproduction Steps
Steps to reproduce the behavior:
Expected behavior
Return a dict with the session info.
Screenshots
None.
Contact Details
None.
The text was updated successfully, but these errors were encountered: