Skip to content

Commit

Permalink
Add RayID to wrangler login debug message (#6315)
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa authored Jul 23, 2024
1 parent ebc85c3 commit 3fd94e7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/olive-walls-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

chore: Add RayID to `wrangler login` error message displayed when a user hits a bot challenge page
2 changes: 1 addition & 1 deletion packages/wrangler/src/user/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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")}`
);
}
}
Expand Down

0 comments on commit 3fd94e7

Please sign in to comment.