R
RunPod10mo ago
Ben

Serverless API Question

Hi, I am currently using this guide https://doc.runpod.io/reference/runpod-apis, and attempting to retrieve my results with the status request. However, the response that I get just looks like { "delayTime": 66679, "executionTime": 41266, "id": "5dbd4fb0-b6f9-44d9-a242-820d9ddbc929-u1", "status": "COMPLETED" } I am wondering where the input and output shown in the documentation is? In my inference function, I'm simply returning the result as a json object. Is this an issue with my function?
5 Replies
ashleyk
ashleyk10mo ago
This happens if your handler has an error and you pass a dict or a list to the error key. The error key only accepts an str and not a dict or a list.
Ben
BenOP10mo ago
Sweet, thanks. I was returning my result as a dictionary, so I guess it thought that was the error. Its working now
ashleyk
ashleyk10mo ago
Its fine to return the result as a dictionary, just not the error key.
Ben
BenOP10mo ago
No description
Ben
BenOP10mo ago
if I return just a single item (2D list) as the result it seems ok, but if I do the above and return a list of two 2D lists, it doesn't work I could also just stack the tensors and then return a single list I guess
Want results from more Discord servers?
Add your server