I am trying to use v1 compatibility mode against an influx cloud instance and I get a 501 for /query. I have followed all instructions listed here InfluxDB 1.x compatibility API | InfluxDB Cloud Documentation to query with a token. I know that my token is correct as I can use it against other endpoints. Additionally if I change my token I get a 401. This implies I have a correct token getting passed the auth, but then I get a 501 from query endpoint.
curl -v --get "https://us-east-1-1.aws.cloud2.influxdata.com/query" \ --header "Authorization: Token <token>" \ --header 'Content-type: application/json' \ --data-urlencode "db=metrics" \ --data-urlencode "q=SELECT * FROM cpu_usage"
< HTTP/2 501 < date: Tue, 04 Apr 2023 23:49:56 GMT < content-type: application/json; charset=utf-8 < content-length: 54 < request-id: bd76494b5aae2bf4757fdc20c522aefb < trace-id: 59d15201432bbc1d < trace-sampled: false < vary: Accept-Encoding < x-platform-error-code: not implemented < x-request-id: bd76494b5aae2bf4757fdc20c522aefb < strict-transport-security: max-age=15724800; includeSubDomains < x-influxdb-request-id: bd76494b5aae2bf4757fdc20c522aefb < x-influxdb-build: Cloud
I have confirmed the metrics dbrp is setup
influx v1 dbrp list ID Database Bucket ID Retention Policy Default Organization ID 0afe7de4228aa000 metrics <removed> default-rp true <removed>
also of note, if I use the cli with v1 shell, I get a 501 with every query as well