Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9138659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:17:08+00:00 2026-06-17T09:17:08+00:00

I have a Ruby-On-Rails app that I’m trying to hookup to Dwolla using Mechanize

  • 0

I have a Ruby-On-Rails app that I’m trying to hookup to Dwolla using Mechanize

agent = Mechanize.new 
agent.keep_alive = false 
agent.log = Logger.new $stderr 
agent.agent.http.debug_output = $stderr 
ajax_headers = { 'X-Requested-With' => 'XMLHttpRequest', 'Content-Type' => 'application/json; charset=utf-8', 'Accept' => 'application/json, text/javascript, */*'} 
response = agent.post( "https://www.dwolla.com/oauth/rest/tes...", query_string.to_json, ajax_headers) 

The response I get back is:

Conn close because of error Connection reset by peer 

These are the params I’m sending:

{\"password\":\"Password1\",\"confirm_password\":\"Password1\",\"pin\":\"1234\",\"firstName\":\"firstName\",\"lastName\":\"lastName\",\"address\":\"address\",\"address2\":null,\"city\":\"Troy\",\"state\":\"NY\",\"zip\":\"12180\",\"phone\":\"111-123-4567\",\"dateOfBirth\":\"10/15/1970\",\"type\":\"Personal\",\"organization\":null,\"ein\":null,\"acceptTerms\":true,\"client_id\":\"foo\",\"client_secret\":\bar\"}" 

And here’s what’s logged:

Net::HTTP::Post: /oauth/rest/testapi/register
request-header: accept => application/json, text/javascript, */*
request-header: user-agent => Mechanize/2.5.1 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)
request-header: connection => close
request-header: accept-encoding => gzip,deflate,identity
request-header: accept-charset => ISO-8859-1,utf-8;q=0.7,*;q=0.7
request-header: accept-language => en-us,en;q=0.5
request-header: host => www.dwolla.com
request-header: content-type => application/json; charset=utf-8
request-header: content-length => 444
opening connection to www.dwolla.com...
opened
<- "POST /oauth/rest/testapi/register HTTP/1.1\r\nAccept: application/json, text/javascript, */*\r\nUser-Agent: Mechanize/2.5.1 Ruby/1.9.2p290 (http://github.com/tenderlove/mechanize/)\r\nConnection: close\r\nAccept-Encoding: gzip,deflate,identity\r\nAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7\r\nAccept-Language: en-us,en;q=0.5\r\nHost: www.dwolla.com\r\nContent-Type: application/json; charset=utf-8\r\nContent-Length: 444\r\n\r\n"
<- "{\"password\":\"Password1\",\"confirm_password\":\"Password1\",\"pin\":\"1234\",\"firstName\":\"firstName\",\"lastName\":\"lastName\",\"address\":\"address\",\"address2\":null,\"city\":\"Cohoes\",\"state\":\"NY\",\"zip\":\"12047\",\"phone\":\"111-123-4567\",\"dateOfBirth\":\"9/13/1973\",\"type\":\"Personal\",\"organization\":null,\"ein\":null,\"acceptTerms\":true,\"client_id\":\"foo\",\"client_secret\":\"bar\"}"
Conn close because of error Connection reset by peer

Any help would be greatly appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:17:09+00:00Added an answer on June 17, 2026 at 9:17 am

    I believe you’re using an old [unsupported] endpoint. Try removing that “/testapi” part from the URL… In anyway, the dev docs for this method also include an inline console that should help you get started with this: https://developers.dwolla.com/dev/docs/register/register

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Ruby on Rails app that I've recently deployed to a remote
I have a Ruby on Rails app that needs process many background jobs simultaneously:
I have a Ruby script in my Rails app that I use to load
Have a Ruby on Rails app that uses BCrypt to hash passwords, the User
I have a ruby on rails app that has a signup page. Different pages
Some of the users of our Ruby on Rails app have complained that page
I have a Ruby on Rails app that has a scheduled job I execute
I have a Ruby on Rails app that I'm working on and I'm having
I have a Ruby on Rails app that I built myself, but which needs
I have a Ruby on Rails app that works fine locally with a sqlite3

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.