Skip to content

Instantly share code, notes, and snippets.

@levicook
Last active December 24, 2015 05:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save levicook/6753826 to your computer and use it in GitHub Desktop.
Save levicook/6753826 to your computer and use it in GitHub Desktop.
When posting to the create_datastore endpoint, I'm supposed to supply a "key" parameter. Where is the value supposed to come from? Attached, is an detailed view of the http request and response I'm seeing.
calling datastoreManager.CreateDatastore
2013/09/29 10:06:19 Request
2013/09/29 10:06:19 Method : POST
2013/09/29 10:06:19 URL : https://api.dropbox.com/r5/datastores/create_datastore
2013/09/29 10:06:19 Body : (ioutil.nopCloser) {
Reader: (*strings.Reader)(0xc2002634c0)({
s: (string) "dsid=.07b474e1a58eaddc2fd8d96cd19c14",
i: (int) 36,
prevRune: (int) -1
})
}
2013/09/29 10:06:19 Response
2013/09/29 10:06:19 Status : 400
2013/09/29 10:06:19 Body : {"error": {"key": "Missing value"}}
2013/09/29 10:06:19 Unknown Error.
Status Code : 400
Status Text : Bad input parameter. Error message should indicate which one and why.
Request Method : POST
Request URL : https://api.dropbox.com/r5/datastores/create_datastore
Response Body : {"error": {"key": "Missing value"}}
exit status 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment