sql-machine-learning / gomaxcompute

A Go driver for MaxCompute.
41 stars 11 forks source link

Add XML parsing for errors #43

Closed tonyyang-svail closed 5 years ago

tonyyang-svail commented 5 years ago

On invalid SQL syntax, the server returns 400 with the following error messages. We should support parsing them.

<?xml version="1.0" encoding="UTF-8"?>
<Error>
    <Code>ParseError</Code>
    <Message><![CDATA[ODPS-0130161:[1,1] Parse exception - invalid token 'SLEECT']]></Message>
    <RequestId>5583C0893F7EC2D353</RequestId>
    <HostId>odps.aliyun.com</HostId>
</Error>