Skip to content

Commit 2d36b58

Browse files
authored
chore(site): log errors when page fails with not_available in e2e tests (#16219)
coder/internal#279 tracks a flake we've been seeing of late. I noticed log lines like these: ``` [onResponse] url=http://localhost:3111/api/v2/workspaces/2fedd3ad-58a9-49be-9e61-177878be7611/watch status=200 body=not_available [onResponse] url=http://localhost:3111/api/v2/workspaceagents/753ee86d-46cb-4641-97f6-7b4c9c9a9e27/watch-metadata status=200 body=not_available ``` No other debugging info seems to be available for these responses, so let's add some. Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 8e409e3 commit 2d36b58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

site/e2e/hooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const beforeCoderTest = (page: Page) => {
3535
responseText = "skipped...";
3636
}
3737
} catch (error) {
38+
console.error(error);
3839
responseText = "not_available";
3940
}
4041

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy