Wednesday 15 June 2011

c# - Azure storage REST group transactions - one of the request inputs is out of range -



c# - Azure storage REST group transactions - one of the request inputs is out of range -

i'm trying hand @ entity grouping transactions simple request, maintain getting "400 (one of request inputs out of range)" error code in response. here's string-serialized httprequestmessage:

method: post, requesturi: 'http://127.0.0.1:10002/$batch?', version: 1.1, content: system.net.http.stringcontent, headers: { x-ms-date: tue, 21 oct 2014 18:49:09 gmt x-ms-version: 2014-02-14 authorization: sharedkeylite devstoreaccount1:vdq+5/kmw43u+dcqpwcx14n24wg8hsubttk5pnk1xo8= content-type: multipart/mixed; boundary=batch_f351702c-c8c8-48c6-af2c-91b809c651ce content-length: 212 }

and string-serialized request content:

--batch_f351702c-c8c8-48c6-af2c-91b809c651ce content-type: application/http content-transfer-encoding: binary http://127.0.0.1:10002/batchtable() http/1.1 --batch_f351702c-c8c8-48c6-af2c-91b809c651ce--

the response server:

statuscode: 400, reasonphrase: 'one of request inputs out of range.', version: 1.1, content: system.net.http.streamcontent, headers: { x-ms-request-id: 43fea847-2226-4dcf-ad62-bdb7cc0af256 date: wed, 22 oct 2014 00:00:06 gmt server: microsoft-httpapi/2.0 content-length: 325 content-type: application/xml }

response content:

<?xml version="1.0" encoding="utf-8"?><m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><m:code>outofrangeinput</m:code><m:message xml:lang="en-us">one of request inputs out of range. requestid:43fea847-2226-4dcf-ad62-bdb7cc0af256 time:2014-10-22t00:00:06.3046099z</m:message></m:error>

any thought problem be?

thanks!

edit: messing authorization header doesn't cause 403 error, in case helps.

edit 2: no error if seek batching single insert - insert doesn't take place:

method: post, requesturi: 'http://127.0.0.1:10002/devstoreaccount1/$batch?', version: 1.1, content: system.net.http.stringcontent, headers: { accept: application/atom+xml x-ms-date: wed, 22 oct 2014 16:38:34 gmt x-ms-version: 2014-02-14 dataserviceversion: 1.0 maxdataserviceversion: 3.0 authorization: sharedkeylite devstoreaccount1:eb4jhmcsul6almtgews+gt23zbkjadyjo12ymeyhjf0= content-type: multipart/mixed; boundary=batch_boundary content-length: 1008 }

content.tostring():

--batch_boundary content-type: multipart/mixed; boundary="changeset_boundary" content-length: 885 --changeset_boundary content-type: application/http content-transfer-encoding: binary post http://127.0.0.1:10002/devstoreaccount1/batchtable? http/1.1 content-id: 1 content-type: application/atom+xml;type=entry content-length: 559 <?xml version="1.0" encoding="utf-8" standalone="yes"?> <entry xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/atom"> <title /> <updated>2014-10-22t16:38:34.6393109z</updated> <author> <name /> </author> <id /> <content type="application/xml"> <m:properties> <d:partitionkey m:type="edm.string">foo</d:partitionkey> <d:rowkey m:type="edm.string">foo</d:rowkey> <d:intval m:type="edm.int32">1</d:intval> </m:properties> </content> </entry> --changeset_boundary-- --batch_boundary--

it looks using older version of azure storage emulator, not back upwards 2014-02-14 version. please create sure emulator version @ to the lowest degree 3.2? if not, please upgrade latest version.

c# rest azure windows-azure-storage

No comments:

Post a Comment