mcp-server-cloudflare icon indicating copy to clipboard operation
mcp-server-cloudflare copied to clipboard

Token expired and unhandled exception

Open ahmadawais opened this issue 9 months ago • 3 comments

╭ Checking for existing Wrangler auth info Step 1 of 3
│ 
├ If anything goes wrong, try running 'npx wrangler@latest login' manually and retrying.
│
├ Wrangler auth info loaded!
│
├ Access token expired, refreshing...
[DEBUG 2025-03-08T20:50:13.267Z] Unhandled rejection: Error: Failed to refresh access token

Then it fails.

ahmadawais avatar Mar 08 '25 20:03 ahmadawais

If you follow guidance to run npx wrangler@latest login — and then re-run — does it work?

irvinebroque avatar Mar 09 '25 01:03 irvinebroque

yep that fixes it but should probably end gracefully.

ahmadawais avatar Mar 09 '25 07:03 ahmadawais

I have the similar issue but for accessing the cloudflare API, currently zones only return "testMode", however workers works perfectly.

bradleyhession1 avatar Mar 15 '25 01:03 bradleyhession1

This is relevant to the local stdio based server. We are now maintaining the remote MCP server, which shouldn't have this issue.

cmsparks avatar May 01 '25 19:05 cmsparks