internal 1.0.21__py3-none-any.whl → 1.0.22__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.

Potentially problematic release.


This version of internal might be problematic. Click here for more details.

internal/http/requests.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import httpx
2
2
 
3
3
  from fastapi import FastAPI
4
+ from fastapi.encoders import jsonable_encoder
4
5
 
5
6
  from ..exception.internal_exception import GatewayTimeoutException, BadGatewayException
6
7
 
@@ -19,6 +20,9 @@ async def async_request(app: FastAPI, method, url, current_user: dict = None, **
19
20
 
20
21
  try:
21
22
  async with httpx.AsyncClient(timeout=timeout, verify=False) as client:
23
+ if "json" in kwargs:
24
+ kwargs["json"] = jsonable_encoder(kwargs["json"])
25
+
22
26
  app.state.logger.info(f"async_request() request, url: {url}, method: {method}, kwargs: {kwargs}")
23
27
  response = await client.request(method, url, **kwargs)
24
28
  app.state.logger.info(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: internal
3
- Version: 1.0.21
3
+ Version: 1.0.22
4
4
  Summary:
5
5
  Author: Ray
6
6
  Author-email: ray@cruisys.com
@@ -17,7 +17,7 @@ internal/ext/amazon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
17
17
  internal/ext/amazon/aws/__init__.py,sha256=2YFjb-rHG1JaZGZiZffYDesgTAJjDshOqQbswOYzhP8,834
18
18
  internal/ext/amazon/aws/const.py,sha256=l4WMg5bKWujwOKABBkCO2zclNg3abnYOfbhD7DG8GsA,109
19
19
  internal/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- internal/http/requests.py,sha256=C2MfPaRcFuF8p52aPwtOyzXQEVu5MWMY8UUCrggxONw,1675
20
+ internal/http/requests.py,sha256=4Mdu_HIGDEgpgey8IPusqBn9s-3-oYGU0S49NK-khc4,1821
21
21
  internal/http/responses.py,sha256=bB1hYLUA3wlQg-8l5dLgI___bTcey1pLwyXS3wMgZQ8,2145
22
22
  internal/interface/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  internal/interface/base_interface.py,sha256=R5MmO5oa5-ORPV_adkegLVCwsVio2zFOuQFGiby3khs,340
@@ -27,6 +27,6 @@ internal/model/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  internal/model/base_model.py,sha256=wnAKz21bXcbR4QqENc1_hKbUkzc8a8aT8oyhS9WT7kw,3032
28
28
  internal/model/operate.py,sha256=luEoP_Asvso_11qz1SAE1Kn5KxAnDRptM0VylC5tNik,1493
29
29
  internal/utils.py,sha256=0SubS0iUhDvjSX1F4TykasA5-enYJzt2VH-f7_0BnjI,1509
30
- internal-1.0.21.dist-info/METADATA,sha256=aJIdqzo01B9rn2zZctrCEZgSLkr8sQltxcxaamZnrUU,625
31
- internal-1.0.21.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
- internal-1.0.21.dist-info/RECORD,,
30
+ internal-1.0.22.dist-info/METADATA,sha256=tIm3JoQ8GMLOwXu14-Edppvrhg4_OYRI4b0MJyAyjJE,625
31
+ internal-1.0.22.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
32
+ internal-1.0.22.dist-info/RECORD,,