ThanatosDi / EpubConv_Python

Use python convert epub file from Simplified Chinese to Traditional Chinese on windows
Apache License 2.0
90 stars 15 forks source link

zhconvert Request error. status code: 429 #25

Closed tkh0395 closed 1 month ago

tkh0395 commented 2 years ago

2022-07-28 02:26:14,367 EPUB INFO : function: version, msg: 2.0.5 2022-07-28 02:26:14,368 EPUB INFO : function: _read_config, msg: already read config engine: zhconvert_bata converter: Traditional format: Horizontal loglevel: DEBUG syslevel: INFO file_check: True enable_pause: True 2022-07-28 02:26:14,368 EPUB INFO : function: convert, msg: file path: MY PATH 2022-07-28 02:26:14,443 EPUB INFO : function: convert, msg: unzip file "EPUB FILE" success and get convert file list 2022-07-28 02:26:14,443 EPUB INFO : function: _content_lang, msg: convert language to zh-TW 2022-07-28 02:26:14,452 EPUB INFO : function: _zhconvert_bata, msg: async convert content. 2022-07-28 02:26:14,934 EPUB ERROR : function: convert, msg: zhconvert Request error. status code: 429 Press any key to continue . . .

jfcherng commented 2 years ago

fyi, https://github.com/maple3142/ebook-converter/issues/17

tkh0395 commented 2 years ago

issue solved itself by time i guess

ThanatosDi commented 2 years ago

@jfcherng hi, I want to know how many times to request per second let server loading not to high I want to be as polite as possible when it comes to using the API, thanks

jfcherng commented 2 years ago

I want to know how many times to request per second

My NGINX setup for APIs: rate=20r/s, burst=20 nodelay

ThanatosDi commented 2 years ago

I want to know how many times to request per second

My NGINX setup for APIs: rate=20r/s, burst=20 nodelay

thanks recently, I am refactoring the code and I will add some limit when user used async request

tkh0395 commented 2 years ago

error is back again, first time using in 1 month I'm using this, and the first epub for converting, already saying im causing too many requests Edit: after some small trials I found out that is async that is causing the issue, normal 繁化姬 mode doesnt

ThanatosDi commented 1 year ago

@tkh0395 now I still refactoring all code, but the progress is slow due to work the async request limit will add by next version