-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugbuggy, it does not work as expectedbuggy, it does not work as expected
Milestone
Description
Is there an existing issue for this?
- I have searched the existing issues
Which deploy/s?
No response
Current Behavior
I created a function which contains a file probe as output. When running the function, the function job succeeds, but I get an error when requesting the outputs via the api-server. More precisely I receive a return code 500. When investigating the logs of the api-server, the issue seems to stem from an exception in sqlalchemy, when trying to serialize a UUID.
Here's the study I used to create a function (this has been tested on master and staging):

Here's a snippet of the logs I see in the api-server
| File "/home/scu/.venv/lib/python3.11/site-packages/aio_pika/patterns/rpc.py", line 416, in call
| return await future
| ^^^^^^^^^^^^
| servicelib.rabbitmq._errors.RPCServerError: While running method 'update_function_job_outputs' raised 'sqlalchemy.exc.StatementError': '(builtins.TypeError) Object of type UUID is not JSON serializable
| [SQL: UPDATE funcapi_function_jobs SET outputs=%s, modified=now() WHERE funcapi_function_jobs.uuid = %s RETURNING funcapi_function_jobs.outputs]'
| File "/home/scu/.venv/lib/python3.11/site-packages/servicelib/rabbitmq/_rpc_router.py", line 55, in _wrapper
| return await func(*args, **kwargs)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expected Behavior
No response
Steps To Reproduce
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugbuggy, it does not work as expectedbuggy, it does not work as expected