{"action":"created","issue":{"url":"https://api.github.com/repos/phanan/koel/issues/77","labels_url":"https://api.github.com/repos/phanan/koel/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/phanan/koel/issues/77/comments","events_url":"https://api.github.com/repos/phanan/koel/issues/77/events","html_url":"https://github.com/phanan/koel/issues/77","id":122541248,"number":77,"title":"Error importing songs","user":{"login":"etopian","id":273319,"avatar_url":"https://avatars.githubusercontent.com/u/273319?v=3","gravatar_id":"","url":"https://api.github.com/users/etopian","html_url":"https://github.com/etopian","followers_url":"https://api.github.com/users/etopian/followers","following_url":"https://api.github.com/users/etopian/following{/other_user}","gists_url":"https://api.github.com/users/etopian/gists{/gist_id}","starred_url":"https://api.github.com/users/etopian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etopian/subscriptions","organizations_url":"https://api.github.com/users/etopian/orgs","repos_url":"https://api.github.com/users/etopian/repos","events_url":"https://api.github.com/users/etopian/events{/privacy}","received_events_url":"https://api.github.com/users/etopian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-16T16:11:43Z","updated_at":"2015-12-17T12:46:56Z","closed_at":null,"body":"```\r\nError:\r\nWhoops, looks like something went wrong.\r\n2/2 QueryException in Connection.php line 651: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'artists_name_unique' (SQL: insert into `artists` (`name`, `updated_at`, `created_at`) values (��Hitmakers Feat. KNA Connected, 2015-12-16 16:00:52, 2015-12-16 16:00:52))\r\n\r\n    in Connection.php line 651\r\n    at Connection->runQueryCallback('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52'), object(Closure)) in Connection.php line 611\r\n    at Connection->run('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52'), object(Closure)) in Connection.php line 391\r\n    at Connection->statement('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52')) in Connection.php line 347\r\n    at Connection->insert('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52')) in Processor.php line 32\r\n    at Processor->processInsertGetId(object(Builder), 'insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52'), 'id') in Builder.php line 1799\r\n    at Builder->insertGetId(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id')\r\n    at call_user_func_array(array(object(Builder), 'insertGetId'), array(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id')) in Builder.php line 943\r\n    at Builder->__call('insertGetId', array(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id')) in compiled.php line 10476\r\n    at Builder->insertGetId(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id') in compiled.php line 10476\r\n    at Model->insertAndSetId(object(Builder), array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52')) in compiled.php line 10465\r\n    at Model->performInsert(object(Builder), array()) in compiled.php line 10422\r\n    at Model->save() in compiled.php line 10055\r\n    at Model::create(array('name' => '��Hitmakers Feat. KNA Connected')) in compiled.php line 10070\r\n    at Model::firstOrCreate(array('name' => '��Hitmakers Feat. KNA Connected'), array('name' => '��Hitmakers Feat. KNA Connected')) in Artist.php line 47\r\n    at Artist::get('��Hitmakers Feat. KNA Connected') in Media.php line 103\r\n    at Media->syncFile(object(SplFileInfo)) in Media.php line 52\r\n    at Media->sync() in compiled.php line 6022\r\n    at Facade::__callStatic('sync', array()) in SettingController.php line 25\r\n    at Media::sync() in SettingController.php line 25\r\n    at SettingController->save(object(SettingRequest))\r\n    at call_user_func_array(array(object(SettingController), 'save'), array(object(SettingRequest))) in compiled.php line 8866\r\n    at Controller->callAction('save', array(object(SettingRequest))) in compiled.php line 8935\r\n    at ControllerDispatcher->call(object(SettingController), object(Route), 'save') in compiled.php line 8915\r\n    at ControllerDispatcher->Illuminate\\Routing\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9585\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9567\r\n    at Pipeline->then(object(Closure)) in compiled.php line 8916\r\n    at ControllerDispatcher->callWithinStack(object(SettingController), object(Route), object(Request), 'save') in compiled.php line 8901\r\n    at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\\Http\\Controllers\\API\\SettingController', 'save') in compiled.php line 7855\r\n    at Route->runWithCustomDispatcher(object(Request)) in compiled.php line 7826\r\n    at Route->run(object(Request)) in compiled.php line 7479\r\n    at Router->Illuminate\\Routing\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9585\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Authenticate.php line 45\r\n    at Authenticate->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9567\r\n    at Pipeline->then(object(Closure)) in compiled.php line 7480\r\n    at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7468\r\n    at Router->dispatchToRoute(object(Request)) in compiled.php line 7453\r\n    at Router->dispatch(object(Request)) in compiled.php line 2302\r\n    at Kernel->Illuminate\\Foundation\\Http\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9585\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 2926\r\n    at VerifyCsrfToken->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 12949\r\n    at ShareErrorsFromSession->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 11536\r\n    at StartSession->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 12686\r\n    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 12623\r\n    at EncryptCookies->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 2983\r\n    at CheckForMaintenanceMode->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9567\r\n    at Pipeline->then(object(Closure)) in compiled.php line 2249\r\n    at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2232\r\n    at Kernel->handle(object(Request)) in index.php line 53\r\n\r\n1/2 PDOException in Connection.php line 390: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '' for key 'artists_name_unique'\r\n\r\n    in Connection.php line 390\r\n    at PDOStatement->execute(array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52')) in Connection.php line 390\r\n    at Connection->Illuminate\\Database\\{closure}(object(MySqlConnection), 'insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52')) in Connection.php line 644\r\n    at Connection->runQueryCallback('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52'), object(Closure)) in Connection.php line 611\r\n    at Connection->run('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52'), object(Closure)) in Connection.php line 391\r\n    at Connection->statement('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52')) in Connection.php line 347\r\n    at Connection->insert('insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52')) in Processor.php line 32\r\n    at Processor->processInsertGetId(object(Builder), 'insert into `artists` (`name`, `updated_at`, `created_at`) values (?, ?, ?)', array('��Hitmakers Feat. KNA Connected', '2015-12-16 16:00:52', '2015-12-16 16:00:52'), 'id') in Builder.php line 1799\r\n    at Builder->insertGetId(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id')\r\n    at call_user_func_array(array(object(Builder), 'insertGetId'), array(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id')) in Builder.php line 943\r\n    at Builder->__call('insertGetId', array(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id')) in compiled.php line 10476\r\n    at Builder->insertGetId(array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52'), 'id') in compiled.php line 10476\r\n    at Model->insertAndSetId(object(Builder), array('name' => '��Hitmakers Feat. KNA Connected', 'updated_at' => '2015-12-16 16:00:52', 'created_at' => '2015-12-16 16:00:52')) in compiled.php line 10465\r\n    at Model->performInsert(object(Builder), array()) in compiled.php line 10422\r\n    at Model->save() in compiled.php line 10055\r\n    at Model::create(array('name' => '��Hitmakers Feat. KNA Connected')) in compiled.php line 10070\r\n    at Model::firstOrCreate(array('name' => '��Hitmakers Feat. KNA Connected'), array('name' => '��Hitmakers Feat. KNA Connected')) in Artist.php line 47\r\n    at Artist::get('��Hitmakers Feat. KNA Connected') in Media.php line 103\r\n    at Media->syncFile(object(SplFileInfo)) in Media.php line 52\r\n    at Media->sync() in compiled.php line 6022\r\n    at Facade::__callStatic('sync', array()) in SettingController.php line 25\r\n    at Media::sync() in SettingController.php line 25\r\n    at SettingController->save(object(SettingRequest))\r\n    at call_user_func_array(array(object(SettingController), 'save'), array(object(SettingRequest))) in compiled.php line 8866\r\n    at Controller->callAction('save', array(object(SettingRequest))) in compiled.php line 8935\r\n    at ControllerDispatcher->call(object(SettingController), object(Route), 'save') in compiled.php line 8915\r\n    at ControllerDispatcher->Illuminate\\Routing\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9585\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9567\r\n    at Pipeline->then(object(Closure)) in compiled.php line 8916\r\n    at ControllerDispatcher->callWithinStack(object(SettingController), object(Route), object(Request), 'save') in compiled.php line 8901\r\n    at ControllerDispatcher->dispatch(object(Route), object(Request), 'App\\Http\\Controllers\\API\\SettingController', 'save') in compiled.php line 7855\r\n    at Route->runWithCustomDispatcher(object(Request)) in compiled.php line 7826\r\n    at Route->run(object(Request)) in compiled.php line 7479\r\n    at Router->Illuminate\\Routing\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9585\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in Authenticate.php line 45\r\n    at Authenticate->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(Authenticate), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9567\r\n    at Pipeline->then(object(Closure)) in compiled.php line 7480\r\n    at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 7468\r\n    at Router->dispatchToRoute(object(Request)) in compiled.php line 7453\r\n    at Router->dispatch(object(Request)) in compiled.php line 2302\r\n    at Kernel->Illuminate\\Foundation\\Http\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9585\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 2926\r\n    at VerifyCsrfToken->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(VerifyCsrfToken), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 12949\r\n    at ShareErrorsFromSession->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 11536\r\n    at StartSession->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(StartSession), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 12686\r\n    at AddQueuedCookiesToResponse->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 12623\r\n    at EncryptCookies->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(EncryptCookies), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request)) in compiled.php line 2983\r\n    at CheckForMaintenanceMode->handle(object(Request), object(Closure))\r\n    at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'), array(object(Request), object(Closure))) in compiled.php line 9577\r\n    at Pipeline->Illuminate\\Pipeline\\{closure}(object(Request))\r\n    at call_user_func(object(Closure), object(Request)) in compiled.php line 9567\r\n    at Pipeline->then(object(Closure)) in compiled.php line 2249\r\n    at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2232\r\n    at Kernel->handle(object(Request)) in index.php line 53\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/phanan/koel/issues/comments/165443546","html_url":"https://github.com/phanan/koel/issues/77#issuecomment-165443546","issue_url":"https://api.github.com/repos/phanan/koel/issues/77","id":165443546,"user":{"login":"phanan","id":8056274,"avatar_url":"https://avatars.githubusercontent.com/u/8056274?v=3","gravatar_id":"","url":"https://api.github.com/users/phanan","html_url":"https://github.com/phanan","followers_url":"https://api.github.com/users/phanan/followers","following_url":"https://api.github.com/users/phanan/following{/other_user}","gists_url":"https://api.github.com/users/phanan/gists{/gist_id}","starred_url":"https://api.github.com/users/phanan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phanan/subscriptions","organizations_url":"https://api.github.com/users/phanan/orgs","repos_url":"https://api.github.com/users/phanan/repos","events_url":"https://api.github.com/users/phanan/events{/privacy}","received_events_url":"https://api.github.com/users/phanan/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T12:46:56Z","updated_at":"2015-12-17T12:46:56Z","body":"Ok.. anyway the fix above doesn't work for all cases, so I closed the PR. Sorry."}}