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
					
				@ -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"?>
 | 
					ERROR_RESPONSE = u"""<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			||||||
  <Response>
 | 
					  <ErrorResponse>
 | 
				
			||||||
    <Errors>
 | 
					    <Errors>
 | 
				
			||||||
      <Error>
 | 
					      <Error>
 | 
				
			||||||
        <Code>{{error_type}}</Code>
 | 
					        <Code>{{error_type}}</Code>
 | 
				
			||||||
@ -23,7 +23,7 @@ ERROR_RESPONSE = u"""<?xml version="1.0" encoding="UTF-8"?>
 | 
				
			|||||||
      </Error>
 | 
					      </Error>
 | 
				
			||||||
    </Errors>
 | 
					    </Errors>
 | 
				
			||||||
  <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>
 | 
					  <RequestID>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</RequestID>
 | 
				
			||||||
</Response>
 | 
					</ErrorResponse>
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ERROR_JSON_RESPONSE = u"""{
 | 
					ERROR_JSON_RESPONSE = u"""{
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user