We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 371eb31 commit c00e9a7Copy full SHA for c00e9a7
CHANGELOG.md
@@ -1,5 +1,12 @@
1
# PyMagento Changelog
2
3
+## 2.10.0 (unreleased)
4
+
5
+### Breaking changes
6
7
+* `.max_redirects` now defaults to `0`. The Magento API should never redirect, so it’s safer to raise an error if it
8
+ does.
9
10
## 2.9.0 (2025/11/03)
11
12
### Breaking changes
magento/client.py
@@ -124,6 +124,9 @@ def __init__(self,
124
if batch_page_size is not None:
125
self.PAGE_SIZE = batch_page_size
126
127
+ # Redirects shouldn't happen on the API. If they do, raise a clear error so we can debug
128
+ self.max_redirects = 0
129
130
self.scope = scope
131
self.headers["Authorization"] = f"Bearer {token}"
132
0 commit comments