[SyntaxError: Unexpected token I] response: undefined

REST PUT request:

https://api.backendless.com/v1/data/bulk/SearchIndex?where:"resourceId='BEF601FA-0035-0FCD-FF06-5607F2C2A900'"

request body:

{ type: 'Person',
 keywords: 'some text here',
 person:{ 
 ___class: 'Person',
 objectId: 'BEF601FA-0035-0FCD-FF06-5607F2C2A900' 
 } 
}

Response is error:

{ [SyntaxError: Unexpected token I] response: undefined }

That’s literally complete response, nothing else.
Error has appeared after the last update of backendless

Hello, Anton

The first thing I noticed is that you use malformed JSON. Strings must be delimited with double-quotation marks, the same as fields.

{ 

  "type": "Person",
  "keywords": "some text here",
  "person":
  { 
     "___class": "Person",
     "objectId": "BEF601FA-0035-0FCD-FF06-5607F2C2A900" 
  } 
}

Try this and will investigate further.

Regards, Artur.

I’m sure, this is not the cause.
I’m using Superagent library, it formats json properly.

Also, i’ve tried this.

Well, look at documentation:
https://backendless.com/documentation/data/rest/data_updating_data_objects.htm

The URL you provide must be like

https://api.backendless.com/<app version>/data/bulk/&lt;table-name&gt;?where=&lt;where clause&gt;

You use incorrect URL.

Regards, Artur.

Sorry, it was just typo here, I’m using this:

https://api.backendless.com/v1/data/bulk/SearchIndex?where="resourceId='BEF601FA-0035-0FCD-FF06-5607F2C2A900'"

url encoded, of course

Hi, Anton,

Please, post here your real url-encoded request so that we can reproduce the issue. And of course we need your app data structure.

Regards, Artur.

And did you try to update single instance instead of bulk update?