Page 1 of 1

"Bad request" when saving an object to db

Posted: Sun Feb 01, 2015 2:11 pm
by Kevin Bradshaw

Hello!

Wonder if you can help with this one. I'm attempting to create a document in my "location" database which includes an object (a JSON formatted response from google API).

The geocoding and reverse all work fine, I'm just not able to save the reverse_geocode object to the db.

Attached are all the screens I thought would be relevant.

Image Image Image Image


"Bad request" when saving an object to db

Posted: Sun Feb 01, 2015 2:13 pm
by Kevin Bradshaw

This may be helpful:

"code: "DBSC252"
description: "Invalid value for type 'object': '{"results":[{"address_components":[{"lo"


"Bad request" when saving an object to db

Posted: Sun Feb 01, 2015 3:26 pm
by Illya Stepanov

Hi Kevin -

Please show how your storage variable is looks like when it's stored?


"Bad request" when saving an object to db

Posted: Mon Feb 02, 2015 4:31 pm
by Kevin Bradshaw

Fixed it! Just needed to add JSON.stringify before saving it to the db.