vscode: GitHub Commit error after June VS Code update

Issue Type: Bug

After updating VS Code with the June update, I get an Error (Bad status code: 500) when I try to commit my code udpates to GitHub.

This is the command output:

git -c user.useConfigOnly=true commit --quiet Error: Bad status code: 500 at ClientRequest.<anonymous> (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option.

This is the Git Log:

[2022-07-08T04:36:17.835Z] > git -c user.useConfigOnly=true commit --quiet [363ms] [2022-07-08T04:36:17.835Z] Error: Bad status code: 500 at ClientRequest.<anonymous> (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option. [2022-07-08T04:36:17.891Z] > git config --get-all user.name [52ms] [2022-07-08T04:36:17.948Z] > git config --get-all user.email [54ms]

VS Code version: Code 1.69.0 (92d25e35d9bf1a6b16f7d0758f25d48ace11e5b9, 2022-07-07T05:28:36.503Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No

System Info
Item Value
CPUs Intel® Core™ i7-6700HQ CPU @ 2.60GHz (8 x 2592)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.86GB (7.56GB free)
Process Argv –crash-reporter-id b6d5ae76-63a0-48eb-aa8e-87fb9f164435
Screen Reader no
VM 0%
Extensions (6)
Extension Author (truncated) Version
githistory don 0.6.19
python ms- 2022.10.0
vscode-pylance ms- 2022.7.20
jupyter ms- 2022.6.1001902341
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.8
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdc:30486549

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 31 (10 by maintainers)

Most upvoted comments

Issue Type: Bug

After updating VS Code with the June update, I get an Error (Bad status code: 500) when I try to commit my code udpates to GitHub.

This is the command output:

git -c user.useConfigOnly=true commit --quiet Error: Bad status code: 500 at ClientRequest. (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option.

This is the Git Log:

[2022-07-08T04:36:17.835Z] > git -c user.useConfigOnly=true commit --quiet [363ms] [2022-07-08T04:36:17.835Z] Error: Bad status code: 500 at ClientRequest. (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option. [2022-07-08T04:36:17.891Z] > git config --get-all user.name [52ms] [2022-07-08T04:36:17.948Z] > git config --get-all user.email [54ms]

VS Code version: Code 1.69.0 (92d25e3, 2022-07-07T05:28:36.503Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No

System Info Extensions (6) A/B Experiments

After reading the documentation I now understand the behavior 😃 https://code.visualstudio.com/updates/v1_69#_author-commit-message-using-an-editor

so just untick this if you want the old experience image

@lszomoru closing this for verification since the associated PR was merged.

@rubensa, are you able to reproduce the problem with the latest Insiders release?

@lszomoru I’ll try to check.

@lszomoru It works. The editor (COMMIT_EDITMSG) is opened with previous commit message but I need to click on the “Accept Commit Message” icon.
If I click on the “Discard Commit Message” icon the commit is cancelled with message “Commit operation was cancelled due to empty commit message.” (I expected it to simple use the already commited message, as I’m amending to that).

Issue Type: Bug After updating VS Code with the June update, I get an Error (Bad status code: 500) when I try to commit my code udpates to GitHub. This is the command output:

git -c user.useConfigOnly=true commit --quiet Error: Bad status code: 500 at ClientRequest. (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option.

This is the Git Log: [2022-07-08T04:36:17.835Z] > git -c user.useConfigOnly=true commit --quiet [363ms] [2022-07-08T04:36:17.835Z] Error: Bad status code: 500 at ClientRequest. (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option. [2022-07-08T04:36:17.891Z] > git config --get-all user.name [52ms] [2022-07-08T04:36:17.948Z] > git config --get-all user.email [54ms] VS Code version: Code 1.69.0 (92d25e3, 2022-07-07T05:28:36.503Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No System Info Extensions (6) A/B Experiments

After reading the documentation I now understand the behavior 😃 https://code.visualstudio.com/updates/v1_69#_author-commit-message-using-an-editor

so just untick this if you want the old experience image

worked for me. thanks.

Issue Type: Bug

After updating VS Code with the June update, I get an Error (Bad status code: 500) when I try to commit my code udpates to GitHub.

This is the command output:

git -c user.useConfigOnly=true commit --quiet Error: Bad status code: 500 at ClientRequest. (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option.

This is the Git Log:

[2022-07-08T04:36:17.835Z] > git -c user.useConfigOnly=true commit --quiet [363ms] [2022-07-08T04:36:17.835Z] Error: Bad status code: 500 at ClientRequest. (c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor-main.js:1:470) at Object.onceWrapper (node:events:510:26) at ClientRequest.emit (node:events:390:28) at HTTPParser.parserOnIncomingClient (node:_http_client:623:27) at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17) at Socket.socketOnData (node:_http_client:487:22) at Socket.emit (node:events:390:28) at addChunk (node:internal/streams/readable:315:12) at readableAddChunk (node:internal/streams/readable:289:9) at Socket.Readable.push (node:internal/streams/readable:228:10) error: There was a problem with the editor ‘“c:\Users\scott\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\git\dist\git-editor.sh”’. Please supply the message using either -m or -F option. [2022-07-08T04:36:17.891Z] > git config --get-all user.name [52ms] [2022-07-08T04:36:17.948Z] > git config --get-all user.email [54ms]

VS Code version: Code 1.69.0 (92d25e3, 2022-07-07T05:28:36.503Z) OS version: Windows_NT x64 10.0.19043 Restricted Mode: No

System Info Extensions (6) A/B Experiments

Provide a message or text while committing Files

Remote-ssh. Windows 10 at my desk connected to Linux beast somewhere in the building.