Fix upload_data params generation
Print traceback for exceptions rather than just ignoring them