Closed Ivanelgran closed 5 years ago
Привет. Предполагаю, что сегодня ночью выкатили какое то обновление, и сразу после него посыпалась ошибка:
Error: 'rhx_gis' parser_1 | Traceback (most recent call last): parser_1 | File "/usr/src/app/parser/instagram/agents.py", line 50, in update parser_1 | self.rhx_gis = data["rhx_gis"] parser_1 | KeyError: 'rhx_gis' parser_1 | parser_1 | During handling of the above exception, another exception occurred: parser_1 | parser_1 | Traceback (most recent call last): parser_1 | File "/usr/src/app/parser/inst_parser.py", line 118, in proc_create parser_1 | self.media[i], self.pointer[i] = self.agent.get_media(self.inst_tag, count=post_count, delay=1) parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 105, in wrapper parser_1 | raise exception parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 100, in wrapper parser_1 | return func(obj, *args, *kwargs) parser_1 | File "/usr/src/app/parser/instagram/agents.py", line 88, in get_media parser_1 | data = self.update(obj, settings=settings) parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 105, in wrapper parser_1 | raise exception parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 100, in wrapper parser_1 | return func(obj, args, **kwargs) parser_1 | File "/usr/src/app/parser/instagram/agents.py", line 71, in update parser_1 | raise UnexpectedResponse(exception, response.url) parser_1 | instagram.exceptions.UnexpectedResponse: Get unexpected response from 'https://www.instagram.com/chelyabinsk.foto/' parser_1 | Error: 'rhx_gis'
Create fast fix. Maybe it is work bad
Привет. Предполагаю, что сегодня ночью выкатили какое то обновление, и сразу после него посыпалась ошибка:
Error: 'rhx_gis' parser_1 | Traceback (most recent call last): parser_1 | File "/usr/src/app/parser/instagram/agents.py", line 50, in update parser_1 | self.rhx_gis = data["rhx_gis"] parser_1 | KeyError: 'rhx_gis' parser_1 | parser_1 | During handling of the above exception, another exception occurred: parser_1 | parser_1 | Traceback (most recent call last): parser_1 | File "/usr/src/app/parser/inst_parser.py", line 118, in proc_create parser_1 | self.media[i], self.pointer[i] = self.agent.get_media(self.inst_tag, count=post_count, delay=1) parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 105, in wrapper parser_1 | raise exception parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 100, in wrapper parser_1 | return func(obj, *args, *kwargs) parser_1 | File "/usr/src/app/parser/instagram/agents.py", line 88, in get_media parser_1 | data = self.update(obj, settings=settings) parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 105, in wrapper parser_1 | raise exception parser_1 | File "/usr/src/app/parser/instagram/exceptions.py", line 100, in wrapper parser_1 | return func(obj, args, **kwargs) parser_1 | File "/usr/src/app/parser/instagram/agents.py", line 71, in update parser_1 | raise UnexpectedResponse(exception, response.url) parser_1 | instagram.exceptions.UnexpectedResponse: Get unexpected response from 'https://www.instagram.com/chelyabinsk.foto/' parser_1 | Error: 'rhx_gis'