1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    35
    Vote Rating
    1
    reg.phipps is on a distinguished road

      0  

    Default FriendUpdates Example two errors

    FriendUpdates Example two errors


    I downloaded google chrome and used the debug console to look for any error. There are two errors
    1) Failed to load resource: the server responded with a status of 404 (Not Found)
    2) Uncaught TypeError: object is not a function
    The first error is a resource not found app/store/FacebookApiStore.js?_dc=134867313364
    Is this FacebookApiStore.js file something should have provided in the project? Can I create this file how?
    Is the second error because of the first error?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,080
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Are you serving this from a webserver?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    35
    Vote Rating
    1
    reg.phipps is on a distinguished road

      0  

    Default


    yes, it's the same webserver that I used to run the CarListings example and that worked.
    Last edited by reg.phipps; 26 Sep 2012 at 12:39 PM. Reason: added more info

  4. #4
    Sencha Premium Member
    Join Date
    Mar 2012
    Posts
    35
    Vote Rating
    1
    reg.phipps is on a distinguished road

      0  

    Default


    The solution is to remove the 'FacebookApiStore', including the comma at line 26 in the app.js file
    i.e.
    stores: ['FacebookApiStore',
    'Friends',
    'Statuses'],

    becomes

    stores: ['Friends',
    'Statuses'],

    Thanks to Javier Roca for coming up with the solution and thanks to Steve Drucker for suggesting I use google chrome debug console to see the error.

    Aaron, perhaps this should be updated in the github.
    Last edited by reg.phipps; 26 Sep 2012 at 2:51 PM. Reason: removed html tags

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,080
    Vote Rating
    113
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Thanks, I'll let Jie Min know who owns that example.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1