Unicode error in quickstart

Aberta
#137 2 comentários 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
Meio dia
Facilidade para iniciantes
15/100
Tipo de issue
Bug
Clareza
Precisa de esclarecimento
Status de atividade
Estagnada
Stack de tecnologia
python
Domínio
authentication

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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

Linguagem predominante
Python
Estrelas
1.4k
Forks
917
Merge médio
3min
PRs com merge (30d)
1

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de googleworkspace/python-samples

Todas as issues de googleworkspace/python-samples

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.