Closed t0pg3ar closed 5 years ago
Fetching suggestions for: Sean Kingston 127.0.0.1 - - [04/Nov/2019 12:39:30] "GET /suggestions?query=Sean%20Kingston HTTP/1.1" 200 - {'disambiguation': '', 'relations': [{'begin': None, 'url': {'resource': 'https://www.allmusic.com/artist/mn0000922471', 'id': '673e4962-d4d3-4880-bddf-580fcd3575e8'}, 'attribute-ids': {}, 'type': 'allmusic', 'attribute-values': {}, 'attributes': [], 'target-credit': '', 'type-id': '6b3e3c85-0002-4f34-aca6-80ace0d7e846', 'ended': False, 'target-type': 'url', 'source-credit': '', 'end': None, 'direction': 'forward'}, {'end': None, 'source-credit': '', 'direction': 'forward', 'attribute-ids': {}, 'type': 'BBC Music page', 'attribute-values': {}, 'attributes': [], 'url': {'resource': 'https://www.bbc.co.uk/music/artists/f7eb3be3-1065-4a53-94d4-e2d0c15c0b33', 'id': '32bef1b6-a688-4102-8688-ceccdd67800f'}, 'begin': None, 'ended': False, 'target-type': 'url', 'target-credit': '', 'type-id': 'd028a975-000c-4525-9333-d3c8425e4b54'}, {'begin': None, 'url': {'id': 'c57a7264-d353-48e9-a800-a4a36bcba2ff', 'resource': 'https://www.discogs.com/artist/885972'}, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'discogs', 'target-credit': '', 'type-id': '04a5b104-a4c2-4bac-99a1-7b837c37d9e4', 'target-type': 'url', 'ended': False, 'end': None, 'source-credit': '', 'direction': 'forward'}, {'end': None, 'source-credit': '', 'direction': 'forward', 'url': {'resource': 'http://www.staimusic.com/en/bands/sean-kingston_5482.html', 'id': '718abab4-3589-454d-a26e-f730301bcab8'}, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'free streaming', 'begin': None, 'ended': False, 'target-type': 'url', 'type-id': '769085a1-c2f7-4c24-a532-2375a77693bd', 'target-credit': ''}, {'direction': 'forward', 'end': None, 'source-credit': '', 'type-id': '221132e9-e30e-43f2-a741-15afc4c5fa7c', 'target-credit': '', 'target-type': 'url', 'ended': False, 'begin': None, 'url': {'id': 'be68dc40-1fab-49ec-a90a-706a06f53254', 'resource': 'https://commons.wikimedia.org/wiki/File:Sean_Kingston_Shout_Awards.jpg'}, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'image'}, {'direction': 'forward', 'source-credit': '', 'end': None, 'target-type': 'url', 'ended': False, 'type-id': 'bac47923-ecde-4b59-822e-d08f0cd10156', 'target-credit': '', 'url': {'resource': 'https://myspace.com/seankingston', 'id': '8f68c4e6-263a-43a9-8655-92f16013091b'}, 'attribute-ids': {}, 'type': 'myspace', 'attribute-values': {}, 'attributes': [], 'begin': None}, {'attribute-ids': {}, 'attribute-values': {}, 'attributes': [], 'type': 'official homepage', 'url': {'resource': 'http://www.seankingston.com/', 'id': '905ae422-a716-4762-91e9-8aa688682140'}, 'begin': None, 'target-type': 'url', 'ended': False, 'type-id': 'fe33d22f-c3b0-4d68-bd53-a856badf2b15', 'target-credit': '', 'source-credit': '', 'end': None, 'direction': 'forward'}, {'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'other databases', 'url': {'id': 'cb27c41b-8066-4e56-84d6-c896096232b0', 'resource': 'https://rateyourmusic.com/artist/sean_kingston'}, 'begin': None, 'ended': False, 'target-type': 'url', 'target-credit': '', 'type-id': 'd94fb61c-fa20-4e3c-a19a-71a949fb2c55', 'source-credit': '', 'end': None, 'direction': 'forward'}, {'begin': None, 'attribute-ids': {}, 'type': 'secondhandsongs', 'attribute-values': {}, 'attributes': [], 'url': {'id': '5ff7a455-8656-4aa4-a702-8d8e8c191b80', 'resource': 'http://www.secondhandsongs.com/artist/36211'}, 'target-credit': '', 'type-id': '79c5b84d-a206-4f4c-9832-78c028c312c3', 'target-type': 'url', 'ended': False, 'end': None, 'source-credit': '', 'direction': 'forward'}, {'target-credit': '', 'type-id': '99429741-f3f6-484b-84f8-23af51991770', 'target-type': 'url', 'ended': False, 'begin': None, 'url': {'resource': 'https://twitter.com/seankingston', 'id': '6a0d1d31-524b-45a5-a800-b87ecb271a5d'}, 'attributes': [], 'attribute-ids': {}, 'attribute-values': {}, 'type': 'social network', 'direction': 'forward', 'end': None, 'source-credit': ''}, {'direction': 'forward', 'end': None, 'source-credit': '', 'ended': False, 'target-type': 'url', 'target-credit': '', 'type-id': '689870a4-a1e4-4912-b17f-7b2664215698', 'type': 'wikidata', 'attribute-ids': {}, 'attribute-values': {}, 'attributes': [], 'url': {'resource': 'https://www.wikidata.org/wiki/Q216934', 'id': '17848072-1eeb-40a6-ba0a-04963ddff399'}, 'begin': None}, {'direction': 'forward', 'source-credit': '', 'end': None, 'target-credit': '', 'type-id': '29651736-fa6d-48e4-aadc-a557c6add1cb', 'ended': False, 'target-type': 'url', 'begin': None, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'wikipedia', 'url': {'resource': 'https://en.wikipedia.org/wiki/Sean_Kingston', 'id': '985ce215-5cca-4f45-8a05-397a31e2f191'}}, {'source-credit': '', 'end': None, 'direction': 'forward', 'type': 'youtube', 'attribute-ids': {}, 'attribute-values': {}, 'attributes': [], 'url': {'id': 'd8b89b6d-1e7f-4ace-84e9-8d48d41e2c06', 'resource': 'https://www.youtube.com/user/seankingston'}, 'begin': None, 'target-type': 'url', 'ended': False, 'type-id': '6a540e5b-58c6-4192-b6ba-dbc71ec8fcf0', 'target-credit': ''}], 'gender': 'Male', 'id': 'f7eb3be3-1065-4a53-94d4-e2d0c15c0b33', 'type-id': 'b6e035f4-3ce9-331c-97df-83397230b0df', 'sort-name': 'Kingston, Sean', 'end_area': None, 'isnis': ['0000000059578123'], 'type': 'Person', 'country': 'JM', 'life-span': {'ended': False, 'begin': '1990-02-03', 'end': None}, 'begin_area': {'id': '4a9aeb42-3763-4234-8fb8-1167ac1dfdfe', 'disambiguation': '', 'name': 'Miami', 'sort-name': 'Miami'}, 'area': {'disambiguation': '', 'name': 'Jamaica', 'sort-name': 'Jamaica', 'iso-3166-1-codes': ['JM'], 'id': '2dd47a64-91d5-3b13-bc94-80043ed063d7'}, 'ipis': ['00519491140'], 'name': 'Sean Kingston', 'gender-id': '36d3d30a-839d-3eda-8cb3-29be4384e4a9'} [2019-11-04 12:39:32,037] ERROR in app: Exception on /search [GET] Traceback (most recent call last): File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask_compat.py", line 39, in reraise raise value File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "web.py", line 14, in web return f'{main(query, True)}' File "C:\Users\peter\Desktop\semanticweb-master\main.py", line 247, in main abstract += 'Besides singing, the {} has been known to play {}. '.format(referall,filteredInstruments[0]) IndexError: list index out of range 127.0.0.1 - - [04/Nov/2019 12:39:32] "GET /search?q=Sean%20Kingston HTTP/1.1" 500 -
Sean Kingston gives a "List index out of range" error, whereafter the code stops working.
Ah thanks @t0pg3ar ! Will fic
Fix
Fetching suggestions for: Sean Kingston 127.0.0.1 - - [04/Nov/2019 12:39:30] "GET /suggestions?query=Sean%20Kingston HTTP/1.1" 200 - {'disambiguation': '', 'relations': [{'begin': None, 'url': {'resource': 'https://www.allmusic.com/artist/mn0000922471', 'id': '673e4962-d4d3-4880-bddf-580fcd3575e8'}, 'attribute-ids': {}, 'type': 'allmusic', 'attribute-values': {}, 'attributes': [], 'target-credit': '', 'type-id': '6b3e3c85-0002-4f34-aca6-80ace0d7e846', 'ended': False, 'target-type': 'url', 'source-credit': '', 'end': None, 'direction': 'forward'}, {'end': None, 'source-credit': '', 'direction': 'forward', 'attribute-ids': {}, 'type': 'BBC Music page', 'attribute-values': {}, 'attributes': [], 'url': {'resource': 'https://www.bbc.co.uk/music/artists/f7eb3be3-1065-4a53-94d4-e2d0c15c0b33', 'id': '32bef1b6-a688-4102-8688-ceccdd67800f'}, 'begin': None, 'ended': False, 'target-type': 'url', 'target-credit': '', 'type-id': 'd028a975-000c-4525-9333-d3c8425e4b54'}, {'begin': None, 'url': {'id': 'c57a7264-d353-48e9-a800-a4a36bcba2ff', 'resource': 'https://www.discogs.com/artist/885972'}, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'discogs', 'target-credit': '', 'type-id': '04a5b104-a4c2-4bac-99a1-7b837c37d9e4', 'target-type': 'url', 'ended': False, 'end': None, 'source-credit': '', 'direction': 'forward'}, {'end': None, 'source-credit': '', 'direction': 'forward', 'url': {'resource': 'http://www.staimusic.com/en/bands/sean-kingston_5482.html', 'id': '718abab4-3589-454d-a26e-f730301bcab8'}, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'free streaming', 'begin': None, 'ended': False, 'target-type': 'url', 'type-id': '769085a1-c2f7-4c24-a532-2375a77693bd', 'target-credit': ''}, {'direction': 'forward', 'end': None, 'source-credit': '', 'type-id': '221132e9-e30e-43f2-a741-15afc4c5fa7c', 'target-credit': '', 'target-type': 'url', 'ended': False, 'begin': None, 'url': {'id': 'be68dc40-1fab-49ec-a90a-706a06f53254', 'resource': 'https://commons.wikimedia.org/wiki/File:Sean_Kingston_Shout_Awards.jpg'}, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'image'}, {'direction': 'forward', 'source-credit': '', 'end': None, 'target-type': 'url', 'ended': False, 'type-id': 'bac47923-ecde-4b59-822e-d08f0cd10156', 'target-credit': '', 'url': {'resource': 'https://myspace.com/seankingston', 'id': '8f68c4e6-263a-43a9-8655-92f16013091b'}, 'attribute-ids': {}, 'type': 'myspace', 'attribute-values': {}, 'attributes': [], 'begin': None}, {'attribute-ids': {}, 'attribute-values': {}, 'attributes': [], 'type': 'official homepage', 'url': {'resource': 'http://www.seankingston.com/', 'id': '905ae422-a716-4762-91e9-8aa688682140'}, 'begin': None, 'target-type': 'url', 'ended': False, 'type-id': 'fe33d22f-c3b0-4d68-bd53-a856badf2b15', 'target-credit': '', 'source-credit': '', 'end': None, 'direction': 'forward'}, {'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'other databases', 'url': {'id': 'cb27c41b-8066-4e56-84d6-c896096232b0', 'resource': 'https://rateyourmusic.com/artist/sean_kingston'}, 'begin': None, 'ended': False, 'target-type': 'url', 'target-credit': '', 'type-id': 'd94fb61c-fa20-4e3c-a19a-71a949fb2c55', 'source-credit': '', 'end': None, 'direction': 'forward'}, {'begin': None, 'attribute-ids': {}, 'type': 'secondhandsongs', 'attribute-values': {}, 'attributes': [], 'url': {'id': '5ff7a455-8656-4aa4-a702-8d8e8c191b80', 'resource': 'http://www.secondhandsongs.com/artist/36211'}, 'target-credit': '', 'type-id': '79c5b84d-a206-4f4c-9832-78c028c312c3', 'target-type': 'url', 'ended': False, 'end': None, 'source-credit': '', 'direction': 'forward'}, {'target-credit': '', 'type-id': '99429741-f3f6-484b-84f8-23af51991770', 'target-type': 'url', 'ended': False, 'begin': None, 'url': {'resource': 'https://twitter.com/seankingston', 'id': '6a0d1d31-524b-45a5-a800-b87ecb271a5d'}, 'attributes': [], 'attribute-ids': {}, 'attribute-values': {}, 'type': 'social network', 'direction': 'forward', 'end': None, 'source-credit': ''}, {'direction': 'forward', 'end': None, 'source-credit': '', 'ended': False, 'target-type': 'url', 'target-credit': '', 'type-id': '689870a4-a1e4-4912-b17f-7b2664215698', 'type': 'wikidata', 'attribute-ids': {}, 'attribute-values': {}, 'attributes': [], 'url': {'resource': 'https://www.wikidata.org/wiki/Q216934', 'id': '17848072-1eeb-40a6-ba0a-04963ddff399'}, 'begin': None}, {'direction': 'forward', 'source-credit': '', 'end': None, 'target-credit': '', 'type-id': '29651736-fa6d-48e4-aadc-a557c6add1cb', 'ended': False, 'target-type': 'url', 'begin': None, 'attribute-ids': {}, 'attributes': [], 'attribute-values': {}, 'type': 'wikipedia', 'url': {'resource': 'https://en.wikipedia.org/wiki/Sean_Kingston', 'id': '985ce215-5cca-4f45-8a05-397a31e2f191'}}, {'source-credit': '', 'end': None, 'direction': 'forward', 'type': 'youtube', 'attribute-ids': {}, 'attribute-values': {}, 'attributes': [], 'url': {'id': 'd8b89b6d-1e7f-4ace-84e9-8d48d41e2c06', 'resource': 'https://www.youtube.com/user/seankingston'}, 'begin': None, 'target-type': 'url', 'ended': False, 'type-id': '6a540e5b-58c6-4192-b6ba-dbc71ec8fcf0', 'target-credit': ''}], 'gender': 'Male', 'id': 'f7eb3be3-1065-4a53-94d4-e2d0c15c0b33', 'type-id': 'b6e035f4-3ce9-331c-97df-83397230b0df', 'sort-name': 'Kingston, Sean', 'end_area': None, 'isnis': ['0000000059578123'], 'type': 'Person', 'country': 'JM', 'life-span': {'ended': False, 'begin': '1990-02-03', 'end': None}, 'begin_area': {'id': '4a9aeb42-3763-4234-8fb8-1167ac1dfdfe', 'disambiguation': '', 'name': 'Miami', 'sort-name': 'Miami'}, 'area': {'disambiguation': '', 'name': 'Jamaica', 'sort-name': 'Jamaica', 'iso-3166-1-codes': ['JM'], 'id': '2dd47a64-91d5-3b13-bc94-80043ed063d7'}, 'ipis': ['00519491140'], 'name': 'Sean Kingston', 'gender-id': '36d3d30a-839d-3eda-8cb3-29be4384e4a9'} [2019-11-04 12:39:32,037] ERROR in app: Exception on /search [GET] Traceback (most recent call last): File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 2446, in wsgi_app response = self.full_dispatch_request() File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1951, in full_dispatch_request rv = self.handle_user_exception(e) File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1820, in handle_user_exception reraise(exc_type, exc_value, tb) File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask_compat.py", line 39, in reraise raise value File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1949, in full_dispatch_request rv = self.dispatch_request() File "C:\Users\peter.conda\envs\semweb\lib\site-packages\flask\app.py", line 1935, in dispatch_request return self.view_functionsrule.endpoint File "web.py", line 14, in web return f'{main(query, True)}' File "C:\Users\peter\Desktop\semanticweb-master\main.py", line 247, in main abstract += 'Besides singing, the {} has been known to play {}. '.format(referall,filteredInstruments[0]) IndexError: list index out of range 127.0.0.1 - - [04/Nov/2019 12:39:32] "GET /search?q=Sean%20Kingston HTTP/1.1" 500 -
Sean Kingston gives a "List index out of range" error, whereafter the code stops working.