[GH-ISSUE #1369] Error 422 when uploading a song #785

Closed
opened 2026-02-26 02:34:16 +03:00 by kerem · 2 comments
Owner

Originally created by @haysberg on GitHub (Oct 12, 2021).
Original GitHub issue: https://github.com/koel/koel/issues/1369

Describe the bug
When uploading a song through the web interface, I get the Error 422 message.

To reproduce
Steps to reproduce the behavior:

  1. Go to "Upload"
  2. Drag and Drop or browse my local files
  3. Upload
  4. See error

Expected behavior
The song uploads.

Screenshots
https://i.imgur.com/aTopVAP.png

Environment

  • Koel version 5.1.5
  • OS: Windows 10 21H1
  • Chrome Version 94.0.4606.81
  • PHP version 7.4

Additional context
I have modified my Nginx configuration file to allow for bigger files as the server would send me a 413 error as the file was apparently too large. Now I just get an error 422.

Originally created by @haysberg on GitHub (Oct 12, 2021). Original GitHub issue: https://github.com/koel/koel/issues/1369 **Describe the bug** When uploading a song through the web interface, I get the Error 422 message. **To reproduce** Steps to reproduce the behavior: 1. Go to "Upload" 2. Drag and Drop or browse my local files 3. Upload 4. See error **Expected behavior** The song uploads. **Screenshots** https://i.imgur.com/aTopVAP.png **Environment** - Koel version 5.1.5 - OS: Windows 10 21H1 - Chrome Version 94.0.4606.81 - PHP version 7.4 **Additional context** I have modified my Nginx configuration file to allow for bigger files as the server would send me a 413 error as the file was apparently too large. Now I just get an error 422.
kerem closed this issue 2026-02-26 02:34:16 +03:00
Author
Owner

@phanan commented on GitHub (Dec 10, 2021):

422 as in, which what message or details? Your screenshot hardly helps, sorry.

<!-- gh-comment-id:990772250 --> @phanan commented on GitHub (Dec 10, 2021): 422 as in, which what message or details? Your screenshot hardly helps, sorry.
Author
Owner

@ndegruchy commented on GitHub (Jan 12, 2022):

I just installed this, and get the same error when uploading:

app.js?id=f9ac3802a37314924103:2 
        
POST https://music.degruchy.org/api/upload 422
(anonymous) @ app.js?id=f9ac3802a37314924103:2
RHXT.e.exports @ app.js?id=f9ac3802a37314924103:2
e.exports @ app.js?id=f9ac3802a37314924103:2
Promise.then (async)
c.request @ app.js?id=f9ac3802a37314924103:2
(anonymous) @ app.js?id=f9ac3802a37314924103:2
request @ app.js?id=f9ac3802a37314924103:2
(anonymous) @ app.js?id=f9ac3802a37314924103:2
(anonymous) @ app.js?id=f9ac3802a37314924103:2
l @ app.js?id=f9ac3802a37314924103:2
post @ app.js?id=f9ac3802a37314924103:2
(anonymous) @ app.js?id=f9ac3802a37314924103:2
(anonymous) @ app.js?id=f9ac3802a37314924103:2
j @ app.js?id=f9ac3802a37314924103:2
upload @ app.js?id=f9ac3802a37314924103:2
proceed @ app.js?id=f9ac3802a37314924103:2
queue @ app.js?id=f9ac3802a37314924103:2
handleFiles @ 22.fabbef89e6ec3760609f.js:1
n @ app.js?id=f9ac3802a37314924103:2
(anonymous) @ 22.fabbef89e6ec3760609f.js:1
i @ 22.fabbef89e6ec3760609f.js:1
Promise.then (async)
s @ 22.fabbef89e6ec3760609f.js:1
i @ 22.fabbef89e6ec3760609f.js:1
Promise.then (async)
s @ 22.fabbef89e6ec3760609f.js:1
(anonymous) @ 22.fabbef89e6ec3760609f.js:1
f @ 22.fabbef89e6ec3760609f.js:1
onDrop @ 22.fabbef89e6ec3760609f.js:1
n @ app.js?id=f9ac3802a37314924103:2
drop @ 22.fabbef89e6ec3760609f.js:1
t @ app.js?id=f9ac3802a37314924103:2
Sr.t._withTask.i._withTask @ app.js?id=f9ac3802a37314924103:2

Otherwise it seems to work fine.

<!-- gh-comment-id:1011441546 --> @ndegruchy commented on GitHub (Jan 12, 2022): I just installed this, and get the same error when uploading: ``` app.js?id=f9ac3802a37314924103:2 POST https://music.degruchy.org/api/upload 422 (anonymous) @ app.js?id=f9ac3802a37314924103:2 RHXT.e.exports @ app.js?id=f9ac3802a37314924103:2 e.exports @ app.js?id=f9ac3802a37314924103:2 Promise.then (async) c.request @ app.js?id=f9ac3802a37314924103:2 (anonymous) @ app.js?id=f9ac3802a37314924103:2 request @ app.js?id=f9ac3802a37314924103:2 (anonymous) @ app.js?id=f9ac3802a37314924103:2 (anonymous) @ app.js?id=f9ac3802a37314924103:2 l @ app.js?id=f9ac3802a37314924103:2 post @ app.js?id=f9ac3802a37314924103:2 (anonymous) @ app.js?id=f9ac3802a37314924103:2 (anonymous) @ app.js?id=f9ac3802a37314924103:2 j @ app.js?id=f9ac3802a37314924103:2 upload @ app.js?id=f9ac3802a37314924103:2 proceed @ app.js?id=f9ac3802a37314924103:2 queue @ app.js?id=f9ac3802a37314924103:2 handleFiles @ 22.fabbef89e6ec3760609f.js:1 n @ app.js?id=f9ac3802a37314924103:2 (anonymous) @ 22.fabbef89e6ec3760609f.js:1 i @ 22.fabbef89e6ec3760609f.js:1 Promise.then (async) s @ 22.fabbef89e6ec3760609f.js:1 i @ 22.fabbef89e6ec3760609f.js:1 Promise.then (async) s @ 22.fabbef89e6ec3760609f.js:1 (anonymous) @ 22.fabbef89e6ec3760609f.js:1 f @ 22.fabbef89e6ec3760609f.js:1 onDrop @ 22.fabbef89e6ec3760609f.js:1 n @ app.js?id=f9ac3802a37314924103:2 drop @ 22.fabbef89e6ec3760609f.js:1 t @ app.js?id=f9ac3802a37314924103:2 Sr.t._withTask.i._withTask @ app.js?id=f9ac3802a37314924103:2 ``` Otherwise it seems to work fine.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#785
No description provided.