Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Badkey :cover on album creation #8

Open
Kleidukos opened this issue Dec 18, 2018 · 0 comments
Open

Badkey :cover on album creation #8

Kleidukos opened this issue Dec 18, 2018 · 0 comments

Comments

@Kleidukos
Copy link
Contributor

Kleidukos commented Dec 18, 2018

key :cover not found

Log message
17:50:15.863 request_id=2lonmoukbllqrd5g000000k5 [info] Converted error {:badkey, :cover, %{artist: "Agent Fresco", links: %{amazonmusic: "https://www.amazon.com/Destrier-Agent-Fresco/dp/B079
V1YS3W?SubscriptionId=AKIAJ2ZJBLTVW2RH7GAQ&tag=mobilead05388-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B079V1YS3W", applemusic: "https://itunes.apple.com/us/album/destrier/134966
2969?uo=4", bandcamp: "", deezer: "https://www.deezer.com/album/57187212", googleplay: "https://play.google.com/music/m/Bblwxe55j7zb2nhq4vuhx2mrmxu?signup_if_needed=1", soundcloud: "", spotif
y: "https://play.spotify.com/album/1syoohGc0fQAoJWy57XZUF", youtube: "https://music.youtube.com/watch?v=GMXgrz8dKDU"}, name: "Destrier", tags: "Alternative rock, Progressive metal, Path Rock,
 Post-Rock"}} to 500 response
17:50:15.863 request_id=2lonmoukbllqrd5g000000k5 [info] Sent 500 in 3ms
17:50:15.865 [error] #PID<0.1818.0> running NpWeb.Endpoint (connection #PID<0.1817.0>, stream id 1) terminated
Server: persephone.glitchbra.in:80 (http)
Request: POST /album/new
** (exit) an exception was raised:
    ** (KeyError) key :cover not found in: %{artist: "Agent Fresco", links: %{amazonmusic: "https://www.amazon.com/Destrier-Agent-Fresco/dp/B079V1YS3W?SubscriptionId=AKIAJ2ZJBLTVW2RH7GAQ&tag=
mobilead05388-20&linkCode=xm2&camp=2025&creative=165953&creativeASIN=B079V1YS3W", applemusic: "https://itunes.apple.com/us/album/destrier/1349662969?uo=4", bandcamp: "", deezer: "https://www.
deezer.com/album/57187212", googleplay: "https://play.google.com/music/m/Bblwxe55j7zb2nhq4vuhx2mrmxu?signup_if_needed=1", soundcloud: "", spotify: "https://play.spotify.com/album/1syoohGc0fQA
oJWy57XZUF", youtube: "https://music.youtube.com/watch?v=GMXgrz8dKDU"}, name: "Destrier", tags: "Alternative rock, Progressive metal, Path Rock, Post-Rock"}
        (np) lib/np/utils.ex:42: Np.Utils.handle_cover/1
        (np) lib/np/resources/resources.ex:73: Np.Resources.create_album/1
        (np) lib/np_web/controllers/album_controller.ex:22: NpWeb.AlbumController.create/2
        (np) lib/np_web/controllers/album_controller.ex:1: NpWeb.AlbumController.action/2
        (np) lib/np_web/controllers/album_controller.ex:1: NpWeb.AlbumController.phoenix_controller_pipeline/2
        (np) lib/np_web/endpoint.ex:1: NpWeb.Endpoint.instrument/4
        (phoenix) lib/phoenix/router.ex:275: Phoenix.Router.__call__/1
        (np) lib/np_web/endpoint.ex:1: NpWeb.Endpoint.plug_builder_call/2
17:50:38.572 request_id=2lonmq8u3rk0es622o0000l5 [info] POST /album/new
17:50:38.588 request_id=2lonmq8u3rk0es622o0000l5 [info] Converted error {:badmatch, {:error, :eacces}} to 500 response
17:50:38.588 request_id=2lonmq8u3rk0es622o0000l5 [info] Sent 500 in 16ms
17:50:38.590 [error] #PID<0.1820.0> running NpWeb.Endpoint (connection #PID<0.1819.0>, stream id 1) terminated
Server: persephone.glitchbra.in:80 (http)
Request: POST /album/new
** (exit) an exception was raised:
    ** (MatchError) no match of right hand side value: {:error, :eacces}
        (np) lib/np/utils.ex:45: Np.Utils.handle_cover/1
        (np) lib/np/resources/resources.ex:73: Np.Resources.create_album/1
        (np) lib/np_web/controllers/album_controller.ex:22: NpWeb.AlbumController.create/2
        (np) lib/np_web/controllers/album_controller.ex:1: NpWeb.AlbumController.action/2
        (np) lib/np_web/controllers/album_controller.ex:1: NpWeb.AlbumController.phoenix_controller_pipeline/2
        (np) lib/np_web/endpoint.ex:1: NpWeb.Endpoint.instrument/4
        (phoenix) lib/phoenix/router.ex:275: Phoenix.Router.__call__/1
        (np) lib/np_web/endpoint.ex:1: NpWeb.Endpoint.plug_builder_call/2
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant