clamsproject / clams-python

CLAMS SDK for python
http://sdk.clams.ai/
Apache License 2.0
4 stars 1 forks source link

Pretty print for metadata causes error #218

Closed marcverhagen closed 5 months ago

marcverhagen commented 7 months ago

Bug Description

When pinging the app with the GET method you get an error:

  File "/Applications/ADDED/venv/clams/app-swt/lib/python3.10/site-packages/clams/app/__init__.py", line 338, in cast
    assert isinstance(vs, list), f"Expected a list of values for key {k}, but got {vs} of type {type(vs)}"
AssertionError: Expected a list of values for key pretty, but got true of type <class 'str'>

Reproduction steps

With any app running on localhost

curl localhost:5000?pretty=True

Expected behavior

No response

Log output

No response

Screenshots

No response

Additional context

No response

keighrim commented 5 months ago

should be fixed in #222 (via 3d5bc763a2f8bcee32d828763d7701fc95a9c8a5), closing as complete. Please re-open when the issue persist in 1.2.2