Fix Cloud Serverless database operations using wrong HTTP client plane - #57
Merged
Conversation
Copilot
AI
changed the title
Fix InfluxDB Cloud Serverless list_databases connection error
Fix Cloud Serverless database operations using wrong HTTP client plane
Jun 4, 2026
Copilot created this pull request from a session on behalf of
jstirnaman
June 4, 2026 14:50
View session
jstirnaman
marked this pull request as ready for review
June 4, 2026 22:24
jstirnaman
changed the base branch from
dependabot/npm_and_yarn/axios-1.16.0
to
main
June 5, 2026 15:12
jstirnaman
temporarily deployed
to
cloud-serverless
June 5, 2026 17:36 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cloud Serverless
list_databasesfailed with connection refused while health checks and queries succeeded. Root cause:/api/v2/bucketsendpoints were routed to management plane instead of data plane.Changes
Database Management Service (
database-management.service.ts)listDatabasesCloudServerless,createDatabaseCloudServerless,updateDatabaseCloudServerless,deleteDatabaseCloudServerless: ChangedgetInfluxHttpClient(true)→getInfluxHttpClient(false)Schema Management Service (
serverless-schema-management.service.ts)listSchemas,getSchema,createSchema,updateSchema: ChangedgetInfluxHttpClient(true)→getInfluxHttpClient(false)private async listDatabasesCloudServerless(): Promise<DatabaseInfo[]> { try { - const httpClient = this.baseService.getInfluxHttpClient(true); + const httpClient = this.baseService.getInfluxHttpClient(false); const response = await httpClient.get<{ buckets?: any[] }>( "/api/v2/buckets", );Context
For Cloud Serverless:
/query,/write,/api/v2/*console.influxdata.com)The parameter distinction matters for consistent behavior and token usage even when URLs are identical.