Illegal class passed as substitution, found <class 'pendulum.date.Date'> at col: 109 #4644
-
ERROR:consumer.energy_foresight_consumer:Illegal class passed as substitution, found <class 'pendulum.date.Date'> at col: 109
Traceback (most recent call last):
File "C:\Projects\icis-openapi-kiota\examples\Python\consumer\energy_foresight_consumer.py", line 122, in consume_demand
items = await self.api_client.demand.get(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\icis-openapi-kiota\examples\Python\energyforesight\demand\demand_request_builder.py", line 63, in get
return await self.request_adapter.send_async(request_info, DemandGetResponse, error_mapping)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Projects\icis-openapi-kiota\examples\Python\vEnv\Lib\site-packages\kiota_http\httpx_request_adapter.py", line 178, in send_async
response = await self.get_http_response_message(request_info, parent_span)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Python Kiota bug? I have nothing extra.... just simple vEnv with the following requirements.txt
|
Beta Was this translation helpful? Give feedback.
Answered by
andrueastman
May 13, 2024
Replies: 1 comment 3 replies
-
Thanks for raising this @pjmagee I suspect the error is thrown at https://github.com/std-uritemplate/std-uritemplate/blob/a85ad5c8a246f838769dc7792c8567b003eea330/python/stduritemplate/__init__.py#L316 Any chance you can share the openApi description or confirm if the request to the endpoint is taking a |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for confirming. This issue is related to microsoft/kiota-python#245. We also need to handled Date types similar to Guid values.
Would you be willing to submit a PR to fix this in the library?