-
-
Notifications
You must be signed in to change notification settings - Fork 503
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
Proxy configuration in version 5+ no longer accepts a URL as a string #1782
Comments
@st0012 I'm happy to submit a PR if you can let me know what the preference is for fixing this (code or docs updates). |
Actually, I believe this needs to be handled in code using My current workaround:
|
@jknipp Sorry for the breaking change, I wasn't aware of it. I think the change should be on code, as it used to be supported. |
Hi @st0012, no worries. I'll try to have a PR up for review later today. |
Fixes getsentry#1782 Update `config.transport.proxy` to allow String and URI values as previously supported by `sentry-ruby` versions <= 4.8 using Faraday.
Fixes getsentry#1782 Update `config.transport.proxy` to allow String and URI values as previously supported by `sentry-ruby` versions <= 4.8 using Faraday.
Fixes getsentry#1782 Update `config.transport.proxy` to allow String and URI values as previously supported by `sentry-ruby` versions <= 4.8 using Faraday.
Fixes #1782 Update `config.transport.proxy` to allow String and URI values as previously supported by `sentry-ruby` versions <= 4.8 using Faraday.
Issue Description
We have recently been migrating Rails 5.2 apps from
sentry-raven
tosentry-ruby
. We have 2 services that are being migrated, one that is on usingsentry-raven
4.x (v4.8 to be exact, using Faraday). And another that we tried to upgrade tosentry-ruby
v5.0.2. In the app using v4.8, we were able to use the steps in the (https://docs.sentry.io/platforms/ruby/migration/#renamedrelocated) to rename the proxy configuration option, and pass it a URL string as follows:However, doing the same when moving to v5.x throws an error when a proxy string is provided. This caused a production deployment issue for us because we only use a proxy in our production environment, and were not able to test for this in our development/testing environments.
Reproduction Steps
transport.proxy
option to a URL string based on the migration guide from sentry-raven.Sentry.capture_exception(StandardError.new('This is an exception'))
Expected Behavior
One of the following
config.transport.proxy
should be ahash
, and a string is NOT acceptable.Actual Behavior
A
no implicit conversion of Symbol into Integer
exception is thrown when the proxy is set as a string instead of a hash. See the HTTPTransport class here. Therefore, events are not sent to Sentry.See log
Ruby Version
2.6.6
SDK Version
5+
Integration and Its Version
Rails/Sidekiq
Sentry Config
The text was updated successfully, but these errors were encountered: