Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Ember Data save response error

$
0
0

@FlorianKrippner wrote:

Hej guys, i have the following problem. i am doing this:

saveData() {
      const myStore = this.get('store');
      let post = myStore.createRecord('instantiatedwidget', {
        userID: 1995,
        name: 'test',
        instanceID: 404
      });

      post.save();
    }

my backend get the post request and the data. after that i return in java this

return Response.status(200).entity("hello world").build();

(jersey framework for rest api)

now my ember application throws that error:

error SyntaxError: Unexpected token P in JSON at position 0

someone know the issue ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles