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

Error when trying to open the yaml file #4583

Closed
humitos opened this issue Aug 29, 2018 · 0 comments
Closed

Error when trying to open the yaml file #4583

humitos opened this issue Aug 29, 2018 · 0 comments

Comments

@humitos
Copy link
Member

humitos commented Aug 29, 2018

Triggering builds on this project fails immediately and the error is not well reported to the user.

I checked the logs and it seems there is a problem when trying to read the config file.

Aug 29 20:48:03 build03 supervisord: build readthedocs.doc_builder.environments:514[11667]: ERROR (Build) [invest:latest] 'utf-8' codec can't decode byte 0xff in position 24: invalid start byte
Aug 29 20:48:03 build03 supervisord: build Traceback (most recent call last):
Aug 29 20:48:03 build03 supervisord: build   File "/home/docs/checkouts/readthedocs.org/readthedocs/projects/tasks.py", line 423, in run_setup
Aug 29 20:48:03 build03 supervisord: build     self.config = load_yaml_config(version=self.version)
Aug 29 20:48:03 build03 supervisord: build   File "/home/docs/checkouts/readthedocs.org/readthedocs/doc_builder/config.py", line 64, in load_yaml_config
Aug 29 20:48:03 build03 supervisord: build     env_config=env_config,
Aug 29 20:48:03 build03 supervisord: build   File "/home/docs/checkouts/readthedocs.org/readthedocs/config/config.py", line 916, in load
Aug 29 20:48:03 build03 supervisord: build     configs = parse(configuration_file.read())
Aug 29 20:48:03 build03 supervisord: build   File "/home/docs/lib/python3.6/codecs.py", line 321, in decode
Aug 29 20:48:03 build03 supervisord: build     (result, consumed) = self._buffer_decode(data, self.errors, final)
Aug 29 20:48:03 build03 supervisord: build UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 24: invalid start byte
Aug 29 20:48:05 build03 supervisord: build readthedocs.doc_builder.environments:624[11667]: ERROR Build failed with unhandled exception: 'utf-8' codec can't decode byte 0xff in position 24: invalid start byte

Sentry issue: https://sentry.io/read-the-docs/readthedocs-org/issues/667664442/?query=is:unresolved

It may be related to #4512

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