edri 2025.11.1rc1__py3-none-any.whl → 2025.11.1rc2__py3-none-any.whl

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.
edri/api/listener.py CHANGED
@@ -179,25 +179,29 @@ class Listener(Process):
179
179
  })
180
180
  return
181
181
 
182
- try:
183
- await handler.parse_body(event_constructor)
184
- except Exception as e:
185
- self.logger.error("Parse of body failed", exc_info=e)
186
- reasons = [{
187
- "status_code": HTTPStatus.BAD_REQUEST,
188
- "message": "Parse of body failed",
189
- }]
190
- current_exception = e
191
- while current_exception:
192
- reasons.append({
193
- "message": str(current_exception)
194
- })
195
- # Move to the next exception in the chain
196
- current_exception = current_exception.__context__
197
- await handler.response_error(HTTPStatus.BAD_REQUEST, {
198
- "reasons": reasons
199
- })
200
- return
182
+ content_lengths = handler.headers.get("content-length")
183
+ if content_lengths:
184
+ content_length = int(content_lengths[0])
185
+ if content_length > 0:
186
+ try:
187
+ await handler.parse_body(event_constructor)
188
+ except Exception as e:
189
+ self.logger.error("Parse of body failed", exc_info=e)
190
+ reasons = [{
191
+ "status_code": HTTPStatus.BAD_REQUEST,
192
+ "message": "Parse of body failed",
193
+ }]
194
+ current_exception = e
195
+ while current_exception:
196
+ reasons.append({
197
+ "message": str(current_exception),
198
+ })
199
+ current_exception = current_exception.__context__
200
+ await handler.response_error(HTTPStatus.BAD_REQUEST, {
201
+ "reasons": reasons
202
+ })
203
+ return
204
+
201
205
  # Create Event
202
206
  try:
203
207
  event = handler.create_event(event_constructor)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: edri
3
- Version: 2025.11.1rc1
3
+ Version: 2025.11.1rc2
4
4
  Summary: Event Driven Routing Infrastructure
5
5
  Author: Marek Olšan
6
6
  Author-email: marek.olsan@gmail.com
@@ -10,7 +10,7 @@ edri/abstract/worker/worker_process.py,sha256=QiNxOuwkMds0sV2MBLyp7bjrovm5xColC7
10
10
  edri/abstract/worker/worker_thread.py,sha256=xoMPuDn-hAkWk6kFY3Xf8mxOVP__5t7-x7f-b396-8M,2176
11
11
  edri/api/__init__.py,sha256=ZDxCpHKFGajJ1RwDpV7CzxLDUaKpozJRfOCv1OPv5ZY,142
12
12
  edri/api/broker.py,sha256=6O-B2Io7WF9KPXJCXsCzcyxpwjieIx5vqR06cSEi1oI,37276
13
- edri/api/listener.py,sha256=zlWliNjHEPQ7F1g_i-aRAakTZawaSCQKYyCYzlIbN90,20021
13
+ edri/api/listener.py,sha256=QaBlrlWH8j5OsD0mFMeTd95eP2nq7J-B6FCPL9OtFac,20289
14
14
  edri/api/middleware.py,sha256=6_x55swthVDczT-fu_1ufY1cDsHTZ04jMx6J6xfjbsM,5483
15
15
  edri/api/dataclass/__init__.py,sha256=8Y-zcaJtzMdALnNG7M9jsCaB1qAJKM8Ld3h9MDajYjA,292
16
16
  edri/api/dataclass/api_event.py,sha256=NzS-BCw9DYy3QGlLJVDmL7RyJ0yH8stKcV_3io6sa3w,6085
@@ -156,7 +156,7 @@ tests/utility/test_validation.py,sha256=OEM9hGzlFoSvZdwf5_pyH-Xg9ISxw0QJFbgMaDP8
156
156
  tests/utility/manager/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
157
157
  tests/utility/manager/test_scheduler.py,sha256=sROffYvSOaWsYQxQGTy6l9Mn_qeNPRmJoXLVPKU3XNY,9153
158
158
  tests/utility/manager/test_store.py,sha256=xlo1JUsPLIhPJyQn7AXldAgWDo_O8ba2ns25TEaaGdQ,2821
159
- edri-2025.11.1rc1.dist-info/METADATA,sha256=jmz9RW0qiyHSTTzFrkG-t27E81VAwjajriXyxgQO7G0,8346
160
- edri-2025.11.1rc1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
161
- edri-2025.11.1rc1.dist-info/top_level.txt,sha256=himES6JgPlx4Zt8aDrQEj2fxAd7IDD6MBOsiNZkzKHQ,11
162
- edri-2025.11.1rc1.dist-info/RECORD,,
159
+ edri-2025.11.1rc2.dist-info/METADATA,sha256=Znv_9pH-YVrYGlhn9lN31KKpT-fSrrOkMj2sg4La034,8346
160
+ edri-2025.11.1rc2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
161
+ edri-2025.11.1rc2.dist-info/top_level.txt,sha256=himES6JgPlx4Zt8aDrQEj2fxAd7IDD6MBOsiNZkzKHQ,11
162
+ edri-2025.11.1rc2.dist-info/RECORD,,