Local Development setup failed SfError: Failed to download site: Server responded with status 500 - Internal Server Error
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
Research direction
Reproduce the failure with sf lightning dev site and a selected page, then inspect the stack-trace entry points expSite.js at downloadSiteApi and downloadSite, plus site.js at LightningDevSite.run. Compare the download response with the reported 500 and verify that the command completes and shows the site preview.
Written by the indexing model from the issue text.
Description
Summary
Steps To Reproduce:
- Run sf lightning dev site command
- Select the Page that you want to preview
Expected Result
Should run the command and show the site preview.
Actual Result
[local-dev] Downloading site (this may take a few minutes)... failed.
Local Development setup failed SfError: Failed to download site: Server responded with status 500 - Internal Server Error
at ExperienceSite.downloadSiteApi (file:///C:/Users/wysiwyg/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/lib/shared/experience/expSite.js:233:27)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async ExperienceSite.downloadSite (file:///C:/Users/wysiwyg/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/lib/shared/experience/expSite.js:168:22)
at async LightningDevSite.run (file:///C:/Users/wysiwyg/AppData/Local/sf/node_modules/@salesforce/plugin-lightning-dev/lib/commands/lightning/dev/site.js:63:27)
at async LightningDevSite._run (C:\Users\wysiwyg\AppData\Local\sf\node_modules\@salesforce\plugin-lightning-dev\node_modules\@oclif\core\lib\command.js:181:22)
at async Config.runCommand (C:\Program Files\sf\client\node_modules\@oclif\core\lib\config\config.js:456:25)
at async run (C:\Program Files\sf\client\node_modules\@oclif\core\lib\main.js:96:16)
at async file:///C:/Program%20Files/sf/client/bin/run.js:15:1 {
actions: undefined,
exitCode: 1,
context: undefined,
data: undefined,
cause: undefined
}
Current Salesforce CLI Version :
» Warning: @salesforce/cli update available from 2.78.3 to 2.94.6.
@oclif/plugin-autocomplete 3.2.21 (core)
@oclif/plugin-commands 4.1.20 (core)
@oclif/plugin-help 6.2.25 (core)
@oclif/plugin-not-found 3.2.40 (core)
@oclif/plugin-plugins 5.4.32 (core)
@oclif/plugin-search 1.2.21 (core)
@oclif/plugin-update 4.6.31 (core)
@oclif/plugin-version 2.2.23 (core)
@oclif/plugin-warn-if-update-available 3.1.33 (core)
@oclif/plugin-which 3.2.29 (core)
@salesforce/lwc-dev-mobile 2.3.0
@salesforce/sfdx-plugin-lwc-test 1.2.1 (1.2.1)
@salesforce/sfdx-scanner 4.9.0 (4.9.0)
apex 3.6.8 (core)
api 1.3.3 (core)
auth 3.6.94 (core)
code-analyzer 5.2.2
data 4.0.11 (core)
deploy-retrieve 3.20.0 (core)
info 3.4.39 (core)
lightning-dev 3.5.0 (prerelease)
limits 3.3.46 (core)
marketplace 1.3.7 (core)
org 5.2.32 (core)
packaging 2.9.17 (core)
schema 3.3.50 (core)
settings 2.4.16 (core)
sobject 1.4.50 (core)
telemetry 3.6.33 (core)
templates 56.3.38 (core)
trust 3.7.65 (core)
user 3.6.9 (core)
Uninstalled JIT Plugins:
community 3.3.11
custom-metadata 3.3.41
dev 2.5.1
devops-center 1.2.27
signups 2.6.13
Additional Information:
- I have tried installing different versions of Salesforce CLI, such as my current version (2.78.3) and the Latest (2.94), but got the same result every time I run the command.
- Dominant language
- TypeScript
- Stars
- 19
- Forks
- 19
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from salesforcecli/plugin-lightning-dev
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
salesforcecli/plugin-lightning-dev#686 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
salesforcecli/plugin-lightning-dev#627 · 2 comments · 1 reaction ·
-
BUG P2
Difficulty 3/5 1-2 days Newbie friendliness 45/100
salesforcecli/plugin-lightning-dev#544 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
salesforcecli/plugin-lightning-dev#456 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
salesforcecli/plugin-lightning-dev#428 · 2 reactions ·
All issues in salesforcecli/plugin-lightning-dev
Similar issues
-
comp/dashboard P3 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
NousResearch/hermes-agent#117722 ·
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 76/100
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·