(self, url, payload, response)
| 342 | return r.json() |
| 343 | |
| 344 | def _log_error(self, url, payload, response): |
| 345 | if len(payload) > 0: |
| 346 | logger.error( |
| 347 | f"ApiClient Error when calling the API on {url} with : {json.dumps(payload)}" |
| 348 | ) |
| 349 | else: |
| 350 | logger.error(f"ApiClient Error when calling the API on {url}") |
| 351 | logger.error( |
| 352 | f"ApiClient API return http code {response.status_code} and answer : {response.text}" |
| 353 | ) |
| 354 | |
| 355 | def close_experiment(self): |
| 356 | """ |
no outgoing calls
no test coverage detected