microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
221 stars 10 forks source link

[BUG] Stream terminated before required bytes were read. #1426

Closed lolvlol closed 1 week ago

lolvlol commented 2 weeks ago

Describe the Issue

When opening the .sln solution, an error message appears: Stream terminated before required bytes were read. IdeBenefitsSource: Failed to fetch entitlements. Error: 'Error: Request to https://api.subscriptions.visualstudio.microsoft.com/Me/Entitlements/IDEBenefits?api-version=2023-03-26&caller=vscode failed with status code: 401 and response ""'

Steps To Reproduce

Open a C# project at random

Expected Behavior

No response

Environment Information

VS Code version: 1.92.2 azure snap Extension version: v1.9.55

lolvlol commented 1 week ago

问题已经解决,原因是使用了ImDisk Toolkit修改了TEMP环境变量造成的,环境变量这种东西以后还是少碰为妙,一旦修改报错起来真是一点提示都没有。 The problem has been solved. The reason is that the ImDisk Toolkit is used to modify the TEMP environment variable. The environment variable is still less likely to be touched. Once the modification is wrong, there is really no hint.