Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot destructure property 'GracePeriod' of 'config.Swarm.Co #2254

Closed
aldyknightly opened this issue Sep 5, 2022 · 1 comment · Fixed by #2255
Closed

TypeError: Cannot destructure property 'GracePeriod' of 'config.Swarm.Co #2254

aldyknightly opened this issue Sep 5, 2022 · 1 comment · Fixed by #2255
Assignees
Labels
kind/bug A bug in existing code (including security flaws)

Comments

@aldyknightly
Copy link

👉️ Please describe what you were doing when this error happened.

Specifications

  • OS: win32
  • IPFS Desktop Version: 0.23.0
  • Electron Version: 19.0.9
  • Chrome Version: 102.0.5005.167

Error

TypeError: Cannot destructure property 'GracePeriod' of 'config.Swarm.ConnMgr' as it is undefined.
    at migrateConfig (C:\Users\TIK\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\config.js:209:13)
    at getIpfsd (C:\Users\TIK\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:56:5)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async startDaemon (C:\Users\TIK\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\daemon.js:210:17)
    at async startIpfs (C:\Users\TIK\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:48:17)
    at async setupDaemon (C:\Users\TIK\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\daemon\index.js:116:3)
    at async run (C:\Users\TIK\AppData\Local\Programs\IPFS Desktop\resources\app.asar\src\index.js:85:5)
@aldyknightly aldyknightly added kind/bug A bug in existing code (including security flaws) need/triage Needs initial labeling and prioritization labels Sep 5, 2022
@hacdias hacdias removed the need/triage Needs initial labeling and prioritization label Sep 5, 2022
@ipfs ipfs deleted a comment from welcome bot Sep 5, 2022
@hacdias
Copy link
Member

hacdias commented Sep 5, 2022

Thanks for this report. It seems to indeed be an error as we do not check if the property in the configuration actually exists before accessing it!

@hacdias hacdias self-assigned this Sep 5, 2022
@hacdias hacdias changed the title [gui error report] TypeError: Cannot destructure property 'GracePeriod' of 'config.Swarm.Co TypeError: Cannot destructure property 'GracePeriod' of 'config.Swarm.Co Sep 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws)
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants