Hybrid View
-
18 Dec 2012 4:32 PM #1
TypeError: 'null' is not an object (evaluating 'reader.getReaderType')
TypeError: 'null' is not an object (evaluating 'reader.getReaderType')
Sencha Architect
Version: 2.1.0 Build 676
Windows 7
Steps to reproduce the error:- Create model, store and proxy* as defined bellow, through architect
- Project Inspector > RMB on Users store > Load data
- Project Inspector > LMB on Users store 'view response' icon
Code:Ext.define('MyApp.store.Users', { extend: 'Ext.data.Store', requires: [ 'MyApp.model.User' ], constructor: function(cfg) { var me = this; cfg = cfg || {}; me.callParent([Ext.apply({ autoLoad: true, storeId: 'Users', model: 'MyApp.model.User', clearOnPageLoad: false, clearRemovedOnLoad: false, proxy: { type: 'rest', url: 'example.com/users', headers: { Accept: 'application/json;version=1', Authorization: 'basic xpto' } } }, cfg)]); } }); Ext.define('MyApp.model.User', { extend: 'Ext.data.Model', idProperty: 'key', fields: [ { name: 'name' }, { name: 'key', type: 'int' }, { name: 'firstName' }, { name: 'lastName' } ] });
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote