DEVTomatoCake / Pterodactyl-vsc

Pterodactyl server files in VS Code
https://open-vsx.org/extension/tomatocake/pterodactyl-vsc
MIT License
3 stars 0 forks source link

Connection error #76

Closed Xgabi86 closed 2 months ago

Xgabi86 commented 3 months ago

Sometimes, when connecting to a pterodactyl server, the server folder is added but is completely empty and if I look in the extension output I see this :

Loading extension...
Reading directory: https://pterodactyl-vsc.tomatocake.workers.dev/?url=%2Flist%3Fdirectory%3D%252F
readFile: pterodactyl:/.vscode/tasks.json: 500 Internal Server Error
readFile: pterodactyl:/.vscode/settings.json: 500 Internal Server Error
readFile: pterodactyl:/.vscode/launch.json: 500 Internal Server Error
stat: pterodactyl:/.vscode/settings.json: 500 Internal Server Error
stat: pterodactyl:/.vscode/tasks.json: 500 Internal Server Error
readDirectory response: 500 Internal Server Error
readDirectory: pterodactyl:/: 500 Internal Server Error
stat: pterodactyl:/.vscode/launch.json: 500 Internal Server Error
stat: pterodactyl:/.vscode/settings.json: 500 Internal Server Error
readFile: pterodactyl:/.vscode/tasks.json: 500 Internal Server Error
stat: pterodactyl:/.vscode/tasks.json: 500 Internal Server Error
readFile: pterodactyl:/.vscode/settings.json: 500 Internal Server Error
readFile: pterodactyl:/.vscode/launch.json: 500 Internal Server Error
stat: pterodactyl:/.vscode/launch.json: 500 Internal Server Error
DEVTomatoCake commented 2 months ago

I don't think I can reproduce this, however, it looks like there isn't any panel URL set which will certainly cause this error.

I've adjusted the extension to handle those errors by throwing an error instead, and made it also handle 500 and other unknown errors better.