Skip to content

Conversation

@jeanp413
Copy link
Member

@jeanp413 jeanp413 commented May 1, 2025

Description

Improve error logging for fetch error calls

Related Issue(s)

Fixes #

How to test

Documentation

/hold

@jeanp413
Copy link
Member Author

jeanp413 commented May 1, 2025

Now we get more detailed info like Error: getaddrinfo ENOTFOUND gitpod.io

2025-05-01 19:03:15.958 [error] TypeError: fetch failed
	at node:internal/deps/undici/undici:13502:13
	at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
	at async Lz.globalThis.fetch (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:175:23474)
	at async f.fetchValidScopes (/Users/jeanpierre/.vscode/extensions/gitpod.gitpod-desktop-0.0.183/out/extension.js:2:1369026)
	at async f.getSessions (/Users/jeanpierre/.vscode/extensions/gitpod.gitpod-desktop-0.0.183/out/extension.js:2:1368242)
	at async Sw.$getSessions (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:113:3875)
  Error: getaddrinfo ENOTFOUND gitpod.io
  	at GetAddrInfoReqWrap.onlookupall [as oncomplete] (node:dns:120:26)

@jeanp413 jeanp413 merged commit 9fd73f7 into master May 1, 2025
1 check passed
Copy link
Contributor

@kylos101 kylos101 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ makes sense, thank you, JP!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants