Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tsp init hanging when done due to unclosed connection #3185

Merged
merged 4 commits into from
Apr 23, 2024

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Apr 17, 2024

fix #3102

Problem was that when following redirect we need to explicitly close the response watch otherwise we always await on it

However I switched to using follow-redirects library that will more safely handle redirect for us.(e.g. max redirects)
With node 22 the fetch api should not be experimental anymore so we could potentially migrate to it next year when node 20 is out of support

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 17, 2024

All changed packages have been documented.

  • @typespec/compiler
Show changes

@typespec/compiler - fix ✏️

Fix tsp init hanging when done due to unclosed connection

@azure-sdk
Copy link
Collaborator

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/3185/

Check the website changes at https://tspwebsitepr.z22.web.core.windows.net/prs/3185/

@timotheeguerin timotheeguerin added this pull request to the merge queue Apr 23, 2024
Merged via the queue into microsoft:main with commit 36c339b Apr 23, 2024
21 checks passed
@timotheeguerin timotheeguerin deleted the fix/init-never-ending branch April 23, 2024 17:21
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.

[Bug]: tsp init Process Hangs After Project Creation
3 participants