tags:

views:

38

answers:

1

Hi,

i get the error

invalid label
 {"ok" : 1, "msg" : "Uh, we had a sligh...ne here now, thank you. How are you?"}

my js code

   $.ajax({
        url:"http://my.doomain.com:27080/_hello",
        success:function(data)
        {
          alert('Load was performed. '+data+'');
        },
        dataType:'jsonp',
        error:function()
        {
            alert('error');
        }
    });

Hope someone can help me.

Thanks in advance! Peter

PS: I use the rest api from mongo.db (sleepy mongoose)

+1  A: 

Try wrapping the JSON string in parenthesis as suggested here: Solving the Invalid Label Error with JSON

JohnFx