{"action":"created","issue":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/6540","repository_url":"https://api.github.com/repos/influxdata/influxdb","labels_url":"https://api.github.com/repos/influxdata/influxdb/issues/6540/labels{/name}","comments_url":"https://api.github.com/repos/influxdata/influxdb/issues/6540/comments","events_url":"https://api.github.com/repos/influxdata/influxdb/issues/6540/events","html_url":"https://github.com/influxdata/influxdb/issues/6540","id":152678726,"number":6540,"title":"InfluxDB Client /query endpoint: invalid character 'M' looking for beginning of value","user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-05-03T00:59:50Z","updated_at":"2016-05-03T03:34:43Z","closed_at":"2016-05-03T01:35:07Z","body":"Script to reproduce:\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\r\n\t\"github.com/influxdata/influxdb/client/v2\"\r\n)\r\n\r\nfunc main() {\r\n\tc, _ := client.NewHTTPClient(client.HTTPConfig{\r\n\t\tAddr: \"http://localhost:8086\",\r\n\t})\r\n\r\n\tdatabase := \"telegraf\"\r\n\t_, err := c.Query(client.Query{\r\n\t\tCommand: fmt.Sprintf(\"CREATE DATABASE \\\"%s\\\"\", database),\r\n\t})\r\n\r\n\tif err != nil {\r\n\t\tfmt.Println(err)\r\n\t}\r\n}\r\n```\r\n\r\nthis bug began at commit: 6f61c0e\r\n\r\nany commit before that returns no error.\r\n\r\ncc @jsternberg "},"comment":{"url":"https://api.github.com/repos/influxdata/influxdb/issues/comments/216427852","html_url":"https://github.com/influxdata/influxdb/issues/6540#issuecomment-216427852","issue_url":"https://api.github.com/repos/influxdata/influxdb/issues/6540","id":216427852,"user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"created_at":"2016-05-03T03:34:43Z","updated_at":"2016-05-03T03:34:43Z","body":"PS: would it be possible to return a more useful error message? `invalid character 'M' looking for beginning of value` is a bit obscure"}}