You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
spiridonovfed
changed the title
Bug in release 1.1.0 on Vertex env - 404 on 'GET /download/thumbnail' in 'assets'
Bug in release 1.1.0 on Vertex env - 404 on 'GET /download/thumbnail' in 'assets' and ERROR in (minio_utils.py).remake_thumbnail(111)
Dec 15, 2022
spiridonovfed
changed the title
Bug in release 1.1.0 on Vertex env - 404 on 'GET /download/thumbnail' in 'assets' and ERROR in (minio_utils.py).remake_thumbnail(111)
Bug in release 1.1.0 on Vertex env - 404 on 'GET /download/thumbnail' in 'assets'
Dec 15, 2022
The root of the problem is this:
We allow to upload file with 'csv' extension.
The function 'minio_utils.remake_thumbnail' tries to create a thumbnail of 'csv' file and breaks there.
This function can only work with pdf-files and images now
Logs:
14-Dec-22 19:23:18 - [ERROR] - src.utils.minio_utils - (minio_utils.py).remake_thumbnail(111) - File is not an image
INFO: 100.120.37.66:53972 - "GET /download/thumbnail?file_id=8 HTTP/1.1" 404 Not Found
INFO: 100.120.37.66:50964 - "POST /files/search HTTP/1.1" 200 OK
INFO: 100.120.37.66:50964 - "POST /datasets/search HTTP/1.1" 200 OK
INFO: 100.120.37.66:50970 - "POST /files/search HTTP/1.1" 200 OK
14-Dec-22 19:23:26 - [ERROR] - src.utils.minio_utils - (minio_utils.py).remake_thumbnail(111) - File is not an image
INFO: 100.120.37.66:50986 - "GET /download/thumbnail?file_id=8 HTTP/1.1" 404 Not Found
INFO: 100.120.37.66:51004 - "GET /download/thumbnail?file_id=7 HTTP/1.1" 200 OK
The text was updated successfully, but these errors were encountered: