Skip to content

Commit

Permalink
Fix bug where Custom Event channels weren't automatically crated on f…
Browse files Browse the repository at this point in the history
…unction deploys. (#5700)

Deploying Eventarc Custom Event Function deploy fails for projects that doesn't have `"projects/cf3-tq-sample/locations/us-central1/channels/firebase"` channel.

Fixes bug introduced in #5443.
  • Loading branch information
taeold committed Apr 20, 2023
1 parent bd0dc4d commit 18c03e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- Releases Firestore Emulator 1.17.1
- Propagates page token from ListDocumentsResponse to GetOrListDocumentsResponse in Firestore emulator.
- Fixes an issue where Secret Manager secrets were tagged incorrectly (#5704).
- Fix bug where Custom Event channels weren't automatically crated on function deploys (#5700)
2 changes: 1 addition & 1 deletion src/gcp/eventarc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const client = new Client({
* Gets a Channel.
*/
export async function getChannel(name: string): Promise<Channel | undefined> {
const res = await client.get<Channel>(name);
const res = await client.get<Channel>(name, { resolveOnHTTPError: true });
if (res.status === 404) {
return undefined;
}
Expand Down

0 comments on commit 18c03e7

Please sign in to comment.