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;
},
});
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/stopinstead ofhttps://www.googleapis.com/storage/v1/channels/channel-name/stopthis can be temporarily fixed with (since there is only 1 method for .channel, which is
.stop- there are no checks on the interceptor