You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/wrangler/src/__tests__/deploy.test.ts
+31-37Lines changed: 31 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -451,29 +451,24 @@ describe("deploy", () => {
451
451
`[APIError: A request to the Cloudflare API (/accounts/some-account-id/workers/services/test-name) failed.]`
452
452
);
453
453
expect(std.out).toMatchInlineSnapshot(`
454
-
"
455
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/services/test-name) failed.[0m
456
-
457
-
Authentication error [code: 10000]
458
-
459
-
460
-
📎 It looks like you are authenticating Wrangler via a custom API token set in an environment variable.
461
-
Please ensure it has the correct permissions for this operation.
462
-
463
-
Getting User settings...
464
-
ℹ️ The API Token is read from the CLOUDFLARE_API_TOKEN environment variable.
465
-
👋 You are logged in with an User API Token, associated with the email [email protected].
466
-
┌───────────────┬────────────┐
467
-
│ Account Name │ Account ID │
468
-
├───────────────┼────────────┤
469
-
│ Account One │ account-1 │
470
-
├───────────────┼────────────┤
471
-
│ Account Two │ account-2 │
472
-
├───────────────┼────────────┤
473
-
│ Account Three │ account-3 │
474
-
└───────────────┴────────────┘
475
-
🔓 To see token permissions visit https://dash.cloudflare.com/profile/api-tokens."
476
-
`);
454
+
"
455
+
📎 It looks like you are authenticating Wrangler via a custom API token set in an environment variable.
456
+
Please ensure it has the correct permissions for this operation.
457
+
458
+
Getting User settings...
459
+
ℹ️ The API Token is read from the CLOUDFLARE_API_TOKEN environment variable.
460
+
👋 You are logged in with an User API Token, associated with the email [email protected].
461
+
┌───────────────┬────────────┐
462
+
│ Account Name │ Account ID │
463
+
├───────────────┼────────────┤
464
+
│ Account One │ account-1 │
465
+
├───────────────┼────────────┤
466
+
│ Account Two │ account-2 │
467
+
├───────────────┼────────────┤
468
+
│ Account Three │ account-3 │
469
+
└───────────────┴────────────┘
470
+
🔓 To see token permissions visit https://dash.cloudflare.com/profile/api-tokens."
471
+
`);
477
472
});
478
473
479
474
it("should error helpfully if pages_build_output_dir is set in wrangler.toml",async()=>{
@@ -11552,19 +11547,18 @@ export default{
11552
11547
expect(std).toMatchInlineSnapshot(`
11553
11548
Object {
11554
11549
"debug": "",
11555
-
"err": "",
11556
-
"info": "",
11557
-
"out": "Total Upload: xx KiB / gzip: xx KiB
11558
-
No bindings found.
11559
-
11560
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed.[0m
11550
+
"err": "[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/test-name/versions) failed.[0m
11561
11551
11562
11552
Worker Startup Timed out. This could be due to script exceeding size limits or expensive code in
11563
11553
the global scope. [code: 11337]
11564
11554
11565
11555
If you think this is a bug, please open an issue at:
`[APIError: A request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.]`
738
738
);
739
739
740
-
expect(std.out).toMatchInlineSnapshot(`
741
-
"🌀 Creating the secrets for the Worker \\"script-name\\"
742
-
743
-
🚨 Secrets failed to upload
744
-
745
-
[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.[0m
740
+
expect(std).toMatchInlineSnapshot(`
741
+
Object {
742
+
"debug": "",
743
+
"err": "[31mX [41;31m[[41;97mERROR[41;31m][0m [1mA request to the Cloudflare API (/accounts/some-account-id/workers/scripts/script-name/settings) failed.[0m
746
744
747
745
This is a helpful error [code: 1]
748
746
749
747
If you think this is a bug, please open an issue at:
0 commit comments