Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

queues subscriptions create: no email.sending source type, and no zone/domain flags

オープン 初心者向け
#262 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
cli

調査の方向性

cf queues subscriptions create コマンドから始め、--source-type の選択肢とソース固有のフラグをどのように定義しているか確認します。その処理を、issue に示されている Wrangler コマンドおよび API が受け付ける subscription body と比較します。email.sending が受け付けられ、ゾーン ID とドメインのフラグが source.zone_id と source.domain に値を設定すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

upstream

cf queues subscriptions create cannot create an Email Sending event subscription with flags. The --source-type choice list has no email.sending, and there are no flags for the two fields that source needs (zone_id and domain). The only way is --body. This is the same kind of gap as #179 (Artifacts), plus the missing source fields.

Version: cf v1.0.0-beta.10

Actual

$ cf queues subscriptions create --source-type email.sending --events message.bounced --dry-run
┌ Error
│ Invalid values:
│ Argument: source-type, Given: "email.sending", Choices: "images", "kv", "r2",
│ "superSlurper", "vectorize", "workersAi.model", "workersBuilds.worker",
│ "workers.script", "workflows.workflow"
└

Expected

  • email.sending in the --source-type choices.
  • Flags for the source's zone_id and domain, for example --source-zone-id and --source-domain. Wrangler has --zone-id and --domain for this source (wrangler queues subscription create <queue> --source email.sending --zone-id <id> --domain <domain>), and it sends them as source.zone_id and source.domain.

The Email Service docs describe these subscriptions: https://developers.cloudflare.com/email-service/platform/event-subscriptions/

Workaround that works

cf queues subscriptions create --body '{"name":"<name>","enabled":true,"source":{"type":"email.sending","zone_id":"<zone id>","domain":"<sending domain>"},"destination":{"type":"queues.queue","queue_id":"<queue id>"},"events":["message.bounced","message.complained","message.rejected","message.failed"]}'

The API accepted this and returned the subscription with "source": {"name": "Email Service", "type": "email.sending", ...}. Related: #181 (events typed as a string in the schema).

主要言語
TypeScript
スター
916
フォーク
53
平均マージ
18時間 42分
マージ済み PR(30日)
199

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudflare/cf のほかの issue

cloudflare/cf の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。