Results 1 to 2 of 2

Thread: Promise does not support "catch" method for Ext.Ajax.request

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-23242 in 7.0.0.
  1. #1
    Sencha Premium User
    Join Date
    Dec 2016
    Location
    Toronto, Canada
    Posts
    33

    Default Promise does not support "catch" method for Ext.Ajax.request

    The Ext.Ajax.request method apparently returns a Promise like object according to the documentation here: http://docs.sencha.com/extjs/6.2.1/c...method-request

    Whilst doing ".then" works on the promise, following it up with ".catch" does not, with a non-existent method error being raised: https://fiddle.sencha.com/#view/editor&fiddle/1m5k (check the console).

    Ext version tested:


    • Ext 6.2.1.167


    Browser versions tested against:


    • Chrome 54.0.2840.59 (64-bit)


    The result that was expected:


    • Catch should be a valid method on the promise


    The result that occurs instead:


    • An error is raised because catch does not exist
    Last edited by [email protected]; 8 Dec 2016 at 9:18 AM. Reason: Tidy up

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    As it happens this was raised a couple of days ago here: https://www.sencha.com/forum/showthr...rwise-vs-catch

    We're going to add catch. Currently the method used is "otherwise".
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Replies: 3
    Last Post: 29 Nov 2011, 9:00 AM
  2. New setup, getting "object doesnt support this property or method"
    By jjmiller1980 in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 1 Jul 2011, 1:47 AM

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
  •