We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
调用 cos-go-sdk-v5/0.7.59 版 sdk 中 ObjectService 的 Select 始终返回503
func (c *cosClient) QueryJson(objectKey string) ([]byte, error) { // 执行SELECT请求。 body, err := c.client.Object.Select(context.Background(), objectKey, &cos.ObjectSelectOptions{ Expression: `select * from COSObject`, ExpressionType: "SQL", InputSerialization: &cos.SelectInputSerialization{ JSON: &cos.JSONInputSerialization{ Type: "DOCUMENT", }, }, OutputSerialization: &cos.SelectOutputSerialization{ JSON: &cos.JSONOutputSerialization{ RecordDelimiter: "\n", }, }, }) if err != nil { return nil, err } defer body.Close() // 读取内容。 content, err := io.ReadAll(body) if err != nil { return nil, err } return content, nil }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
调用 cos-go-sdk-v5/0.7.59 版 sdk 中 ObjectService 的 Select 始终返回503
The text was updated successfully, but these errors were encountered: