Skip to content

Wrong encoding when reading config.yml #2546

Closed
@mattrobenolt

Description

@mattrobenolt
sentry.options.manager.UnknownOption: 's\x00y\x00s\x00t\x00e\x00m\x00.\x00s\x00e'

This happened when reading the following default config:

# While a lot of configuration in Sentry can be changed via the UI, for all
# new-style config (as of 8.0) you can also declare values here in this file
# to enforce defaults or to ensure they cannot be changed via the UI. For more
# information see the Sentry documentation.

# If this file ever becomes compromised, it's important to regenerate your SECRET_KEY
# Changing this value will result in all current sessions being invalidated
system.secret-key: '######################################'

From some quick searching, this appears to be related to utf-32 because of the added null bytes, but I'm not able to reproduce this yet.

@timeseer can you provide more context on your environment? What operating system, version of python, etc.

/cc @mitsuhiko

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions