- Subscribe to RSS Feed
- Mark Thread as New
- Mark Thread as Read
- Float this Thread for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Im getting this exception:
Failure when receiving data from the peer
When using the Ruby SDK's Transaction API Charge method. The cards get charged, sales appear on dashboard, all ok. But it errors out on the charge call regardless. This did not happen when using the sandbox environment.
Using: square_connect (2.0.2.30) gem
This is the call that triggers the error:
resp = transaction_api.charge(ENV["SQUARE_ACCESS_TOKEN"], locations.locations[0].id, request_body)
As mentioned above regardless of error the charge still happens and shows up as sale.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
FYI, and for whoever might come across this in the future.
This was caused by Heroku cedar-14 stack. It uses a really old version of cURL that was causing the issue. Fixed by changing my Heroku stack to heroku-16 (which is a beta version).
You might want to state that on your Ruby SDK docs, as it might affect others running on heroku as well. I tried to create an issue on github but that seems disabled.
Thanks for support!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
Seems like some kind of system error, since that phrase isn't listed anywhere in the SDK itself. Would you mind setting debugging to true in your SDK, and pasting more of the output?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report
FYI, and for whoever might come across this in the future.
This was caused by Heroku cedar-14 stack. It uses a really old version of cURL that was causing the issue. Fixed by changing my Heroku stack to heroku-16 (which is a beta version).
You might want to state that on your Ruby SDK docs, as it might affect others running on heroku as well. I tried to create an issue on github but that seems disabled.
Thanks for support!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report