yndx-metrika / logs_api_integration

Script for integration with Logs API
46 stars 50 forks source link

Ошибка 117, DB::Exception: Unknown field found in TSV header: '1613536812404233133' at position 0 #35

Open SergeyPLG opened 3 years ago

SergeyPLG commented 3 years ago

Запускаю с полностью стандартными параметрами как в README. Судя по DATA SAMPLE данные скрипт получает успешно, но не может их разобрать. Что не так делаю? Спасибо!


('##### python', '2.7.15') 2021-02-19 23:30:00 MainProcess INFO CLI Options: Namespace(end_date=None, mode='regular', source='visits', start_date=None) 2021-02-19 23:30:00 MainProcess INFO UserRequest(token=u'xxxxxxx', counter_id=u'24169438', start_date_str='2021-02-17', end_date_str='2021-02-17', source='visits', fields=(u'ym:s:counterID', u'ym:s:dateTime', u'ym:s:date', u'ym:s:clientID')) 2021-02-19 23:30:01 MainProcess INFO ### CREATING TASK { "date1_str": "2021-02-17", "date2_str": "2021-02-17", "request_id": 15071596, "status": "created", "user_request": [ "xxxxxxxxx", "24169438", "2021-02-17", "2021-02-17", "visits", [ "ym:s:counterID", "ym:s:dateTime", "ym:s:date", "ym:s:clientID" ] ] } 2021-02-19 23:30:02 MainProcess INFO ### DELAY 20 secs 2021-02-19 23:30:22 MainProcess INFO ### CHECKING STATUS 2021-02-19 23:30:22 MainProcess INFO API Request status: processed 2021-02-19 23:30:22 MainProcess INFO ### SAVING DATA 2021-02-19 23:30:22 MainProcess INFO Part #0 2021-02-19 23:30:23 MainProcess INFO ### DATA SAMPLE 2021-02-19 23:30:23 MainProcess INFO ym:s:clientID ym:s:counterID ym:s:date ym:s:dateTime 1613536812404233133 24169438 2021-02-17 2021-02-17 07:40:13 1613543552696180493 24169438 2021-02-17 2021-02-17 09:32:33 1613564820503177582 24169438 2021-02-17 2021-02-17 15:27:09 16135789602285303 24169438 2021-02-17 2021-02-17 19:22:40 2021-02-19 23:30:23 MainProcess WARNING 1 rows were filtered out 2021-02-19 23:30:23 MainProcess CRITICAL Iteration #1 failed 2021-02-19 23:30:23 MainProcess CRITICAL Code: 117, e.displayText() = DB::Exception: Unknown field found in TSV header: '1613536812404233133' at position 0 Set the 'input_format_skip_unknown_fields' parameter explicitly to ignore and proceed (version 21.2.3.15 (official build))

SergeyPLG commented 3 years ago

Нашел ошибку, в logs_api.py строка 175 опечатка, output_datE, вместо output_data. Поправил - заработало. Надо в исходнике поправить)

esliklientovnet commented 3 years ago

Нашел ошибку, в logs_api.py строка 175 опечатка, output_datE, вместо output_data. Поправил - заработало. Надо в исходнике поправить)

Спасибо, Сергей! Помогло! На дворе октябрь 21го, а ошибка в коде все та же!

vsmetannikov commented 2 years ago

часа 3 убил пока догадался в issues посмотреть ) Спасибо! Но ошибка все еще там =(