payi 0.1.0a118__py3-none-any.whl → 0.1.0a120__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 payi might be problematic. Click here for more details.

payi/_version.py CHANGED
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "payi"
4
- __version__ = "0.1.0-alpha.118" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.120" # x-release-please-version
payi/lib/instrument.py CHANGED
@@ -571,7 +571,7 @@ class _PayiInstrumentor:
571
571
  # Try to get the response body as JSON
572
572
  body = e.body
573
573
  if body is None:
574
- self._logger.error("APIStatusError response has no body attribute")
574
+ self._logger.warning(f"Pay-i ingest exception {e}, status {e.status_code} has no body")
575
575
  return XproxyError(code="unknown_error", message=str(e))
576
576
 
577
577
  # If body is bytes, decode to string
@@ -585,8 +585,9 @@ class _PayiInstrumentor:
585
585
  if not body_dict:
586
586
  try:
587
587
  body_dict = json.loads(body) # type: ignore
588
- except Exception as json_ex:
589
- self._logger.error(f"Failed to parse response body as JSON: {json_ex}")
588
+ except Exception:
589
+ body_type = type(body).__name__ # type: ignore
590
+ self._logger.warning(f"Pay-i ingest exception {e}, status {e.status_code} cannot parse response JSON body for body type {body_type}")
590
591
  return XproxyError(code="invalid_json", message=str(e))
591
592
 
592
593
  xproxy_error = body_dict.get("xproxy_error", {})
@@ -595,7 +596,7 @@ class _PayiInstrumentor:
595
596
  return XproxyError(code=code, message=message)
596
597
 
597
598
  except Exception as ex:
598
- self._logger.error(f"Exception in _process_api_status_error: {ex}")
599
+ self._logger.warning(f"Pay-i ingest exception {e}, status {e.status_code} processing handled exception {ex}")
599
600
  return XproxyError(code="exception", message=str(ex))
600
601
 
601
602
  def _ingest_units_worker(self, request: _ProviderRequest) -> Optional[Union[XproxyResult, XproxyError]]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a118
3
+ Version: 0.1.0a120
4
4
  Summary: The official Python library for the payi API
5
5
  Project-URL: Homepage, https://github.com/Pay-i/pay-i-python
6
6
  Project-URL: Repository, https://github.com/Pay-i/pay-i-python
@@ -11,7 +11,7 @@ payi/_resource.py,sha256=j2jIkTr8OIC8sU6-05nxSaCyj4MaFlbZrwlyg4_xJos,1088
11
11
  payi/_response.py,sha256=rh9oJAvCKcPwQFm4iqH_iVrmK8bNx--YP_A2a4kN1OU,28776
12
12
  payi/_streaming.py,sha256=Z_wIyo206T6Jqh2rolFg2VXZgX24PahLmpURp0-NssU,10092
13
13
  payi/_types.py,sha256=2pzimmgO1SZhjEsqgq0eOheAFRCdT4qakXMZm8cGeI0,7294
14
- payi/_version.py,sha256=J2yZW7ac0_TIjzZBm13WClbFoPqUwzI0MqI0RXSmQzo,166
14
+ payi/_version.py,sha256=wMcp0NC3v4U3pRqvnd0vjCrWDDrhbHC3vodjPYOGmyo,166
15
15
  payi/pagination.py,sha256=k2356QGPOUSjRF2vHpwLBdF6P-2vnQzFfRIJQAHGQ7A,1258
16
16
  payi/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  payi/_utils/__init__.py,sha256=7fch0GT9zpNnErbciSpUNa-SjTxxjY6kxHxKMOM4AGs,2305
@@ -35,7 +35,7 @@ payi/lib/Stopwatch.py,sha256=7OJlxvr2Jyb6Zr1LYCYKczRB7rDVKkIR7gc4YoleNdE,764
35
35
  payi/lib/VertexInstrumentor.py,sha256=OWuMPiW4LdLhj6DSAAy5qZiosVo8DSAuFWGxYpEucoE,7431
36
36
  payi/lib/VertexRequest.py,sha256=42F7xCRYY6h3EMUZD1x4-_cwyAcVhnzT9M5zl4KwtE0,11801
37
37
  payi/lib/helpers.py,sha256=jcMyxsuWmyPymDCYmDbQAb6IgbkmkiiNUaxeEPkCKZs,4457
38
- payi/lib/instrument.py,sha256=ifiRiXoha71X2H_du5yRSdVpJmt7A1e7BCMbI99pMSs,77212
38
+ payi/lib/instrument.py,sha256=dMbiy2DMJVE5K4TyS751jq7MA3It4Rt3OuNAitUQ65w,77392
39
39
  payi/lib/version_helper.py,sha256=v0lC3kuaXn6PBDolE3mkmwJiA8Ot3z4RkVR7wlBuZCs,540
40
40
  payi/lib/data/cohere_embed_english_v3.json,sha256=YEWwjml3_i16cdsOx_7UKe6xpVFnxTEhP8T1n54R6gY,718306
41
41
  payi/resources/__init__.py,sha256=B2bn1ZfCf6TbHlzZvy5TpFPtALnFcBRPYVKQH3S5qfQ,2457
@@ -142,7 +142,7 @@ payi/types/use_cases/definitions/kpi_retrieve_response.py,sha256=uQXliSvS3k-yDYw
142
142
  payi/types/use_cases/definitions/kpi_update_params.py,sha256=jbawdWAdMnsTWVH0qfQGb8W7_TXe3lq4zjSRu44d8p8,373
143
143
  payi/types/use_cases/definitions/kpi_update_response.py,sha256=zLyEoT0S8d7XHsnXZYT8tM7yDw0Aze0Mk-_Z6QeMtc8,459
144
144
  payi/types/use_cases/definitions/limit_config_create_params.py,sha256=sodtLT84tBmuO_0d-h0CZWCh4vWojJMtUbMjBmEN3IE,492
145
- payi-0.1.0a118.dist-info/METADATA,sha256=5XR7vidFVfH3Xbdqd0HEGx0mH09koNDEggOxBm4eXdw,16324
146
- payi-0.1.0a118.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
147
- payi-0.1.0a118.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
148
- payi-0.1.0a118.dist-info/RECORD,,
145
+ payi-0.1.0a120.dist-info/METADATA,sha256=Fc7JERYnFWRNLE3jYMnEsE_on6ur-lWMDrFn4maNv6s,16324
146
+ payi-0.1.0a120.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
147
+ payi-0.1.0a120.dist-info/licenses/LICENSE,sha256=CQt03aM-P4a3Yg5qBg3JSLVoQS3smMyvx7tYg_6V7Gk,11334
148
+ payi-0.1.0a120.dist-info/RECORD,,