Commit 0d9567c
authored
Runpod: update
* Use `requests.Session`
* Pass API token as a header, not a query param. Prevents token leakage
through logs:
requests.exceptions.ConnectionError: Max retries exceeded with url:
/graphql?api_key=rpa_xxxxx (Caused by ...)RunpodApiClient (#3847)1 parent 2e9c684 commit 0d9567c
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
353 | 354 | | |
354 | 355 | | |
355 | 356 | | |
356 | | - | |
| 357 | + | |
357 | 358 | | |
358 | | - | |
| 359 | + | |
359 | 360 | | |
360 | 361 | | |
361 | 362 | | |
| |||
0 commit comments