Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8460373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:35:20+00:00 2026-06-10T13:35:20+00:00

I receive the error Uncaught TypeError: Object #<Object> has no method ‘map’ when using

  • 0

I receive the error

Uncaught TypeError: Object #<Object> has no method 'map' 

when using ember-data to try and load the json from my api.

App = Ember.Application.create({});

App.Student = DS.Model.extend({
    primaryKey: 's_id',
    s_id: DS.attr('integer'),
    surname: DS.attr('string')
});

App.Student.reopenClass({
    url: 'api/student.php'
})

App.adapter = DS.Adapter.create({
    findAll: function(store, type) {
        var url = type.url;

        console.log(type.url);

        jQuery.getJSON(url, function(data){
            store.loadMany(type, data);
        });
    }
});

App.store = DS.Store.create({
    revision: 4,
    adapter: App.adapter
});

App.students = App.store.findAll(App.Student);

I’ve made sure the JSON is the correct format but to no avail; any ideas?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:35:22+00:00Added an answer on June 10, 2026 at 1:35 pm

    pauldechov answered this in a comment above:

    I think I know what’s going on — DS.RestAdapter does assume the
    pluralized form as the root of the json in its implementation of
    findAll, but if you need this, you should either mimic this
    implementation or just use/extend that built-in one.

    Because the root of the json is named, I can call data.student to get call loadMany correctly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Unity 2.1 in my application and receive the error in the title
I've tried to create a web method which has parameter of java.lang.Object but I
I'm trying to load latitude and longitude value using this code but I receive
I am using Facebook's Comment box and receive following error in Firefox 8.0 (No
I receive this error when I click on the section of my Tab-Bar application
I receive the error below when running the following function. The catch says the
I'm having a problem where I receive this error: Exception in thread main java.lang.NullPointerException
I have an XML reader but I receive an error when I'm trying to
I'm trying to plotting a function but I receive an error and since I'm
While running the code I've included below I receive the error EntityCommandExecutionException was unhandled

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.