-
Notifications
You must be signed in to change notification settings - Fork 921
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
Psych::BadAlias in Ruby 3.1 configuration #1022
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have an app with
When I create configuration like:
Makes
Unknown alias: base (Psych::BadAlias)
stacktrace
This is because Psych 4.0.0 goes safe mode by default in Ruby 3.1.
I found some fixes for similar problem in other projects:
YAML.unsafe_load
in rails Fix ruby-master test suite (Psych 4.0.0) rails/rails#42257YAML.safe_load(..., aliases: true)
in sidekiq Load aliases for Psych 4 (included in Ruby 3.1) sidekiq/sidekiq#5141The text was updated successfully, but these errors were encountered: