You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to pull gNMI data from a network device. The actually gnmi stuff was tested and works but my issue comes up at the end of the example code. The variable 'telemetry_entry' is just a dict, 'returnThis' is an array of all the 'telemetry_entry's, so an array of dicts...
I found that the error is trigger right after the loop on the line the 'return returnThis'. For some reason, jsonable_encoder thinks this is a Decimal64. The exact input I'm giving it follow this format:
This discussion was converted from issue #5204 on February 27, 2023 21:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Trying to pull gNMI data from a network device. The actually gnmi stuff was tested and works but my issue comes up at the end of the example code. The variable 'telemetry_entry' is just a dict, 'returnThis' is an array of all the 'telemetry_entry's, so an array of dicts...
I found that the error is trigger right after the loop on the line the 'return returnThis'. For some reason, jsonable_encoder thinks this is a Decimal64. The exact input I'm giving it follow this format:
Operating System
Linux
Operating System Details
No response
FastAPI Version
0.78.0
Python Version
3.7.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions