loadSound does not reject on 404 response
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- audio-video-rtc
Research direction
Find the loadSound implementation and its audio loading path, then check how a 404 is reported and how the returned Promise handles failures. Make the Promise reject when the audio file cannot be loaded, and confirm the failure can be caught by conventional error handling.
Written by the indexing model from the issue text.
Description
As the title states.
Latest release (p5.sound.js 0.4.1)
loadSound returns a Promise, which is fulfilled with a SoundFile if everything goes correctly.
However, if something goes wrong (i.e. the audio file does not exist at the specified path), the promise is never rejected - instead, it remains pending.
This prevents any conventional means of error handling.
- Dominant language
- JavaScript
- Stars
- 60
- Forks
- 28
- Avg merge
- 8h 53m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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 processing/p5.sound.js
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
processing/p5.sound.js#132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
processing/p5.sound.js#131 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
processing/p5.sound.js#130 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
processing/p5.sound.js#113 · 1 comment · 1 reaction ·
-
p5.Gain.amp() throws this.node.volume is undefinedPossibly taken @leocb claimed this 8 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
processing/p5.sound.js#128 ·
All issues in processing/p5.sound.js
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Fei-Away/Codex-Dream-Skin#449 ·
Maintainers usually reply within 1 day
-
Claude Code plugin does not wire the edit-time Floor hookPossibly taken @dgr8akki claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 4 days
-
Administration: required plugin configuration field stays invalid after restoring its saved valueOpenneeds-triage Platform(Default)
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
nearform/ag-grid-url-sync#314 · 1 reaction ·
Maintainers usually reply within 1 day
-
chore
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
idean3885/claude-ops-agent#910 ·
Maintainers usually reply within 1 day