[GH-ISSUE #20] Error 422 Unprocessable Entity #14

Closed
opened 2026-02-26 02:31:48 +03:00 by kerem · 6 comments
Owner

Originally created by @bhulsman on GitHub (Dec 14, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/20

I just installed Koel on Laravel's Homestead and tried adding a directory containing some music. When clicking scan I get the error '422 Unprocessable Entity' (POST http://koel.local/api/settings 422 (Unprocessable Entity)).

Request payload:

{media_path: "E:\koel_demo\music"}

Response

{"media_path":["validation.valid_path"]}
Originally created by @bhulsman on GitHub (Dec 14, 2015). Original GitHub issue: https://github.com/koel/koel/issues/20 I just installed Koel on Laravel's Homestead and tried adding a directory containing some music. When clicking scan I get the error '422 Unprocessable Entity' (POST http://koel.local/api/settings 422 (Unprocessable Entity)). Request payload: ``` {media_path: "E:\koel_demo\music"} ``` Response ``` {"media_path":["validation.valid_path"]} ```
kerem closed this issue 2026-02-26 02:31:49 +03:00
Author
Owner

@phanan commented on GitHub (Dec 14, 2015):

Can you try E:\\koel_demo\music?

<!-- gh-comment-id:164455987 --> @phanan commented on GitHub (Dec 14, 2015): Can you try `E:\\koel_demo\music`?
Author
Owner

@bhulsman commented on GitHub (Dec 14, 2015):

Still getting the same error, no difference.

<!-- gh-comment-id:164460649 --> @bhulsman commented on GitHub (Dec 14, 2015): Still getting the same error, no difference.
Author
Owner

@phanan commented on GitHub (Dec 14, 2015):

Sorry, but I've not tested Koel on Windows yet – other users don't seem to have this problem though. From how it looks, the error comes from here.

<!-- gh-comment-id:164471222 --> @phanan commented on GitHub (Dec 14, 2015): Sorry, but I've not tested Koel on Windows yet – other users don't seem to have this problem though. From how it looks, the error comes from [here](https://github.com/phanan/koel/blob/master/app/Providers/AppServiceProvider.php#L18).
Author
Owner

@bhulsman commented on GitHub (Dec 14, 2015):

My mistake! The 'homestead vagrant box' cannot reach directories that aren't shared, in this case, a local directory on my Windows PC.

Not very handy that no error was provided, so that's the real issue here.

<!-- gh-comment-id:164483142 --> @bhulsman commented on GitHub (Dec 14, 2015): My mistake! The 'homestead vagrant box' cannot reach directories that aren't shared, in this case, a local directory on my Windows PC. Not very handy that no error was provided, so that's the real issue here.
Author
Owner

@phanan commented on GitHub (Dec 14, 2015):

You're right. I'll be adding better error handlers. Glad you sorted it out!

<!-- gh-comment-id:164487299 --> @phanan commented on GitHub (Dec 14, 2015): You're right. I'll be adding better error handlers. Glad you sorted it out!
Author
Owner

@bhulsman commented on GitHub (Dec 14, 2015):

Great! Hopefully I can contribute something to this project, I really like it 👍

<!-- gh-comment-id:164487604 --> @bhulsman commented on GitHub (Dec 14, 2015): Great! Hopefully I can contribute something to this project, I really like it :+1:
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#14
No description provided.