The block of code generating the error should look very familiar to everyone, it is a stripped down and modified revision of the upload function from `updown.py` in the Dropbox repo. Raise BadInputError(request_id, res.text)ĭ: BadInputError('ba53047e1ac14efd97fac1e6ceea178f', '') Self.refresh_access_token(scope=self._scope)įile "/usr/local/lib/python3.9/site-packages/dropbox/dropbox_client.py", line 403, in refresh_access_tokenįile "/usr/local/lib/python3.9/site-packages/dropbox/dropbox_client.py", line 627, in raise_dropbox_error_for_resp Now I am attempting to test uploading file contents to a designated file in the box of drop-ness.įile "/home/vassilios/Sandbox/orgzly-y-py/main.py", line 480, in įile "/home/vassilios/Sandbox/orgzly-y-py/main.py", line 471, in mainĭropbox_put(config, config,įile "/home/vassilios/Sandbox/orgzly-y-py/main.py", line 389, in dropbox_putĭropbox_upload(app_key, fullname, folder, name)įile "/home/vassilios/Sandbox/orgzly-y-py/main.py", line 298, in dropbox_uploadįile "/usr/local/lib/python3.9/site-packages/dropbox/base.py", line 3207, in files_uploadįile "/usr/local/lib/python3.9/site-packages/dropbox/dropbox_client.py", line 301, in requestįile "/usr/local/lib/python3.9/site-packages/dropbox/dropbox_client.py", line 369, in check_and_refresh_access_token So, I have migrated over to using a refresh_token, which has been successfully acquired and saved. It was working when I used the straight access token, but having to approve a new token every time the script was run was infeasible and irritating.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |