oncall icon indicating copy to clipboard operation
oncall copied to clipboard

UnicodeDecodeError: 'ascii' codec can't decode

Open mohammad-sajid opened this issue 3 years ago • 0 comments

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)

mohammad-sajid avatar Feb 01 '22 18:02 mohammad-sajid