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:
Jack Danger 2019-09-27 11:14:53 -07:00 committed by GitHub
parent 23c1696b72
commit 4497f18c1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"""{