Hi all, I have a backend hosted in pythonanywhere that has this code snippet. It basically uploads the file and creates a sharing link from that uploaded file.
dbx = dropbox.Dropbox(dropboxToken)
filename = "/dates/"+request.data['name']
dbx.files_upload(request.data['picture'].read(), filename, mute=True)
getLink = dbx.sharing_create_shared_link(filename, short_url=False, pending_upload=None)
This code used to work for years until 1-2 months ago but now just throws an error:
dropbox.exceptions.ApiError: ApiError('1f0a4024a5c24ad09d3e9bc12d2d0e77', CreateSharedLinkError('path', LookupError('not_found', None)))
The file still uploads (I verified in UI) but it somehow can't find that file when trying to create the shared link. As I said, this code worked fine previously and no changes was made in the code. Can anyone help/advise? Thanks.