dropbox / dropbox/dropbox-sdk-python

Unable to run simple task with updown.py example file

Offen
#585 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
Python
Sterne
983
Forks
330
Ø Merge
3 Min.
Gemergte PRs (30 T.)
10

Beschreibung

I'm trying to learn the Python Dropbox SDK and as part of this effort, I downloaded updown.py and tried a simple sample sync task.

I kept getting the following error:
...\.dropbox\Lib\site-packages\stone\backends\python_rsrc\stone_serializers.py", line 674, in decode_union_dict
raise bv.ValidationError(
stone.backends.python_rsrc.stone_validators.ValidationError: unexpected use of the catch-all tag 'other'

I also persistently got the following error when I didn't get the "catch-all tag" error:
...\.dropbox\Lib\site-packages\requests\adapters.py", line 711, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host'))

I've scoured the web for solutions. I've tried uploading in batches with no success. I've tried multiple versions of the upload function and now I am at a loss.

The only minor change I made to the file was to reorient the Dropbox client to allow it to see my team folder. I am also not entirely sure I got the app permissions correct. I checked files.metadata.read and "Allow" for public clients.

I am attaching t

[updown_v1.py](https://github.com/user-attachments/files/31530529/updown_v1.py)
[updown.py](https://github.com/user-attachments/files/31530531/updown.py)
[updown_v2.py](https://github.com/user-attachments/files/31530530/updown_v2.py)

hree versions of the file which have not worked for me. Could you please help me figure this out? I am really struggling and I can't find answers online.

My libraries are all brand new, installed in a virtual environment two days ago. My Python version is 3.12.10

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by reviewing the attached updown.py, updown_v1.py, and updown_v2.py files alongside the reported stone ValidationError and requests ConnectionError. Reproduce the simple sync task with Python 3.12.10 and the newly installed libraries, checking the team-folder change and app permissions. Done means identifying a reproducible cause and documenting the required configuration or correction.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Aktiv
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.