Private
Public Access
1
0

fixing fit api

This commit is contained in:
2025-10-15 20:27:11 +02:00
parent f04351047f
commit d8339f653c
4 changed files with 16 additions and 5 deletions

View File

@@ -644,7 +644,7 @@ def strokedata_fit(request):
dologging('apilog.log','FIT API endpoint')
dologging('apilog.log',e)
_ = myqueue(queuehigh, handle_sendemail_unrecognized, fit_filename, "fit parser")
return HttpResponse(status=500)
return JSONResponse({"error": "the uploaded file is corrupted or invalid and cannot be processed"}, status=422)