findQuery - Emberfire error - ember.js

I am getting this errror:
This is the line I am using to get data --> return this.store.find('food', {feel: 2});
I am using,
Ember : 1.10.0
Ember Data : 1.0.0-beta.12
EmberFire : 1.3.3
jQuery : 1.11.2
Error while processing route: index Assertion Failed: You tried to load a query but your adapter does not implement findQuery Error: Assertion Failed: You tried to load a query but your adapter does not implement findQuery
I'm am not sure if this is Ember.js specific or if the root of the problem is coming from Firebase? Any tips?

EmberFire 1.3.3 did not support findQuery but the latest release (1.4.1) does. Details are here: https://www.firebase.com/blog/2015-03-09-new-emberfire-features.html

Related

Ember / Ember Data - Error: The adapter operation was aborted after 201 created

Ember 3.0.0
Ember Data 3.0.2
Ruby on Rails 5.2.0
When using Ember and Ember Data to create a new record on a backend server using the default adapter (JSON_API) I get the following weird scenario:
The data is posted correctly to the backend and the backend replies with a 201 Created reply along with the new record rendered as JSON_API. I have used cUrl to simulate a POST to the backend and the reply is correct. However the adapter still rejects the operation.
When storing the record I use:
newAccount.save().then(allIsOk).catch(failure);
Even though the record is saved correctly and the backend server replies with a 201 Created the allIsOk is never called - only the .catch(failure) is triggered.
I have tried to change the reply from the backend server to 204 No content but the problem persists.
The CORS config for the backend server is as follows:
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '*',
headers: :any,
methods: %i[get post put patch delete options head]
end
end
We have developed a lot of apps in the past using the 2.x branch of Ember without any problems. I am really not sure where the error could be. The backend seems to be working correctly returning the correct data so I assume that the problem is with Ember / Ember Data or just me missing a tiny detail somewhere.
The only related topics I can find are these:
POST request to API from Ember often fails with 'The adapter operation was aborted Error'
https://github.com/cyu/rack-cors/issues/106
Found the solution to the problem. Please see here for info:
https://github.com/emberjs/data/issues/5440

Ember app fails in ie9 - blank screen originating from active-model-serializer?

I'm having a problem getting my ember app to work in ie9. I'm using:
DEBUG: -------------------------------
DEBUG: Ember : 1.13.3
DEBUG: Ember Data : 1.13.5
DEBUG: jQuery : 1.11.3
DEBUG: -------------------------------
I'm getting this error:
Error while processing route: index, Adapter operation failed
And a blank screen. I think i've tracked the issue down to the serializer. I'm currently using ActiveModelSerializer. When i remove it, I get more error messages but the errors are consistent across browsers. Any idea what could be occuring?

Reloading an async hasMany with links from server with Ember Data

It's basically this question:
How to reload an async with links hasMany relationship?
Where the provided solution doesn't work for me anymore using Ember 1.6.1 with Ember Data 1.0.0-beta.8.
What I get is this:
Error: Assertion Failed: The response from a findHasMany must be an Array, not undefined
at new Error (native)
at Error.EmberError (http://localhost:3000/assets/ember.js?body=1:2966:23)
at Object.Ember.assert (http://localhost:3000/assets/ember.js?body=1:119:15)
at http://localhost:3000/assets/ember-data.js?body=1:11290:15
at invokeCallback (http://localhost:3000/assets/ember.js?body=1:10559:19)
at publish (http://localhost:3000/assets/ember.js?body=1:10229:9)
at publishFulfillment (http://localhost:3000/assets/ember.js?body=1:10649:7)
at http://localhost:3000/assets/ember.js?body=1:16067:9
at DeferredActionQueues.invoke (http://localhost:3000/assets/ember.js?body=1:8597:18)
at Object.DeferredActionQueues.flush (http://localhost:3000/assets/ember.js?body=1:8647:15)

Ember data and RestAdapter

I'm building an ember application with a RESTAdapter to access my data in an api. I'm using the latest version of ember-data from https://github.com/emberjs/data/downloads.
This is how I'm declaring my RESTAdatpter-
App.ApplicationAdapter = DS.RESTAdapter.extend({
host: 'http://example.com'
});
but I dont think it's declared correctly as the ember inspector in the browser says that it cannot detect an adapter. Where am I going wrong?
I had the same issue and was able to get it to work using the following:
DS.RESTAdapter.reopen({
host: 'http://example.com'
})
I'm not sure if the guides need to be updated or if there's a different way to accomplish this.
It worked when I changed the ember data version to 1.0.0-beta.

Django - CurrentUserField

I was just exploring http://code.djangoproject.com/ticket/1132 I am receiving 'undefined' error while using 'models.CurrentUserField' . Is this supported by Django 1.2.3?