Results 1 to 3 of 3

Thread: How to get error details on proxy error?

  1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    10

    Default How to get error details on proxy error?

    Hi
    I'd like to display error information when there is an error within proxy operations, ie loading data.
    I've written code for proxy exception event
    PHP Code:
    ...
    listeners: {
      
    exception: function(proxyresponseoperation) {
        
    // show error message to users
      
    }
    }
    ... 
    This way I can actually display error messages, except for error connecting to the remote server; for example, if the remote server is down, I do have exceptions raised, but I cannot get any further information about the error. No one of the arguments for exception handler (proxy, response and operation) contains a code or description for the error in this case, so I have to way to know where the problem is.

    Any suggestions?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379
    Answers
    3997

    Default

    The response should have the responseText in it.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    10

    Default

    Quote Originally Posted by mitchellsimoens View Post
    The response should have the responseText in it.
    I've checked it: response.responseText is empty

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •