Masahiro's tech note
PostsProjectsAbout
PostsProjectsAbout
Backback arrow icon
FastAPI
Python

json.decoder.JSONDecodeError: Invalid control character at: line 1 column 171 (char 170)

strictをFalseにしたら解決できました

json.loads(FIREBASE_KEYFILE_JSON, strict=False)

参考記事

python で json.loads() したときに 特定の制御文字列が入ってるとJSONDecodeErrorが返ってくる

Featured
pytestのメモ
2022/01/02
Python
imported module ‘test_room’ has this __file__ attributes which is not the same as the test file we want to collect:
2022/01/01
FastAPI
Flask
Python
json.decoder.JSONDecodeError: Invalid control character at: line 1 column 171 (char 170)
2021/03/21
FastAPI
Python
CircleCIでfirebaseのkeyを使う方法
2021/03/20
Docker
FastAPI
pguiでhotkey使えない時に考えるべきこと
2021/03/07
Python

github
twitter
menta
mail
copyright © 2016-2023 Masahiro Okubo