Closed guest271314 closed 1 year ago
Hi @guest271314 that's a weird one. Especially that you've getting http 500
s and only after the 4th request 🤔 . There is a chance that the ephemeral preview is being evicted reliably in a period of time that happens to correspond to 4 iterations of you loop.
Is the behaviour still happening? Can you share a plunk that demonstrates this?
The meesages printed at console
were interesting. I took a screenshot and posted here in case experiments freeze or crash the OS. At a different OS now. Lost the original code. Will try to reproduce.
@ggoodman 500
status code occurs after arbitrary number of requests, could be 2d request
plnkr https://plnkr.co/edit/DjoHuCmBxDa8Z0EE?open=lib%2Fscript.js
This is the same issue as https://github.com/plnkr/feedback/issues/261. Previews fail fetching new resources just after a few seconds.
Only run.plnkr.co/plunks/<plunkID>
URLs work.
See https://run.plnkr.co/plunks/DjoHuCmBxDa8Z0EE/. The loop works there.
Hi folks, I've just gone and bumped the lifetime of the previews up a tad more. Hope this helps.
Describe the bug 500 status code when same file is requested 4th time
To Reproduce Steps to reproduce the behavior:
Create several approximately 1 second .oga (.ogg) and .opus files
Drag and drop the files to project file tree
Request the files in sequential order in an infinite loop, in pertinent part
At the 4th request note that one of the requests for the file will throw a 500 error
DOMException: Unable to decode audio data
error when usingAudioContext.decodeAudioData()
with response fromfetch()
Errors / logs in developer tools
Expected behavior No 500 or unable to decode audio data errors to be thrown.
Screenshots![Screenshot_2021-01-24_07-01-53](https://user-images.githubusercontent.com/4174848/105634288-1f26f080-5e12-11eb-96e0-9b47953d736c.png)
Desktop (please complete the following information):
Additional context No errors are thrown when running the same code at
localhost
.