diff --git a/.changeset/olive-walls-shake.md b/.changeset/olive-walls-shake.md new file mode 100644 index 000000000000..6e41189bf009 --- /dev/null +++ b/.changeset/olive-walls-shake.md @@ -0,0 +1,5 @@ +--- +"wrangler": patch +--- + +chore: Add RayID to `wrangler login` error message displayed when a user hits a bot challenge page diff --git a/packages/wrangler/src/user/user.ts b/packages/wrangler/src/user/user.ts index 9a2a4ec8a232..dc07a36736f9 100644 --- a/packages/wrangler/src/user/user.ts +++ b/packages/wrangler/src/user/user.ts @@ -1285,7 +1285,7 @@ async function getJSONFromResponse(response: Response) { ); if (text.match(/challenge-platform/)) { logger.error( - "It looks like you might have hit a bot challenge page. This may be transient but if not, please contact Cloudflare to find out what can be done." + `It looks like you might have hit a bot challenge page. This may be transient but if not, please contact Cloudflare to find out what can be done. When you contact Cloudflare, please provide your Ray ID: ${response.headers.get("cf-ray")}` ); } }