fixing ErrorResponse top-level tag (#2434)
In the golang SDK the previous format throws an unmarshaling error:
/usr/local/Cellar/go/1.12.6/libexec/src/encoding/xml/read.go:209 &errors.errorString{s:"unknown error response tag, {{ Response} []}"}
err: <*>SerializationError: failed to unmarshal error message
This commit is contained in:
parent
23c1696b72
commit
4497f18c1a
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ SINGLE_ERROR_RESPONSE = u"""<?xml version="1.0" encoding="UTF-8"?>
|
|||
"""
|
||||
|
||||
ERROR_RESPONSE = u"""<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Response>
|
||||
<ErrorResponse>
|
||||
<Errors>
|
||||
<Error>
|
||||
<Code>{{error_type}}</Code>
|
||||
|
|
@ -23,7 +23,7 @@ ERROR_RESPONSE = u"""<?xml version="1.0" encoding="UTF-8"?>
|
|||
</Error>
|
||||
</Errors>
|
||||
<RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>
|
||||
</Response>
|
||||
</ErrorResponse>
|
||||
"""
|
||||
|
||||
ERROR_JSON_RESPONSE = u"""{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue