We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FrozenError: can't modify frozen String: "" when starting Elastic APM with Ruby 3.0.0
FrozenError: can't modify frozen String: ""
[ElasticAPM] Couldn't establish connection to APM Server: "#<FrozenError: can't modify frozen String: \"\">"
I patched a backtrace logging to see where it comes from:
[ "/usr/local/rvm/gems/ruby-3.0.0/gems/http-3.3.0/lib/http/response/body.rb:52:in `force_encoding'", "/usr/local/rvm/gems/ruby-3.0.0/gems/http-3.3.0/lib/http/response/body.rb:52:in `to_s'", "/usr/local/rvm/gems/ruby-3.0.0/gems/http-3.3.0/lib/http/response.rb:92:in `flush'", "/usr/local/rvm/gems/ruby-3.0.0/gems/elastic-apm-3.13.0/lib/elastic_apm/transport/connection/http.rb:63:in `request'", "/usr/local/rvm/gems/ruby-3.0.0/gems/elastic-apm-3.13.0/lib/elastic_apm/transport/connection/http.rb:49:in `post'", "/usr/local/rvm/gems/ruby-3.0.0/gems/elastic-apm-3.13.0/lib/elastic_apm/transport/connection/http.rb:109:in `block in open_request_in_thread'", "/usr/local/rvm/gems/ruby-3.0.0/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'" ]
Elastic APM starts properly and reports to server
I also created the following issue to http gem: httprb/http#640
The text was updated successfully, but these errors were encountered:
Looks like I had another dependency pulling in older http gem. Updating to http gem version 4.4.1 seemed to fix this issue.
Sorry, something went wrong.
Was going to suggest that, good that you figured it out on your own 😊 Di you come across anything else ElasticAPM related with the upgrade?
At least not yet. I did discover some other issues that need more investigation first.
No branches or pull requests
Describe the bug
FrozenError: can't modify frozen String: ""
when starting Elastic APM with Ruby 3.0.0Steps to reproduce
I patched a backtrace logging to see where it comes from:
Expected behavior
Elastic APM starts properly and reports to server
Environment
Additional context
I also created the following issue to http gem: httprb/http#640
The text was updated successfully, but these errors were encountered: