Unicode error in quickstart

Aperta
#137 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

The failing call is flow.run_local_server(port=0) in the quickstart's OAuth sample, which reads the downloaded credentials.json. Start by checking whether the byte 0xcf in the report means the file was read as binary-corrupted text, and reproduce with a freshly downloaded file on Python 3.7 on Windows. Done means either the sample handles the file correctly or it fails with a clear message that points to the cause.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

question

Copied and pasted the code. Downloaded credentials.json. Replaced all spaces to tabs and after all got Unicode error in this line :

 creds = flow.run_local_server(port=0)

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 6: invalid continuation byte

I really don't know what the problem. Httplib2 was upgraded (ver. 0.15.0) like others libs which would be needed.

httplib2 0.15.0
python 3.7.4
Windows OS

Lingua principale
Python
Stelle
1.4k
Fork
917
Merge medio
3m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleworkspace/python-samples

Tutte le issue di googleworkspace/python-samples

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.