Skip to content

storage.channel stop request has invalid URL #1145

@AVVS

Description

@AVVS

channel id is used to construct request URI, and always results in 404 (gsutil has the same bug btw),

ie it should be: https://www.googleapis.com/storage/v1/channels/stop instead of https://www.googleapis.com/storage/v1/channels/channel-name/stop

this can be temporarily fixed with (since there is only 1 method for .channel, which is .stop - there are no checks on the interceptor

channel.interceptors.push({
  request: (requestOptions) => {
    requestOptions.uri = requestOptions.uri.replace(`${channel}/`, '');
    return requestOptions;
  },
});

Metadata

Metadata

Labels

api: storageIssues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions