Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError: 'ascii' codec can't decode #366

Open
mohammad-sajid opened this issue Feb 1, 2022 · 0 comments
Open

UnicodeDecodeError: 'ascii' codec can't decode #366

mohammad-sajid opened this issue Feb 1, 2022 · 0 comments

Comments

@mohammad-sajid
Copy link

I'm upgrading oncall application to current version by migrating my on-call DB with data by modifying required fields as per the new DB schema. after dumping am not able to see all my data which is present in DB.
while accessing oncall UI is working fine but not able to see the teams and their calender info.
Getting below error.
can somebody please help here.

Tue Feb 1 18:09:15 2022 - [uwsgi-daemons] respawning "/home/oncall/env/bin/oncall-notifier /home/oncall/config/config.yaml" (uid: 1000 gid: 1000)
Traceback (most recent call last):
File "/home/oncall/env/bin/oncall-notifier", line 11, in
load_entry_point('oncall==1.4.3', 'console_scripts', 'oncall-notifier')()
File "/home/oncall/env/lib/python3.6/site-packages/oncall/bin/notifier.py", line 136, in main
config = yaml.safe_load(config_file)
File "/home/oncall/env/lib/python3.6/site-packages/yaml/init.py", line 125, in safe_load
return load(stream, SafeLoader)
File "/home/oncall/env/lib/python3.6/site-packages/yaml/init.py", line 79, in load
loader = Loader(stream)
File "/home/oncall/env/lib/python3.6/site-packages/yaml/loader.py", line 34, in init
Reader.init(self, stream)
File "/home/oncall/env/lib/python3.6/site-packages/yaml/reader.py", line 85, in init
self.determine_encoding()
File "/home/oncall/env/lib/python3.6/site-packages/yaml/reader.py", line 124, in determine_encoding
self.update_raw()
File "/home/oncall/env/lib/python3.6/site-packages/yaml/reader.py", line 178, in update_raw
data = self.stream.read(size)
File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 4039: ordinal not in range(128)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant