-
Notifications
You must be signed in to change notification settings - Fork 639
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
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
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.