-
Notifications
You must be signed in to change notification settings - Fork 406
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
StackLevelTooDeep with version 2 and twilio-ruby gem #437
Comments
Hmm I guess net patches are fighting, is there a simple repro? @OsamaSayegh maybe change it so we prepend the net patches that way it will not fight with another monkey patch, net can afford the marginal slowdown of the prepend. |
I haven't had time to see if there's a minimal reproduction scenario. I may be able to confirm this soon, but I wanted to open the ticket in case anyone else has issues. |
The net patches were switched to use module prepend in 2.0.0, see PR #429. @rdunlop I think you already have something that patches |
@OsamaSayegh thanks for the input, I thought the same thing, but I'm having difficulty figuring out how to determine what else might patch Net:HTTP#request.
Ah, I see, thanks! I've found it:
With rack-mini-profiler NOT installed, I get:
which a quick search yields https://github.com/skylightio/skylight-ruby/blob/master/skylight-core/lib/skylight/core/probes/net_http.rb#L24. So, yes, you're right, there was another gem (skylight) interacting poorly here. Thanks for the assist in tracking this down. |
I see 2 ways forward here:
1 would be problematic for the person who sent the PR because they had the same problem as this one, and 2 I don't know if Skylight would be OK with changing the patch to use module prepend. |
Lets open a bug on skylight and ask them what they think? At a minimum we should not be at war here both gems are popular enough. |
I have the same with ScoutApm
|
This happens with the
|
oh my ... we can not conflict with both, I say we revert the prepend for now @OsamaSayegh ... I guess there is not clear way of winning here. |
…iasing (#429)" This reverts commit 89cf094. Sadly this causes conflicts with at least a couple of popular gems that have their own patches for `Net::HTTP#request`. The gems apply their patches by using method aliasing which conflicts with patches applied using module prepend and causes infinite loop. #437 Ruby issue: https://bugs.ruby-lang.org/issues/11120
Ok, I've reverted the prepend commit. |
A few reports of this as well from the CGRP Slack. Thanks for the revert 👍 |
A new gem release is in the oven!
…On Tue, Mar 17, 2020 at 11:00 AM Nate Berkopec ***@***.***> wrote:
A few reports of this as well from the CGRP Slack. Thanks for the revert
👍
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#437 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAABIXLO3VD7JYAWN3W23ITRH24QDANCNFSM4LGV46NA>
.
|
Hi guys! We are using the newest release (2.0.1) and still receive the
Best regards, |
@enthusiasmus I looked at datadog source code and I can see they |
@OsamaSayegh I installed the 2.0.0 and there are no problems for us! 🎊 |
Appsignal also just changed (version 2.10.4) to use Could it be possible to use the same approach as with the rails patches so it is configurable whether to use |
don't use alias_method since peek-mysql2 uses prepend on rails >= 5 related to MiniProfiler#437 and MiniProfiler#444
don't use alias_method since peek-mysql2 uses prepend on rails >= 5 related to MiniProfiler#437 and MiniProfiler#444
On my project, I have twilio-ruby 5.31.6 (the latest version), and when I upgraded rack-mini-profiler to 2.0.0, now I get:
whenever I try to send an sms message with the twilio api.
If I use version 1.1.6 of rack-mini-profiler, it does not fail.
I don't know what else is a contributing factor in this situation. Any ideas?
The text was updated successfully, but these errors were encountered: