As of probably last week (2023-03 11 to 18), building indy-node-monitor from scratch with non-cached build artefacts pulls fastapi==0.95.0, with requires starlette==0.26.1.
This causes the indy-node-monitor process to crash on startup, with a bunch of stack trace containing the following kind of error:
File "/home/indy/rest_api.py", line 80, in <module>
async def network(network: Network = Path(example_network_enum, example=example_network_name, description="The network code."),
File "/home/indy/.local/lib/python3.7/site-packages/fastapi/param_functions.py", line 42, in Path
**extra,
File "/home/indy/.local/lib/python3.7/site-packages/fastapi/params.py", line 83, in __init__
assert default is ..., "Path parameters cannot have a default value"
AssertionError: Path parameters cannot have a default value
[2023-03-24 20:06:52 +0000] [11] [INFO] Worker exiting (pid: 11)
This is due to the fact that relying on creating fastapi Path object with code like:
As of probably last week (2023-03 11 to 18), building
indy-node-monitor
from scratch with non-cached build artefacts pullsfastapi==0.95.0
, with requiresstarlette==0.26.1
. This causes theindy-node-monitor
process to crash on startup, with a bunch of stack trace containing the following kind of error:This is due to the fact that relying on creating fastapi Path object with code like:
was probably relying on a bug in the Path api, which was corrected since. The correct syntax is:
A PR to correct this problem is on its way.