question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: Error: Unable to retrieve document from URI

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Microsoft Edge 105.0.1343.27
  • Local OS: Windows
  • Remote OS: CentOs7
  • Remote Architecture: amd64
  • code-server --version:
1.71.0
784b0177c56c607789f9638da7b6bf3230d47a8c
x64

Steps to Reproduce

  1. open code-server
  2. open php file
  3. format file

Expected

format file

Actual

nothing

Logs

have error at devtools console

 WARN Error: Unable to retrieve document from URI 'file:///home/wwwroot/shop.pterodactyl.love/modules/servers/pterodactyl/lib/PterodactylClient.php'
	at k.getDocument (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:87:11047)
	at D.$participateInSave (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:83:31956)
	at i._doInvokeHandler (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:95:13689)
	at i._invokeHandler (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:95:13371)
	at i._receiveRequest (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:95:12141)
	at i._receiveOneMessage (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:95:10843)
	at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:95:8950
	at b.invoke (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:145)
	at p.deliver (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:2266)
	at v.fire (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:1844)
	at o.fire (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:19042)
	at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:111:17079
	at b.invoke (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:145)
	at p.deliver (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:2266)
	at v.fire (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:1844)
	at o.fire (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:19042)
	at r._receiveMessage (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:23854)
	at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:22874
	at b.invoke (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:145)
	at p.deliver (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:2266)
	at v.fire (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:1844)
	at v.acceptChunk (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:15873)
	at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:15003
	at b.invoke (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:145)
	at p.deliver (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:2266)
	at v.fire (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:60:1844)
	at v._processReadQueue (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/workbench/api/node/extensionHostProcess.js:68:34245)

Screenshot/Video

No response

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
502647092commented, Sep 16, 2022

That doesn’t tell me which code-server version. Are you sure you’re looking at the right project?

code-server: v4.7.0

0reactions
jsjoeiocommented, Sep 19, 2022

Thank you! Are you able to record a video showing what happens after you install the extension and format the document? I want to make sure I’m following the same steps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to retrieve document from URI #6664 - GitHub
I've been using codespaces for a while with no issues but since today some functionality of the editor crashes regularly.
Read more >
Unable to recover from unknown URI Schemes in javascript
The problem is that we don't get an error back, and the page seems to be dead so we can't even have a...
Read more >
Bug #726439 “Search for document returns an Unknown error
Binary package hint: yelp TEST CASE: 1. Launch Yelp 2. Select the menu 'Go / All Documents" 2. Enter some text (e.g nautilus)...
Read more >
How to Fix the 414 Request-URI Too Large Error - Kinsta
1. Log In to Your Server (And Determine Your Server Type) · 2. Find the Server Configuration File and Open It in Your...
Read more >
Troubleshoot Azure Files problems in Windows (SMB)
When you try to mount a file share, you might receive the following error: System error 5 has occurred. Access is denied. Cause...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found