-
Notifications
You must be signed in to change notification settings - Fork 45
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
413 error while authenticating with omniauth-twitter when this gem is in the bundle #26
Comments
Hey, thanks for setting the repo! Can you try to see what happen if you add the following to your App::Application.configure do
config.setting...
end
ActiveMerchant::Billing::Base.mode = :test |
The error persists after adding the line. |
I was able to recreate the error, but that 413 is kind of cryptic error :( Are you still having the issue? |
Yeah, I had to remove the gem to keep using the twitter authentication. On Tue, Jul 3, 2012 at 9:16 AM, Jose Pablo Barrantes <
|
I had to patch oauth-ruby in order to both active_paypal_adaptive_payment and omniauth-twitter work in my project: |
@dmitriybudnik thanks for letting us know! 🤘 |
I've nailed it down to be caused by monkey-patching Net::HTTPHeader#[]= here: |
@dmitriybudnik to be honest I don't remember and I'm actually not working with this gem any more... That said :/, I guess it has something to do with the way PayPal validates Would you be able to test that? if so, and if it works... I'll be more than happy to accept a pull request. Many thanks for your debugging efforts! :) |
I've set up a repo to make it easier to reproduce the error: https://github.com/diogob/demo_paypal_omniauth
Steps to reproduce the bug:
OAuth::Unauthorized
413 Request Entity Too Large
If you just comment out the active_paypal_adaptive_payment from the Gemfile, reinstall the bundle and restart the server, the twitter auth works as expected (and leads to a non-existent SessionController).
BTW, the error does not depend on the presence of the gem activemerchant in the Gemfile.
I would guess that it has something to do with the file active_paypal_adaptive_payment / lib / active_merchant / billing / gateways / paypal_adaptive_payments / ext.rb
Strange indeed!
Best Regards
The text was updated successfully, but these errors were encountered: