spcl / serverless-benchmarks

SeBS: serverless benchmarking suite for automatic performance analysis of FaaS platforms.
https://mcopik.github.io/projects/sebs/
BSD 3-Clause "New" or "Revised" License
149 stars 67 forks source link

500 internal server error on 411.image-recognition benchmark #123

Closed jchigu closed 1 year ago

jchigu commented 1 year ago

(python-venv) jchigu@SEBS:~$ curl 172.17.0.3:9000 --request POST -o testresult411imagerecognition.json --data '{"bucket": {
"input": "411.image-recognition-1-input-c12339db-5c8f-44", "model": "411.image-recognition-0-input-3d81938b-b77a-45" }, "object": { "input": "800px-Porsche_991_silver_IAA.jpg", "model": "resnet50-19c8e357.pth" } }' --header 'Content-Type: application/json' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 2385 100 2109 100 276 3716 486 --:--:-- --:--:-- --:--:-- 4328 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

Error: 500 Internal Server Error

Error: 500 Internal Server Error

Sorry, the requested URL 'http://172.17.0.3:9000/' caused an error:

Internal Server Error

Exception:

TypeError()

Traceback:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/minio/helpers.py", line 219, in check_non_empty_string
    if not string.strip():
AttributeError: 'NoneType' object has no attribute 'strip'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 868, in _handle
    return route.call(**args)
  File "/usr/local/lib/python3.7/site-packages/bottle.py", line 1748, in wrapper
    rv = callback(*a, **ka)
  File "/sebs/server.py", line 17, in flush_log
    ret = function.handler(request.json)
  File "/function/function/function.py", line 72, in handler
    client.download(input_bucket, key, download_path)
  File "/function/function/storage.py", line 37, in download
    self.client.fget_object(bucket, file, filepath)
  File "/usr/local/lib/python3.7/site-packages/minio/api.py", line 1025, in fget_object
    check_non_empty_string(object_name)
  File "/usr/local/lib/python3.7/site-packages/minio/helpers.py", line 222, in check_non_empty_string
    raise TypeError() from exc
TypeError
mcopik commented 1 year ago

@jchigu Unfortunately, I cannot reproduce the issue. The stack trace indicates that the call to fget_object on Minio was done with an object name None and not str.

Can you please restart the function container and verify that the issue persists?

mcopik commented 1 year ago

@jchigu Does this issue still appear? If yes, then can you please provide more information?

mcopik commented 1 year ago

Closing down - if the issue still persists, then please reopen with updated information instead of opening new ones.