![]() |
Checkin error from the UploadMultipart upload method from the client api library - Printable Version +- TACTIC Open Source (http://forum.southpawtech.com) +-- Forum: TACTIC Open Source (http://forum.southpawtech.com/forumdisplay.php?fid=3) +--- Forum: TACTIC Discussion (http://forum.southpawtech.com/forumdisplay.php?fid=4) +--- Thread: Checkin error from the UploadMultipart upload method from the client api library (/showthread.php?tid=210) |
Checkin error from the UploadMultipart upload method from the client api library - ditto - 04-10-2021 Hi, I got an "incorrect padding" error while trying to make simple checkin through the client api. I was testing checkin with random images and videos, some of them were successful while some gave this error, then after several test, they all just kept throwing this error. When I traced this error it was coming from the upload method in the UploadMultipart class, but I can't seem to figure out what exactly is happening. To my understanding, it looks like the error is connected to the decoding of encoded multipart file strings, but I'm not sure. For clarity sakes, this project is a flask web api that communicates with tactic application through the tactic_client_lib. The error log is attached below. RE: Checkin error from the UploadMultipart upload method from the client api library - remkonoteboom - 04-15-2021 Unfortunately, this code is written in a way so that you don't get a stack trace. If you alter this code slightly: 137 except Exception as e: 138 print("Error: ", e) 139 140 # retry about 5 times 141 print("... trying again") 142 self.tries += 1 143 if self.tries < 5: 144 self.upload(url, fields, files) and temporarily add 139 raise If will stop it from retrying and dump a proper stack trace to see exactly what line is causing this error. |