You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ripple.apache.org by "Brent Lintner (JIRA)" <ji...@apache.org> on 2013/07/08 15:59:48 UTC

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

    [ https://issues.apache.org/jira/browse/RIPPLE-31?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702010#comment-13702010 ] 

Brent Lintner commented on RIPPLE-31:
-------------------------------------

Hey Lin,

Thanks for creating a Jira issue/question for the project. I'll continue my responses on here (sorry for delay).

I'm not too sure where to start with this. ECONNRESET seems to indicate the connection was reset by your server, but I could be wrong. Is this something that has never worked (at all) for you? Or is this just for your application?

However, it is also possible the error could be caused by something in the way the proxy code is written.. If I get a chance I'll try and look into it more!
                
> 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
>            Assignee: Brent Lintner
>
> 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
> INFO: Proxying cross origin XMLHttpRequest - http://localhost:3000/home/api/users/sign_in
> ERROR: Proxying failed with: { [Error: socket hang up] code: 'ECONNRESET' }
> I also tried Ripple API on Heroku, but got 'Application Error':
> 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>
> 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