INFO:__main__:Worker started. INFO:__main__:Parameters: Namespace(history_uuid='a4c676fc-e447-11ee-9431-26306f93bc33') INFO:__main__:conversion_history INFO:__main__: INFO:__main__:current_user from db Nguyễn Tuấn ERROR:__main__:processing tts_history: a4c676fc-e447-11ee-9431-26306f93bc33 ERROR:__main__:current user_id: 284 INFO:__main__:Try to download and decrypt if needed for a4c676fc-e447-11ee-9431-26306f93bc33 INFO:__main__:File downloaded successfully to: tmp/contabo_uploaded/284/20240317_101753_316272/123.docx INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:Convert TTS and send result START... INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:conversion_history_uuid a4c676fc-e447-11ee-9431-26306f93bc33 INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:input_file_path tmp/contabo_uploaded/284/20240317_101753_316272/123.docx INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:model_price_rate 1 INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:file_extension docx INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:current estimated_total_credits to calculate lock: 111354 INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:current_estimate_credits: 111354 0-123 tmp/contabo_uploaded/284/20240317_101753_316272/0-123.mp3 1-123 tmp/contabo_uploaded/284/20240317_101753_316272/1-123.mp3 2-123 tmp/contabo_uploaded/284/20240317_101753_316272/2-123.mp3 INFO:app.tts_common.services.speech:Parent process: Process-2 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 INFO:app.tts_common.services.speech:Parent process: Process-3 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 3-123 tmp/contabo_uploaded/284/20240317_101753_316272/3-123.mp3 INFO:app.tts_common.services.speech:Parent process: Process-4 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 4-123 tmp/contabo_uploaded/284/20240317_101753_316272/4-123.mp3 5-123 tmp/contabo_uploaded/284/20240317_101753_316272/5-123.mp3 INFO:app.tts_common.services.speech:Parent process: Process-5 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 6-123 tmp/contabo_uploaded/284/20240317_101753_316272/6-123.mp3 7-123 tmp/contabo_uploaded/284/20240317_101753_316272/7-123.mp3 INFO:app.tts_common.services.speech:count_all_active_key: 1239 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************YNmHJm11nBoprkMLu86OIWJgL INFO:app.tts_common.services.speech:count_all_active_key: 1239 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************5NH76IDZepEg7g4NRlOxPyWWG INFO:app.tts_common.services.speech:count_all_active_key: 1239 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************n0RccOSUqAVZ7tB9ISjA1M9YB INFO:app.tts_common.services.speech:count_all_active_key: 1239 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ca587B3thT8dbnFt1zQmaECke INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 200 OK" INFO:app.tts_common.services.speech:Requesting openAI with key: ********************n0RccOSUqAVZ7tB9ISjA1M9YB INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ca587B3thT8dbnFt1zQmaECke INFO:app.tts_common.services.speech:Requesting openAI with key: ********************5NH76IDZepEg7g4NRlOxPyWWG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************n0RccOSUqAVZ7tB9ISjA1M9YB INFO:app.tts_common.services.speech:Requesting openAI with key: ********************5NH76IDZepEg7g4NRlOxPyWWG INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ca587B3thT8dbnFt1zQmaECke INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************n0RccOSUqAVZ7tB9ISjA1M9YB INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ca587B3thT8dbnFt1zQmaECke INFO:app.tts_common.services.speech:Requesting openAI with key: ********************5NH76IDZepEg7g4NRlOxPyWWG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-ygtStyY2N6alGqHn0RccOSUqAVZ7tB9ISjA1M9YB - gpt-3.5 - 2024-03-17 10:20:27.648204 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-JnunayZRBcsmot8ca587B3thT8dbnFt1zQmaECke - gpt-3.5 - 2024-03-17 10:20:27.719741 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-gvnk1tPnKhyx47D5NH76IDZepEg7g4NRlOxPyWWG - gpt-3.5 - 2024-03-17 10:20:27.739648 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************P53qZgjp9fEijR6RuLTLA1F1O INFO:app.tts_common.services.speech:Requesting openAI with key: ********************zibp3dQ0tBQ5Cu4ImiKe4yA8T INFO:app.tts_common.services.speech:Requesting openAI with key: ********************YQQHPQYhLvWU83xJ4fmkkvRIw INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************P53qZgjp9fEijR6RuLTLA1F1O INFO:app.tts_common.services.speech:Requesting openAI with key: ********************zibp3dQ0tBQ5Cu4ImiKe4yA8T INFO:app.tts_common.services.speech:Requesting openAI with key: ********************YQQHPQYhLvWU83xJ4fmkkvRIw INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************P53qZgjp9fEijR6RuLTLA1F1O INFO:app.tts_common.services.speech:Requesting openAI with key: ********************zibp3dQ0tBQ5Cu4ImiKe4yA8T INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************YQQHPQYhLvWU83xJ4fmkkvRIw INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************P53qZgjp9fEijR6RuLTLA1F1O INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-7dym2c7vtL79lEDP53qZgjp9fEijR6RuLTLA1F1O - gpt-3.5 - 2024-03-17 10:20:40.389077 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************zibp3dQ0tBQ5Cu4ImiKe4yA8T INFO:app.tts_common.services.speech:Requesting openAI with key: ********************YQQHPQYhLvWU83xJ4fmkkvRIw INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-tgRDYNbFvUdlySQzibp3dQ0tBQ5Cu4ImiKe4yA8T - gpt-3.5 - 2024-03-17 10:20:40.573587 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-XIFxDk5ecAo2CwTYQQHPQYhLvWU83xJ4fmkkvRIw - gpt-3.5 - 2024-03-17 10:20:40.655581 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************7a2CBwqsAPHoj3M5FTzU0iKzU INFO:app.tts_common.services.speech:Requesting openAI with key: ********************oRhcNYZc22MnVEeYZXuuXWnaI INFO:app.tts_common.services.speech:Requesting openAI with key: ********************LyChHVF9fTEExU18beA0sWQsG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 12% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 12% INFO:app.tts_common.services.speech:Parent process: Process-2 END INFO:app.tts_common.services.speech:Parent process: Process-6 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 stream_to_file from openAI tmp/contabo_uploaded/284/20240317_101753_316272/0-123.mp3 output_file_path tmp/contabo_uploaded/284/20240317_101753_316272/0-123.mp3 The file tmp/contabo_uploaded/284/20240317_101753_316272/0-123.mp3 exists. exiting waiting tts-history a4c676fc-e447-11ee-9431-26306f93bc33 complete_count 0 total_pieces 8 INFO:app.tts_common.services.speech:count_all_active_key: 1240 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************egqgtzOEhBuliumqa9fcukwEG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 25% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 25% INFO:app.tts_common.services.speech:Parent process: Process-4 END INFO:app.tts_common.services.speech:Parent process: Process-7 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 complete_count 1 total_pieces 8 INFO:app.tts_common.services.speech:count_all_active_key: 1240 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************oocYMfBmm1rojzVKzJwNkatxE INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 37% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 37% INFO:app.tts_common.services.speech:Parent process: Process-5 END INFO:app.tts_common.services.speech:Parent process: Process-8 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 complete_count 2 total_pieces 8 INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 50% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 50% INFO:app.tts_common.services.speech:Parent process: Process-3 END INFO:app.tts_common.services.speech:Parent process: Process-9 START INFO:app.tts_common.services.speech:setup_api_key of model: gpt-3.5 complete_count 3 total_pieces 8 INFO:app.tts_common.services.speech:count_all_active_key: 1240 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ifBl8E8FXMMbQErhnsU58b7wI INFO:app.tts_common.services.speech:count_all_active_key: 1240 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************Q6OCuPnME968ZvPoRPFkwrdbO INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************egqgtzOEhBuliumqa9fcukwEG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************oocYMfBmm1rojzVKzJwNkatxE INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ifBl8E8FXMMbQErhnsU58b7wI INFO:app.tts_common.services.speech:Requesting openAI with key: ********************Q6OCuPnME968ZvPoRPFkwrdbO INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************egqgtzOEhBuliumqa9fcukwEG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************oocYMfBmm1rojzVKzJwNkatxE INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ifBl8E8FXMMbQErhnsU58b7wI INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************Q6OCuPnME968ZvPoRPFkwrdbO INFO:app.tts_common.services.speech:Requesting openAI with key: ********************egqgtzOEhBuliumqa9fcukwEG INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-fAF2xrpys87YkDtegqgtzOEhBuliumqa9fcukwEG - gpt-3.5 - 2024-03-17 10:20:57.886060 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************oocYMfBmm1rojzVKzJwNkatxE INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-35nfWiZjOyxmigDoocYMfBmm1rojzVKzJwNkatxE - gpt-3.5 - 2024-03-17 10:21:00.430071 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************ifBl8E8FXMMbQErhnsU58b7wI INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-dj1XzrR47F0fCQPifBl8E8FXMMbQErhnsU58b7wI - gpt-3.5 - 2024-03-17 10:21:00.723727 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************Q6OCuPnME968ZvPoRPFkwrdbO INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-MSOMRj9W6Z5ci5wQ6OCuPnME968ZvPoRPFkwrdbO - gpt-3.5 - 2024-03-17 10:21:00.909430 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************xcK3d7BUxuiPL00J90vtxwRP7 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b9F1YyREMs9RnVHG0vZh3JbBC INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************6dey6Be5ceY7U1j6GQLaxcCUt INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************iwwSaQUdxipBznNOhydIAvB4x INFO:app.tts_common.services.speech:Requesting openAI with key: ********************xcK3d7BUxuiPL00J90vtxwRP7 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b9F1YyREMs9RnVHG0vZh3JbBC INFO:app.tts_common.services.speech:Requesting openAI with key: ********************6dey6Be5ceY7U1j6GQLaxcCUt INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" INFO:app.tts_common.services.speech:Requesting openAI with key: ********************iwwSaQUdxipBznNOhydIAvB4x ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************xcK3d7BUxuiPL00J90vtxwRP7 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b9F1YyREMs9RnVHG0vZh3JbBC INFO:app.tts_common.services.speech:Requesting openAI with key: ********************6dey6Be5ceY7U1j6GQLaxcCUt INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************iwwSaQUdxipBznNOhydIAvB4x INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************xcK3d7BUxuiPL00J90vtxwRP7 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-9cyrC3lPu0i35GPxcK3d7BUxuiPL00J90vtxwRP7 - gpt-3.5 - 2024-03-17 10:21:10.820132 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b9F1YyREMs9RnVHG0vZh3JbBC INFO:app.tts_common.services.speech:Requesting openAI with key: ********************6dey6Be5ceY7U1j6GQLaxcCUt INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-dszhVEJXljnO3oqb9F1YyREMs9RnVHG0vZh3JbBC - gpt-3.5 - 2024-03-17 10:21:13.410137 INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-if4PUrKSKeiaHpR6dey6Be5ceY7U1j6GQLaxcCUt - gpt-3.5 - 2024-03-17 10:21:13.509233 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************iwwSaQUdxipBznNOhydIAvB4x INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 429 Too Many Requests" ERROR:app.tts_common.services.speech:A 429 status code was received; we should back off a bit. INFO:app.tts_common.crud.crud_openai_api_key:set_usable_at: sess-r8atHCkNGlRIbPEiwwSaQUdxipBznNOhydIAvB4x - gpt-3.5 - 2024-03-17 10:21:13.763094 INFO:app.tts_common.services.speech:Requesting openAI with key: ********************a6Xzupt7bqo6zgUiVe9mFUFbr INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************OQVW5TQawwYL9RrDsuXqnyEVM INFO:app.tts_common.services.speech:Requesting openAI with key: ********************7a2CBwqsAPHoj3M5FTzU0iKzU INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.services.speech:Requesting openAI with key: ********************9BvdivdwMc3Cxmg2wI31F97CH INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 400 Bad Request" ERROR:app.tts_common.services.speech:Another non-200-range status code was received ERROR:app.tts_common.services.speech:400 ERROR:app.tts_common.services.speech: INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:app.tts_common.helpers.translator_helper:get_boss_key response INFO:app.tts_common.helpers.translator_helper: INFO:app.tts_common.helpers.translator_helper:https://iv0fyyh85j.execute-api.eu-central-1.amazonaws.com/prod/oakey/boss/f6e5740d-099c-4084-a454-bb339b407128 INFO:app.tts_common.helpers.translator_helper:{'success': True, 'api_key': 'sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c', 'partitionKey': 'bossKey', 'created_at': '2023-08-01 11:02:34', 'id': 2, 'base_url': 'https://aihubmix.com/v1'} INFO:app.tts_common.services.speech:Using boss key in request_text_openai_by_piece INFO:app.tts_common.services.speech:Requesting openAI with key: ********************b6329C566F24e129cBeBb05A99fDb1c INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 62% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 62% INFO:httpx:HTTP Request: POST https://api.openai.com/v1/audio/speech "HTTP/1.1 401 Unauthorized" ERROR:app.tts_common.services.speech:The API key is invalid ERROR:app.tts_common.services.speech:Error code: 401 - {'error': {'message': 'Incorrect API key provided: sk-xzXro***************************************Db1c. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} INFO:app.tts_common.crud.crud_openai_api_key:deactivate_api_key: sk-xzXro7PxD2MpQzw44b6329C566F24e129cBeBb05A99fDb1c - gpt-3.5 INFO:app.tts_common.services.speech:Parent process: Process-6 END complete_count 4 total_pieces 8 INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 75% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 75% INFO:app.tts_common.services.speech:Parent process: Process-7 END complete_count 5 total_pieces 8 INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 87% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 87% INFO:app.tts_common.services.speech:Parent process: Process-8 END complete_count 6 total_pieces 8 INFO:app.tts_common.helpers.tts_history_helper:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 100% INFO:[CRUD History]:add_percent_complete: a4c676fc-e447-11ee-9431-26306f93bc33 - 100% INFO:app.tts_common.services.speech:Parent process: Process-9 END complete_count 7 total_pieces 8 INFO:Job: convert_and_send_result a4c676fc-e447-11ee-9431-26306f93bc33:join file tmp/contabo_uploaded/284/20240317_101753_316272/0-123.mp3 ERROR:__main__:Convert and send result failed ERROR:__main__:[Errno 2] No such file or directory: 'tmp/contabo_uploaded/284/20240317_101753_316272/1-123.mp3' Traceback (most recent call last): File "/app/worker.py", line 153, in main convert_result = await convert_and_send_result( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/tts_common/jobs/convert_and_send_result.py", line 151, in convert_and_send_result audio = AudioSegment.from_mp3(file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 796, in from_mp3 return cls.from_file(file, 'mp3', parameters=parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 651, in from_file file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/utils.py", line 60, in _fd_or_path_or_tempfile fd = open(fd, mode=mode) ^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'tmp/contabo_uploaded/284/20240317_101753_316272/1-123.mp3' ERROR:__main__:Traceback (most recent call last): File "/app/worker.py", line 153, in main convert_result = await convert_and_send_result( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/tts_common/jobs/convert_and_send_result.py", line 151, in convert_and_send_result audio = AudioSegment.from_mp3(file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 796, in from_mp3 return cls.from_file(file, 'mp3', parameters=parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 651, in from_file file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/utils.py", line 60, in _fd_or_path_or_tempfile fd = open(fd, mode=mode) ^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'tmp/contabo_uploaded/284/20240317_101753_316272/1-123.mp3' Traceback (most recent call last): File "/app/worker.py", line 153, in main convert_result = await convert_and_send_result( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/tts_common/jobs/convert_and_send_result.py", line 151, in convert_and_send_result audio = AudioSegment.from_mp3(file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 796, in from_mp3 return cls.from_file(file, 'mp3', parameters=parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 651, in from_file file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/utils.py", line 60, in _fd_or_path_or_tempfile fd = open(fd, mode=mode) ^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'tmp/contabo_uploaded/284/20240317_101753_316272/1-123.mp3' ERROR:__main__:a4c676fc-e447-11ee-9431-26306f93bc33 Traceback (most recent call last): File "/app/worker.py", line 153, in main convert_result = await convert_and_send_result( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/app/tts_common/jobs/convert_and_send_result.py", line 151, in convert_and_send_result audio = AudioSegment.from_mp3(file) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 796, in from_mp3 return cls.from_file(file, 'mp3', parameters=parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/audio_segment.py", line 651, in from_file file, close_file = _fd_or_path_or_tempfile(file, 'rb', tempfile=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pydub/utils.py", line 60, in _fd_or_path_or_tempfile fd = open(fd, mode=mode) ^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: 'tmp/contabo_uploaded/284/20240317_101753_316272/1-123.mp3' INFO:app.tts_common.helpers.email_helper:Send translated file failed notice email INFO:app.tts_common.helpers.email_helper:sent to message to kafka topic: tts-emails-prod INFO:Firebase client:Add notification to firebase START INFO:Firebase client:Add notification to firebase END INFO:__main__:Recalculate user locked credit INFO:__main__:Convert and send result END results save text pieces to files prepare to join audios Produced event to topic tts-emails-prod: value = {"function": "send_translated_file_failed_notice", "email_to": "nvtuan010691@gmail.com", "recipient_name": "Nguy\u1ec5n Tu\u1ea5n", "file_name": "123.docx"}