You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ripple.apache.org by "Lin Zhang (JIRA)" <ji...@apache.org> on 2013/07/03 05:37:19 UTC

[jira] [Created] (RIPPLE-31) Ripple Emulator cannot handle POST Requests

Lin Zhang created RIPPLE-31:
-------------------------------

             Summary: Ripple Emulator cannot handle POST Requests
                 Key: RIPPLE-31
                 URL: https://issues.apache.org/jira/browse/RIPPLE-31
             Project: Apache Ripple
          Issue Type: Question
         Environment: ripple-emulator v0.9.17
            Reporter: Lin Zhang


Hello,

I have tried to start ripple-emulator on localhost, but it only accept GET requests.  When I try POST requests, always get error message

<pre>
INFO: Proxying cross origin XMLHttpRequest - http://localhost:3000/home/api/users/sign_in
ERROR: Proxying failed with: { [Error: socket hang up] code: 'ECONNRESET' }
</pre>

I also tried Ripple API on Heroku, but got 'Application Error':

<pre>
curl -d 'use_login[email]=demo@example.com&user_login[password]=zaq12wsx' https://rippleapi.herokuapp.com/xhr_proxy\?tinyhippos_apikey\=ABC\&tinyhippos_rurl\=http%3A//ireachm.ugugl.com/home/api/users/sign_in

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html>
    <head>
      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
      <style type="text/css">
        html, body, iframe { margin: 0; padding: 0; height: 100%; }
        iframe { display: block; width: 100%; border: none; }
      </style>
    <title>Application Error</title></head>
    </head>
    <body>
      <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
        <p>Application Error</p>
      </iframe>
    </body>
 </html>
</pre>

Any idea about this problem ?

Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira