csu 2.6.16__tar.gz → 2.6.18__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {csu-2.6.16 → csu-2.6.18}/.bumpversion.cfg +1 -1
- {csu-2.6.16 → csu-2.6.18}/.cookiecutterrc +1 -1
- {csu-2.6.16 → csu-2.6.18}/PKG-INFO +3 -3
- {csu-2.6.16 → csu-2.6.18}/README.rst +2 -2
- {csu-2.6.16 → csu-2.6.18}/pyproject.toml +1 -1
- {csu-2.6.16 → csu-2.6.18}/src/csu/__init__.py +1 -1
- {csu-2.6.16 → csu-2.6.18}/src/csu/logging.py +4 -2
- {csu-2.6.16 → csu-2.6.18}/src/csu/service.py +9 -4
- {csu-2.6.16 → csu-2.6.18}/src/csu.egg-info/PKG-INFO +3 -3
- {csu-2.6.16 → csu-2.6.18}/tests/test_logging.py +39 -2
- {csu-2.6.16 → csu-2.6.18}/tests/test_service.py +9 -9
- {csu-2.6.16 → csu-2.6.18}/tox.ini +1 -0
- {csu-2.6.16 → csu-2.6.18}/.coveragerc +0 -0
- {csu-2.6.16 → csu-2.6.18}/.editorconfig +0 -0
- {csu-2.6.16 → csu-2.6.18}/.github/workflows/github-actions.yml +0 -0
- {csu-2.6.16 → csu-2.6.18}/.pre-commit-config.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/.tombi.toml +0 -0
- {csu-2.6.16 → csu-2.6.18}/AUTHORS.rst +0 -0
- {csu-2.6.16 → csu-2.6.18}/CHANGELOG.rst +0 -0
- {csu-2.6.16 → csu-2.6.18}/CONTRIBUTING.rst +0 -0
- {csu-2.6.16 → csu-2.6.18}/LICENSE +0 -0
- {csu-2.6.16 → csu-2.6.18}/MANIFEST.in +0 -0
- {csu-2.6.16 → csu-2.6.18}/ci/bootstrap.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/ci/requirements.txt +0 -0
- {csu-2.6.16 → csu-2.6.18}/ci/templates/.github/workflows/github-actions.yml +0 -0
- {csu-2.6.16 → csu-2.6.18}/pytest.ini +0 -0
- {csu-2.6.16 → csu-2.6.18}/setup.cfg +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/admin.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/conf.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/consts.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/__init__.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/auth.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/fields.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/forms.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/perms.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/phonenumber.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/serializers.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/test_auth.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/test_fields.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/test_forms.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/test_phonenumber.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/test_serializers.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/drf/views.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/enums.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/env.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/exceptions.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/export.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/fixups.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/forms/__init__.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/forms/crispy.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/forms/fields.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/gettext.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/gettext_lazy.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/locale/ro/LC_MESSAGES/django.mo +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/locale/ro/LC_MESSAGES/django.po +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/management.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/models.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/query.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/routers.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/templates/api_exception.html +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/templates/forms/widgets/opaquewidget.html +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_consts.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_env.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_management.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_service.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_timezones.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_utils.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/test_xml.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/timezones.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/utils.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/views.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/__init__.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/admin.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/asgi.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/engine.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/enums.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/job.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/models.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/worker/registry.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/wsgi.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu/xml.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu.egg-info/SOURCES.txt +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu.egg-info/dependency_links.txt +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu.egg-info/requires.txt +0 -0
- {csu-2.6.16 → csu-2.6.18}/src/csu.egg-info/top_level.txt +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_custom_context.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_custom_context_0_retries.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_decoding.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_error.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_logging.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_redirects.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service/test_success.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service_auth/test_async.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service_auth/test_async_auth.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service_auth/test_sync.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/cassettes/test_service_auth/test_sync_auth.yaml +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/conftest.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/exampleworker.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/test_exampleworker.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/test_exceptions.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/test_models.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/test_service_auth.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/test_views.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/test_worker.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/testproject/__init__.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/testproject/fixtures/testuser.json +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/testproject/models.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/testproject/settings.py +0 -0
- {csu-2.6.16 → csu-2.6.18}/tests/testproject/urls.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: csu
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.18
|
|
4
4
|
Summary: Clean Slate Utils - bunch of utility code, mostly Django/DRF specific.
|
|
5
5
|
Author-email: Ionel Cristian Mărieș <contact@ionelmc.ro>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -69,9 +69,9 @@ Overview
|
|
|
69
69
|
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/csu.svg
|
|
70
70
|
:alt: Supported implementations
|
|
71
71
|
:target: https://pypi.org/project/csu
|
|
72
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.6.
|
|
72
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.6.18.svg
|
|
73
73
|
:alt: Commits since latest release
|
|
74
|
-
:target: https://github.com/ionelmc/python-csu/compare/v2.6.
|
|
74
|
+
:target: https://github.com/ionelmc/python-csu/compare/v2.6.18...main
|
|
75
75
|
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/ionelmc/python-csu/main.svg
|
|
76
76
|
:alt: Scrutinizer Status
|
|
77
77
|
:target: https://scrutinizer-ci.com/g/ionelmc/python-csu/
|
|
@@ -34,9 +34,9 @@ Overview
|
|
|
34
34
|
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/csu.svg
|
|
35
35
|
:alt: Supported implementations
|
|
36
36
|
:target: https://pypi.org/project/csu
|
|
37
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.6.
|
|
37
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.6.18.svg
|
|
38
38
|
:alt: Commits since latest release
|
|
39
|
-
:target: https://github.com/ionelmc/python-csu/compare/v2.6.
|
|
39
|
+
:target: https://github.com/ionelmc/python-csu/compare/v2.6.18...main
|
|
40
40
|
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/ionelmc/python-csu/main.svg
|
|
41
41
|
:alt: Scrutinizer Status
|
|
42
42
|
:target: https://scrutinizer-ci.com/g/ionelmc/python-csu/
|
|
@@ -86,8 +86,10 @@ def trim_auth_info(auth_info, limit: int | None = LOGGING_AUTH_INFO_LIMIT):
|
|
|
86
86
|
def fa_append_repr(format: list[str], arguments: list, value, limit: int | None):
|
|
87
87
|
value = repr(value)
|
|
88
88
|
if limit and (size := len(value)) > limit:
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
prefix_limit = limit * 2 // 3
|
|
90
|
+
suffix_limit = limit - prefix_limit
|
|
91
|
+
format.append("%s\n ..(%s more)..\n %s")
|
|
92
|
+
arguments.extend((value[:prefix_limit], size - limit, value[-suffix_limit:]))
|
|
91
93
|
else:
|
|
92
94
|
format.append("%s")
|
|
93
95
|
arguments.append(value)
|
|
@@ -139,10 +139,13 @@ class HTTPServiceContext[RTYPE = HTTPServiceResponse]:
|
|
|
139
139
|
header = (trim_auth_info(request.headers.get("authorization", "")),)
|
|
140
140
|
|
|
141
141
|
if request.body:
|
|
142
|
+
body = repr(request.body)
|
|
142
143
|
size = len(request.body)
|
|
143
144
|
limit = self.log_request_body_limit
|
|
144
145
|
if limit and size > limit:
|
|
145
|
-
|
|
146
|
+
prefix_limit = limit * 2 // 3
|
|
147
|
+
suffix_limit = limit - prefix_limit
|
|
148
|
+
content = f"{body[:prefix_limit]}\n ..({size - limit} more)..\n {body[-suffix_limit:]}"
|
|
146
149
|
else:
|
|
147
150
|
content = f"{request.body!r}"
|
|
148
151
|
content_type = request.headers.get("content-type")
|
|
@@ -185,15 +188,17 @@ class HTTPServiceContext[RTYPE = HTTPServiceResponse]:
|
|
|
185
188
|
|
|
186
189
|
def handle_log_response(self, response: Response | AsyncResponse, content):
|
|
187
190
|
size = len(content) if content else 0
|
|
191
|
+
content = repr(content)
|
|
188
192
|
content_type = response.headers.get("content-type")
|
|
189
193
|
is_text = is_text_content_type(content_type or "text/")
|
|
190
194
|
content_type = "no content-type" if content_type is None else repr(content_type)
|
|
191
195
|
response_line = f" response body ({content_type} - {size} bytes) ".center(LINE_LENGTH, "-")
|
|
192
196
|
limit = self.log_response_text_limit if is_text else self.log_response_binary_limit
|
|
193
197
|
if limit and size > limit:
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
content = f"{content
|
|
198
|
+
prefix_limit = limit * 7 // 8
|
|
199
|
+
suffix_limit = limit - prefix_limit
|
|
200
|
+
content = f"{content[:prefix_limit]}\n ..({size - limit} more)..\n {content[-suffix_limit:]}"
|
|
201
|
+
|
|
197
202
|
if self.log_response_show_headers:
|
|
198
203
|
headers_line = " response headers ".center(LINE_LENGTH, "-")
|
|
199
204
|
headers = "\n ".join(f"{k}: {v!r}" for k, v in sorted(response.headers.items()))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: csu
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.18
|
|
4
4
|
Summary: Clean Slate Utils - bunch of utility code, mostly Django/DRF specific.
|
|
5
5
|
Author-email: Ionel Cristian Mărieș <contact@ionelmc.ro>
|
|
6
6
|
License-Expression: BSD-2-Clause
|
|
@@ -69,9 +69,9 @@ Overview
|
|
|
69
69
|
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/csu.svg
|
|
70
70
|
:alt: Supported implementations
|
|
71
71
|
:target: https://pypi.org/project/csu
|
|
72
|
-
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.6.
|
|
72
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/ionelmc/python-csu/v2.6.18.svg
|
|
73
73
|
:alt: Commits since latest release
|
|
74
|
-
:target: https://github.com/ionelmc/python-csu/compare/v2.6.
|
|
74
|
+
:target: https://github.com/ionelmc/python-csu/compare/v2.6.18...main
|
|
75
75
|
.. |scrutinizer| image:: https://img.shields.io/scrutinizer/quality/g/ionelmc/python-csu/main.svg
|
|
76
76
|
:alt: Scrutinizer Status
|
|
77
77
|
:target: https://scrutinizer-ci.com/g/ionelmc/python-csu/
|
|
@@ -9,8 +9,45 @@ def test_fa_append_repr():
|
|
|
9
9
|
a = []
|
|
10
10
|
b = []
|
|
11
11
|
assert fa_append_repr(a, b, "123456", 3) is None
|
|
12
|
-
assert a == snapshot(
|
|
13
|
-
|
|
12
|
+
assert a == snapshot(
|
|
13
|
+
[
|
|
14
|
+
"""\
|
|
15
|
+
%s
|
|
16
|
+
..(%s more)..
|
|
17
|
+
%s\
|
|
18
|
+
"""
|
|
19
|
+
]
|
|
20
|
+
)
|
|
21
|
+
assert b == snapshot(["'1", 5, "'"])
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def test_fa_append_repr_long():
|
|
25
|
+
a = []
|
|
26
|
+
b = []
|
|
27
|
+
assert (
|
|
28
|
+
fa_append_repr(
|
|
29
|
+
a,
|
|
30
|
+
b,
|
|
31
|
+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c"
|
|
32
|
+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c"
|
|
33
|
+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c"
|
|
34
|
+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c"
|
|
35
|
+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c"
|
|
36
|
+
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~ \t\n\r\x0b\x0c",
|
|
37
|
+
80,
|
|
38
|
+
)
|
|
39
|
+
is None
|
|
40
|
+
)
|
|
41
|
+
assert a == snapshot(
|
|
42
|
+
[
|
|
43
|
+
"""\
|
|
44
|
+
%s
|
|
45
|
+
..(%s more)..
|
|
46
|
+
%s\
|
|
47
|
+
"""
|
|
48
|
+
]
|
|
49
|
+
)
|
|
50
|
+
assert b == snapshot(["'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOP", 588, "[\\\\]^_`{|}~ \\t\\n\\r\\x0b\\x0c'"])
|
|
14
51
|
|
|
15
52
|
|
|
16
53
|
def test_get_request_line():
|
|
@@ -326,7 +326,7 @@ json.decoder.JSONDecodeError: Expecting value: line 2 column 5 (char 5)
|
|
|
326
326
|
During handling of the above exception, another exception occurred:
|
|
327
327
|
|
|
328
328
|
Traceback (most recent call last):
|
|
329
|
-
File "[&SERVICE_PATH]", line
|
|
329
|
+
File "[&SERVICE_PATH]", line 246, in handle_process_response
|
|
330
330
|
json = response.json(parse_float=Decimal)
|
|
331
331
|
File "[&MODELS_PATH]", line 1596, in json
|
|
332
332
|
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
|
|
@@ -341,10 +341,10 @@ Traceback (most recent call last):
|
|
|
341
341
|
File "[&TEST_PATH]", line 78, in json
|
|
342
342
|
return ctx.request("GET", "status/418", accept_statuses=[418]).json
|
|
343
343
|
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
344
|
-
File "[&SERVICE_PATH]", line
|
|
344
|
+
File "[&SERVICE_PATH]", line 328, in request
|
|
345
345
|
return self.handle_process_response(response, expect_json=expect_json)
|
|
346
346
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
347
|
-
File "[&SERVICE_PATH]", line
|
|
347
|
+
File "[&SERVICE_PATH]", line 248, in handle_process_response
|
|
348
348
|
raise DecodeError(response, exc, event_id=self.event_id) from exc
|
|
349
349
|
csu.exceptions.DecodeError: DecodeError(JSONDecodeError('Expecting value: line 2 column 5 (char 5)'), response=<Response Dummy [418]>)
|
|
350
350
|
(418, b'\\n -=[ teapot ]=-\\n\\n _...._\\n .\\' _ _ `.\\n | ."` ^ `". _,\\n \\\\_;`"---"`|//\\n | ;/\\n \\\\_ _/\\n `"""`\\n')
|
|
@@ -406,7 +406,7 @@ Traceback (most recent call last):
|
|
|
406
406
|
File "[&TEST_PATH]", line 47, in error
|
|
407
407
|
return ctx.request("GET", "status/599", expect_json=False)
|
|
408
408
|
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
409
|
-
File "[&SERVICE_PATH]", line
|
|
409
|
+
File "[&SERVICE_PATH]", line 327, in request
|
|
410
410
|
raise UnexpectedStatusError(response, accept_statuses, event_id=self.event_id)
|
|
411
411
|
csu.exceptions.UnexpectedStatusError: UnexpectedStatusError(<Response Dummy [599]>, accept_statuses=[200])
|
|
412
412
|
(599, b'')
|
|
@@ -701,31 +701,31 @@ ERROR | (renderer: NoneType)
|
|
|
701
701
|
| ...<6 lines>...
|
|
702
702
|
| accept_statuses=[999],
|
|
703
703
|
| )
|
|
704
|
-
| File "[&SERVICE_PATH]", line
|
|
704
|
+
| File "[&SERVICE_PATH]", line 339, in request
|
|
705
705
|
| raise ExhaustedRetriesError(retry_budget, retry_failures, event_id=self.event_id)
|
|
706
706
|
| csu.exceptions.ExhaustedRetriesError: ExhaustedRetriesError(3)
|
|
707
707
|
| ([RetryableStatusError('200 not in [999] but in [200]', 200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"3","retry_count":"0","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=3&retry_count=0&retry_statuses={200}"}\\n', event_id=PCC00001000), RetryableStatusError('200 not in [999] but in [200]', 200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"2","retry_count":"1","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=2&retry_count=1&retry_statuses={200}"}\\n', event_id=PCC00001000), RetryableStatusError('200 not in [999] but in [200]', 200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"1","retry_count":"2","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=1&retry_count=2&retry_statuses={200}"}\\n', event_id=PCC00001000), RetryableStatusError('200 not in [999] but in [200]', 200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"0","retry_count":"3","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=0&retry_count=3&retry_statuses={200}"}\\n', event_id=PCC00001000)],)
|
|
708
708
|
+-+---------------- 1 ----------------
|
|
709
709
|
| Traceback (most recent call last):
|
|
710
|
-
| File "[&SERVICE_PATH]", line
|
|
710
|
+
| File "[&SERVICE_PATH]", line 325, in request
|
|
711
711
|
| raise RetryableStatusError(response, accept_statuses, retry_statuses, event_id=self.event_id)
|
|
712
712
|
| csu.exceptions.RetryableStatusError: RetryableStatusError(<Response Dummy [200]>, accept_statuses=[999], retry_statuses=[200])
|
|
713
713
|
| (200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"3","retry_count":"0","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=3&retry_count=0&retry_statuses={200}"}\\n')
|
|
714
714
|
+---------------- 2 ----------------
|
|
715
715
|
| Traceback (most recent call last):
|
|
716
|
-
| File "[&SERVICE_PATH]", line
|
|
716
|
+
| File "[&SERVICE_PATH]", line 325, in request
|
|
717
717
|
| raise RetryableStatusError(response, accept_statuses, retry_statuses, event_id=self.event_id)
|
|
718
718
|
| csu.exceptions.RetryableStatusError: RetryableStatusError(<Response Dummy [200]>, accept_statuses=[999], retry_statuses=[200])
|
|
719
719
|
| (200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"2","retry_count":"1","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=2&retry_count=1&retry_statuses={200}"}\\n')
|
|
720
720
|
+---------------- 3 ----------------
|
|
721
721
|
| Traceback (most recent call last):
|
|
722
|
-
| File "[&SERVICE_PATH]", line
|
|
722
|
+
| File "[&SERVICE_PATH]", line 325, in request
|
|
723
723
|
| raise RetryableStatusError(response, accept_statuses, retry_statuses, event_id=self.event_id)
|
|
724
724
|
| csu.exceptions.RetryableStatusError: RetryableStatusError(<Response Dummy [200]>, accept_statuses=[999], retry_statuses=[200])
|
|
725
725
|
| (200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"1","retry_count":"2","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=1&retry_count=2&retry_statuses={200}"}\\n')
|
|
726
726
|
+---------------- 4 ----------------
|
|
727
727
|
| Traceback (most recent call last):
|
|
728
|
-
| File "[&SERVICE_PATH]", line
|
|
728
|
+
| File "[&SERVICE_PATH]", line 325, in request
|
|
729
729
|
| raise RetryableStatusError(response, accept_statuses, retry_statuses, event_id=self.event_id)
|
|
730
730
|
| csu.exceptions.RetryableStatusError: RetryableStatusError(<Response Dummy [200]>, accept_statuses=[999], retry_statuses=[200])
|
|
731
731
|
| (200, b'{"args":{"accept_statuses":"{999}","expect_json":"true","follow_redirects":"false","foo":"bar","retries_left":"0","retry_count":"3","retry_statuses":"{200}"},"data":"config={\\'custom\\': \\'config\\'}","files":{},"form":{},"headers":{"Accept":"*/*","Accept-Encoding":"gzip, deflate, br","Connection":"keep-alive","Content-Length":"27","Host":"127.0.0.1:12345","User-Agent":"python-httpx/0.X.X"},"json":null,"method":"POST","origin":"127.0.0.1","url":"http://127.0.0.1:12345/anything?foo=bar&accept_statuses={999}&expect_json=true&follow_redirects=false&retries_left=0&retry_count=3&retry_statuses={200}"}\\n')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|