pot-app / pot-desktop

🌈一个跨平台的划词翻译和OCR软件 | A cross-platform software for text translation and recognition.
https://pot-app.com
GNU General Public License v3.0
10.41k stars 472 forks source link

[BUG]: 使用智谱API后返回的结果内容间隔是两个空格 #701

Open you-hengh opened 8 months ago

you-hengh commented 8 months ago

Description

我在使用智谱API提供的翻译, 但返回的结果内容单词间隔是2个空格 我不知道这是什么缘故

Reproduction

2024-02-16_11-08-05

Platform

Windows

System Version

Windows 11 专业版 23H2

Window System (Linux Only)

None

Software Version

2.7.6

Log File

[2024-02-16][02:34:58][INFO][pot] ============== Start App ==============
[2024-02-16][02:34:58][INFO][pot] Init Config Store
[2024-02-16][02:34:58][INFO][pot::config] Load config from: "C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"
[2024-02-16][02:34:58][INFO][pot::config] Config loaded
[2024-02-16][02:34:58][INFO][pot::tray] Update tray with language: zh_cn, copy mode: target
[2024-02-16][02:34:58][INFO][pot::hotkey] Registered global shortcut: Alt+Q for hotkey_selection_translate
[2024-02-16][02:34:58][INFO][pot::hotkey] Registered global shortcut: Alt+W for hotkey_ocr_translate
[2024-02-16][02:34:58][DEBUG][tiny_http] Server listening on 127.0.0.1:60828
[2024-02-16][02:34:58][DEBUG][tiny_http] Running accept thread
[2024-02-16][02:34:58][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", gh.pylogmon.com)
[2024-02-16][02:34:58][DEBUG][reqwest::connect] starting new connection: https://gh.pylogmon.com/
[2024-02-16][02:34:58][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://gh.pylogmon.com/'
[2024-02-16][02:34:58][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897))
[2024-02-16][02:34:58][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897
[2024-02-16][02:34:58][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897
[2024-02-16][02:34:58][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-16][02:34:59][TRACE][hyper::client::conn] client handshake Http1
[2024-02-16][02:34:59][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-16][02:34:59][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-16][02:34:59][TRACE][hyper::client::pool] checkout dropped for ("https", gh.pylogmon.com)
[2024-02-16][02:34:59][TRACE][tracing::span] encode_headers;
[2024-02-16][02:34:59][TRACE][tracing::span::active] -> encode_headers;
[2024-02-16][02:34:59][TRACE][hyper::proto::h1::role] Client::encode method=GET, body=None
[2024-02-16][02:34:59][TRACE][tracing::span::active] <- encode_headers;
[2024-02-16][02:34:59][TRACE][tracing::span] -- encode_headers;
[2024-02-16][02:34:59][DEBUG][hyper::proto::h1::io] flushed 143 bytes
[2024-02-16][02:34:59][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][02:35:00][TRACE][tracing::span] parse_headers;
[2024-02-16][02:35:00][TRACE][tracing::span::active] -> parse_headers;
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::role] Response.parse bytes=1369
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::role] Response.parse Complete(1273)
[2024-02-16][02:35:00][TRACE][tracing::span::active] <- parse_headers;
[2024-02-16][02:35:00][TRACE][tracing::span] -- parse_headers;
[2024-02-16][02:35:00][DEBUG][hyper::proto::h1::io] parsed 30 headers
[2024-02-16][02:35:00][DEBUG][hyper::proto::h1::conn] incoming body is content-length (6407 bytes)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::decode] decode; state=Length(6407)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(6311)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::decode] decode; state=Length(6311)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(4942)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::decode] decode; state=Length(4942)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(3573)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::decode] decode; state=Length(3573)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(2204)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::decode] decode; state=Length(2204)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(835)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::decode] decode; state=Length(835)
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::io] received 835 bytes
[2024-02-16][02:35:00][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:35:00][TRACE][hyper::client::pool] pool dropped, dropping pooled (("https", gh.pylogmon.com))
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::dispatch] client tx closed
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] State::close_write()
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Closed, keep_alive: Disabled }
[2024-02-16][02:35:00][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-16][02:53:16][INFO][pot::window] Mouse position: 805, 482
[2024-02-16][02:53:16][INFO][pot::window] Current Monitor: Monitor { name: Some("\\\\.\\DISPLAY1"), size: PhysicalSize { width: 3840, height: 2160 }, position: PhysicalPosition { x: 0, y: 0 }, scale_factor: 1.25 }
[2024-02-16][02:53:16][INFO][pot::window] Window not existence, Creating new window: translate
[2024-02-16][02:53:16][TRACE][os_info::imp] windows::current_platform is called
[2024-02-16][02:53:16][TRACE][os_info::imp] Returning Info { os_type: Windows, version: Semantic(10, 0, 22631), edition: Some("Windows 11 Professional"), codename: None, bitness: X64, architecture: None }
[2024-02-16][02:53:16][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", fanyi.baidu.com)
[2024-02-16][02:53:16][DEBUG][reqwest::connect] starting new connection: https://fanyi.baidu.com/
[2024-02-16][02:53:16][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://fanyi.baidu.com/'
[2024-02-16][02:53:16][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897))
[2024-02-16][02:53:16][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897
[2024-02-16][02:53:16][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897
[2024-02-16][02:53:16][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-16][02:53:16][TRACE][notify::windows] Event: path = `C:\Users\admin\AppData\Roaming\com.pot-app.desktop\config.json`, action = 3
[2024-02-16][02:53:16][TRACE][notify::windows] Event: path = `C:\Users\admin\AppData\Roaming\com.pot-app.desktop\config.json`, action = 3
[2024-02-16][02:53:16][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-16][02:53:16][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-16][02:53:16][TRACE][hyper::client::conn] client handshake Http1
[2024-02-16][02:53:16][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-16][02:53:16][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-16][02:53:16][TRACE][hyper::client::pool] checkout dropped for ("https", fanyi.baidu.com)
[2024-02-16][02:53:16][TRACE][tracing::span] encode_headers;
[2024-02-16][02:53:16][TRACE][tracing::span::active] -> encode_headers;
[2024-02-16][02:53:16][TRACE][hyper::proto::h1::role] Client::encode method=POST, body=Some(Known(20))
[2024-02-16][02:53:16][TRACE][tracing::span::active] <- encode_headers;
[2024-02-16][02:53:16][TRACE][tracing::span] -- encode_headers;
[2024-02-16][02:53:16][TRACE][hyper::proto::h1::encode] sized write, len = 20
[2024-02-16][02:53:16][TRACE][hyper::proto::h1::io] buffer.flatten self.len=134 buf.len=20
[2024-02-16][02:53:16][DEBUG][hyper::proto::h1::io] flushed 154 bytes
[2024-02-16][02:53:16][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::io] received 494 bytes
[2024-02-16][02:53:17][TRACE][tracing::span] parse_headers;
[2024-02-16][02:53:17][TRACE][tracing::span::active] -> parse_headers;
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::role] Response.parse bytes=494
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::role] Response.parse Complete(455)
[2024-02-16][02:53:17][TRACE][tracing::span::active] <- parse_headers;
[2024-02-16][02:53:17][TRACE][tracing::span] -- parse_headers;
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::io] parsed 9 headers
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::conn] incoming body is content-length (39 bytes)
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::decode] decode; state=Length(39)
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:53:17][TRACE][hyper::client::pool] put; add idle connection for ("https", fanyi.baidu.com)
[2024-02-16][02:53:17][DEBUG][hyper::client::pool] pooling idle connection for ("https", fanyi.baidu.com)
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:53:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][02:53:17][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", open.volcengineapi.com)
[2024-02-16][02:53:17][DEBUG][reqwest::connect] starting new connection: https://open.volcengineapi.com/
[2024-02-16][02:53:17][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://open.volcengineapi.com/'
[2024-02-16][02:53:17][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897))
[2024-02-16][02:53:17][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897
[2024-02-16][02:53:17][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897
[2024-02-16][02:53:17][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-16][02:53:17][TRACE][hyper::client::conn] client handshake Http1
[2024-02-16][02:53:17][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-16][02:53:17][TRACE][hyper::client::pool] checkout dropped for ("https", open.volcengineapi.com)
[2024-02-16][02:53:17][TRACE][tracing::span] encode_headers;
[2024-02-16][02:53:17][TRACE][tracing::span::active] -> encode_headers;
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::role] Client::encode method=POST, body=Some(Known(51))
[2024-02-16][02:53:17][TRACE][tracing::span::active] <- encode_headers;
[2024-02-16][02:53:17][TRACE][tracing::span] -- encode_headers;
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::encode] sized write, len = 51
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::io] buffer.flatten self.len=522 buf.len=51
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::io] flushed 573 bytes
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::io] received 1176 bytes
[2024-02-16][02:53:17][TRACE][tracing::span] parse_headers;
[2024-02-16][02:53:17][TRACE][tracing::span::active] -> parse_headers;
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::role] Response.parse bytes=1176
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::role] Response.parse Complete(753)
[2024-02-16][02:53:17][TRACE][tracing::span::active] <- parse_headers;
[2024-02-16][02:53:17][TRACE][tracing::span] -- parse_headers;
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::io] parsed 15 headers
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::conn] incoming body is content-length (423 bytes)
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::decode] decode; state=Length(423)
[2024-02-16][02:53:17][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:53:17][TRACE][hyper::client::pool] put; add idle connection for ("https", open.volcengineapi.com)
[2024-02-16][02:53:17][DEBUG][hyper::client::pool] pooling idle connection for ("https", open.volcengineapi.com)
[2024-02-16][02:53:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][02:53:17][DEBUG][sqlx::query] summary="PRAGMA foreign_keys = ON; …" db.statement="\n\nPRAGMA foreign_keys = ON;\n" rows_affected=0 rows_returned=0 elapsed=1.031ms
[2024-02-16][02:53:17][DEBUG][sqlx::query] summary="INSERT into history (text, …" db.statement="\n\nINSERT into\n  history (text, source, target, service, result, timestamp)\nVALUES\n  ($1, $2, $3, $4, $5, $6)\n" rows_affected=1 rows_returned=0 elapsed=4.3998ms
[2024-02-16][02:53:18][DEBUG][sqlx::query] summary="PRAGMA foreign_keys = ON; …" db.statement="\n\nPRAGMA foreign_keys = ON;\n" rows_affected=0 rows_returned=0 elapsed=199.1µs
[2024-02-16][02:53:18][DEBUG][sqlx::query] summary="INSERT into history (text, …" db.statement="\n\nINSERT into\n  history (text, source, target, service, result, timestamp)\nVALUES\n  ($1, $2, $3, $4, $5, $6)\n" rows_affected=1 rows_returned=0 elapsed=4.204ms
[2024-02-16][02:53:18][TRACE][notify_debouncer_mini] debounced event: Any
[2024-02-16][02:53:20][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-02-16][02:53:20][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-02-16][02:53:20][INFO][webview::unknown] Blur
[2024-02-16][02:53:20][INFO][webview::unknown] Confirm Blur
[2024-02-16][02:53:47][TRACE][hyper::proto::h1::io] received 0 bytes
[2024-02-16][02:53:47][TRACE][hyper::proto::h1::conn] found EOF on idle connection, closing
[2024-02-16][02:53:47][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-16][02:53:47][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Init, keep_alive: Disabled }
[2024-02-16][02:53:47][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-16][02:54:47][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][02:54:47][TRACE][hyper::client::pool] idle interval evicting closed for ("https", fanyi.baidu.com)
[2024-02-16][02:55:17][TRACE][hyper::proto::h1::io] received 0 bytes
[2024-02-16][02:55:17][TRACE][hyper::proto::h1::conn] found EOF on idle connection, closing
[2024-02-16][02:55:17][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-16][02:55:17][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Init, keep_alive: Disabled }
[2024-02-16][02:55:17][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-16][02:56:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][02:56:17][TRACE][hyper::client::pool] idle interval evicting closed for ("https", open.volcengineapi.com)
[2024-02-16][02:57:47][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][02:59:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:00:47][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:02:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:03:47][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:05:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:06:47][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:07:50][INFO][pot::window] Mouse position: 338, 1730
[2024-02-16][03:07:50][INFO][pot::window] Current Monitor: Monitor { name: Some("\\\\.\\DISPLAY1"), size: PhysicalSize { width: 3840, height: 2160 }, position: PhysicalPosition { x: 0, y: 0 }, scale_factor: 1.25 }
[2024-02-16][03:07:50][INFO][pot::window] Window not existence, Creating new window: translate
[2024-02-16][03:07:50][TRACE][os_info::imp] windows::current_platform is called
[2024-02-16][03:07:50][TRACE][os_info::imp] Returning Info { os_type: Windows, version: Semantic(10, 0, 22631), edition: Some("Windows 11 Professional"), codename: None, bitness: X64, architecture: None }
[2024-02-16][03:07:50][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", fanyi.baidu.com)
[2024-02-16][03:07:50][DEBUG][reqwest::connect] starting new connection: https://fanyi.baidu.com/
[2024-02-16][03:07:50][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://fanyi.baidu.com/'
[2024-02-16][03:07:50][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897))
[2024-02-16][03:07:50][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897
[2024-02-16][03:07:50][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897
[2024-02-16][03:07:50][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-16][03:07:51][TRACE][notify::windows] Event: path = `C:\Users\admin\AppData\Roaming\com.pot-app.desktop\config.json`, action = 3
[2024-02-16][03:07:51][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-16][03:07:51][TRACE][notify::windows] Event: path = `C:\Users\admin\AppData\Roaming\com.pot-app.desktop\config.json`, action = 3
[2024-02-16][03:07:51][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-16][03:07:51][TRACE][notify::windows] Event: path = `C:\Users\admin\AppData\Roaming\com.pot-app.desktop\config.json`, action = 3
[2024-02-16][03:07:51][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-16][03:07:51][TRACE][notify::windows] Event: path = `C:\Users\admin\AppData\Roaming\com.pot-app.desktop\config.json`, action = 3
[2024-02-16][03:07:51][TRACE][notify_debouncer_mini] raw event: Event { kind: Modify(Any), paths: ["C:\\Users\\admin\\AppData\\Roaming\\com.pot-app.desktop\\config.json"], attr:tracker: None, attr:flag: None, attr:info: None, attr:source: None }
[2024-02-16][03:07:51][TRACE][hyper::client::conn] client handshake Http1
[2024-02-16][03:07:51][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-16][03:07:51][TRACE][hyper::client::pool] checkout dropped for ("https", fanyi.baidu.com)
[2024-02-16][03:07:51][TRACE][tracing::span] encode_headers;
[2024-02-16][03:07:51][TRACE][tracing::span::active] -> encode_headers;
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::role] Client::encode method=POST, body=Some(Known(567))
[2024-02-16][03:07:51][TRACE][tracing::span::active] <- encode_headers;
[2024-02-16][03:07:51][TRACE][tracing::span] -- encode_headers;
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::encode] sized write, len = 567
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::io] buffer.flatten self.len=135 buf.len=567
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::io] flushed 702 bytes
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::io] received 451 bytes
[2024-02-16][03:07:51][TRACE][tracing::span] parse_headers;
[2024-02-16][03:07:51][TRACE][tracing::span::active] -> parse_headers;
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::role] Response.parse bytes=451
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::role] Response.parse Complete(413)
[2024-02-16][03:07:51][TRACE][tracing::span::active] <- parse_headers;
[2024-02-16][03:07:51][TRACE][tracing::span] -- parse_headers;
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::io] parsed 9 headers
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::conn] incoming body is content-length (38 bytes)
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::decode] decode; state=Length(38)
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:07:51][TRACE][hyper::client::pool] put; add idle connection for ("https", fanyi.baidu.com)
[2024-02-16][03:07:51][DEBUG][hyper::client::pool] pooling idle connection for ("https", fanyi.baidu.com)
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:07:51][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:07:51][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", open.volcengineapi.com)
[2024-02-16][03:07:51][DEBUG][reqwest::connect] starting new connection: https://open.volcengineapi.com/
[2024-02-16][03:07:51][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://open.volcengineapi.com/'
[2024-02-16][03:07:51][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897))
[2024-02-16][03:07:51][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897
[2024-02-16][03:07:51][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897
[2024-02-16][03:07:51][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-16][03:07:51][TRACE][hyper::client::conn] client handshake Http1
[2024-02-16][03:07:51][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-16][03:07:51][TRACE][hyper::client::pool] checkout dropped for ("https", open.volcengineapi.com)
[2024-02-16][03:07:51][TRACE][tracing::span] encode_headers;
[2024-02-16][03:07:51][TRACE][tracing::span::active] -> encode_headers;
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::role] Client::encode method=POST, body=Some(Known(280))
[2024-02-16][03:07:51][TRACE][tracing::span::active] <- encode_headers;
[2024-02-16][03:07:51][TRACE][tracing::span] -- encode_headers;
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::encode] sized write, len = 280
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::io] buffer.flatten self.len=523 buf.len=280
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::io] flushed 803 bytes
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::io] received 1448 bytes
[2024-02-16][03:07:51][TRACE][tracing::span] parse_headers;
[2024-02-16][03:07:51][TRACE][tracing::span::active] -> parse_headers;
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::role] Response.parse bytes=1448
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::role] Response.parse Complete(755)
[2024-02-16][03:07:51][TRACE][tracing::span::active] <- parse_headers;
[2024-02-16][03:07:51][TRACE][tracing::span] -- parse_headers;
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::io] parsed 15 headers
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::conn] incoming body is content-length (693 bytes)
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::decode] decode; state=Length(693)
[2024-02-16][03:07:51][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:07:51][TRACE][hyper::client::pool] put; add idle connection for ("https", open.volcengineapi.com)
[2024-02-16][03:07:51][DEBUG][hyper::client::pool] pooling idle connection for ("https", open.volcengineapi.com)
[2024-02-16][03:07:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:07:51][DEBUG][sqlx::query] summary="PRAGMA foreign_keys = ON; …" db.statement="\n\nPRAGMA foreign_keys = ON;\n" rows_affected=0 rows_returned=0 elapsed=13.8µs
[2024-02-16][03:07:51][DEBUG][sqlx::query] summary="INSERT into history (text, …" db.statement="\n\nINSERT into\n  history (text, source, target, service, result, timestamp)\nVALUES\n  ($1, $2, $3, $4, $5, $6)\n" rows_affected=1 rows_returned=0 elapsed=8.4711ms
[2024-02-16][03:07:53][TRACE][notify_debouncer_mini] debounced event: Any
[2024-02-16][03:07:53][TRACE][notify_debouncer_mini] debounced event: Any
[2024-02-16][03:07:55][DEBUG][sqlx::query] summary="PRAGMA foreign_keys = ON; …" db.statement="\n\nPRAGMA foreign_keys = ON;\n" rows_affected=0 rows_returned=0 elapsed=13.6µs
[2024-02-16][03:07:55][DEBUG][sqlx::query] summary="INSERT into history (text, …" db.statement="\n\nINSERT into\n  history (text, source, target, service, result, timestamp)\nVALUES\n  ($1, $2, $3, $4, $5, $6)\n" rows_affected=1 rows_returned=0 elapsed=2.1818ms
[2024-02-16][03:08:03][INFO][webview::unknown] Blur
[2024-02-16][03:08:03][INFO][webview::unknown] Confirm Blur
[2024-02-16][03:08:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:08:21][TRACE][hyper::proto::h1::io] received 0 bytes
[2024-02-16][03:08:21][TRACE][hyper::proto::h1::conn] found EOF on idle connection, closing
[2024-02-16][03:08:21][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-16][03:08:21][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Init, keep_alive: Disabled }
[2024-02-16][03:08:21][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-16][03:08:27][INFO][pot::window] Mouse position: 3622, 1948
[2024-02-16][03:08:27][INFO][pot::window] Current Monitor: Monitor { name: Some("\\\\.\\DISPLAY1"), size: PhysicalSize { width: 3840, height: 2160 }, position: PhysicalPosition { x: 0, y: 0 }, scale_factor: 1.25 }
[2024-02-16][03:08:27][INFO][pot::window] Window not existence, Creating new window: updater
[2024-02-16][03:08:27][TRACE][os_info::imp] windows::current_platform is called
[2024-02-16][03:08:27][TRACE][os_info::imp] Returning Info { os_type: Windows, version: Semantic(10, 0, 22631), edition: Some("Windows 11 Professional"), codename: None, bitness: X64, architecture: None }
[2024-02-16][03:08:27][TRACE][hyper::client::pool] checkout waiting for idle connection: ("https", gh.pylogmon.com)
[2024-02-16][03:08:27][DEBUG][reqwest::connect] starting new connection: https://gh.pylogmon.com/
[2024-02-16][03:08:27][DEBUG][reqwest::connect] proxy(http://127.0.0.1:7897) intercepts 'https://gh.pylogmon.com/'
[2024-02-16][03:08:27][TRACE][hyper::client::connect::http] Http::connect; scheme=Some("http"), host=Some("127.0.0.1"), port=Some(Port(7897))
[2024-02-16][03:08:27][DEBUG][hyper::client::connect::http] connecting to 127.0.0.1:7897
[2024-02-16][03:08:27][DEBUG][hyper::client::connect::http] connected to 127.0.0.1:7897
[2024-02-16][03:08:27][TRACE][reqwest::connect] tunneling HTTPS over proxy
[2024-02-16][03:08:28][TRACE][hyper::client::conn] client handshake Http1
[2024-02-16][03:08:28][TRACE][hyper::client::client] handshake complete, spawning background dispatcher task
[2024-02-16][03:08:28][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Busy }
[2024-02-16][03:08:28][TRACE][hyper::client::pool] checkout dropped for ("https", gh.pylogmon.com)
[2024-02-16][03:08:28][TRACE][tracing::span] encode_headers;
[2024-02-16][03:08:28][TRACE][tracing::span::active] -> encode_headers;
[2024-02-16][03:08:28][TRACE][hyper::proto::h1::role] Client::encode method=GET, body=None
[2024-02-16][03:08:28][TRACE][tracing::span::active] <- encode_headers;
[2024-02-16][03:08:28][TRACE][tracing::span] -- encode_headers;
[2024-02-16][03:08:28][DEBUG][hyper::proto::h1::io] flushed 143 bytes
[2024-02-16][03:08:28][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] Conn::read_head
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][03:08:29][TRACE][tracing::span] parse_headers;
[2024-02-16][03:08:29][TRACE][tracing::span::active] -> parse_headers;
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::role] Response.parse bytes=1369
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::role] Response.parse Complete(1273)
[2024-02-16][03:08:29][TRACE][tracing::span::active] <- parse_headers;
[2024-02-16][03:08:29][TRACE][tracing::span] -- parse_headers;
[2024-02-16][03:08:29][DEBUG][hyper::proto::h1::io] parsed 30 headers
[2024-02-16][03:08:29][DEBUG][hyper::proto::h1::conn] incoming body is content-length (6407 bytes)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::decode] decode; state=Length(6407)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(6311)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::decode] decode; state=Length(6311)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(4942)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::decode] decode; state=Length(4942)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(3573)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::decode] decode; state=Length(3573)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(2204)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::decode] decode; state=Length(2204)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::io] received 1369 bytes
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Body(Length(835)), writing: KeepAlive, keep_alive: Busy }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::decode] decode; state=Length(835)
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::io] received 835 bytes
[2024-02-16][03:08:29][DEBUG][hyper::proto::h1::conn] incoming body completed
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] maybe_notify; read_from_io blocked
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Init, writing: Init, keep_alive: Idle }
[2024-02-16][03:08:29][TRACE][hyper::client::pool] pool dropped, dropping pooled (("https", gh.pylogmon.com))
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::dispatch] client tx closed
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] State::close_write()
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Closed, keep_alive: Disabled }
[2024-02-16][03:08:29][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-16][03:08:40][INFO][pot::window] Mouse position: 3605, 1919
[2024-02-16][03:08:40][INFO][pot::window] Current Monitor: Monitor { name: Some("\\\\.\\DISPLAY1"), size: PhysicalSize { width: 3840, height: 2160 }, position: PhysicalPosition { x: 0, y: 0 }, scale_factor: 1.25 }
[2024-02-16][03:08:40][INFO][pot::window] Window not existence, Creating new window: config
[2024-02-16][03:08:40][TRACE][os_info::imp] windows::current_platform is called
[2024-02-16][03:08:40][TRACE][os_info::imp] Returning Info { os_type: Windows, version: Semantic(10, 0, 22631), edition: Some("Windows 11 Professional"), codename: None, bitness: X64, architecture: None }
[2024-02-16][03:09:21][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:09:21][TRACE][hyper::client::pool] idle interval evicting closed for ("https", fanyi.baidu.com)
[2024-02-16][03:09:47][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:09:51][TRACE][hyper::proto::h1::io] received 0 bytes
[2024-02-16][03:09:51][TRACE][hyper::proto::h1::conn] found EOF on idle connection, closing
[2024-02-16][03:09:51][TRACE][hyper::proto::h1::conn] State::close_read()
[2024-02-16][03:09:51][TRACE][hyper::proto::h1::conn] flushed({role=client}): State { reading: Closed, writing: Init, keep_alive: Disabled }
[2024-02-16][03:09:51][TRACE][hyper::proto::h1::conn] shut down IO complete
[2024-02-16][03:10:51][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:10:51][TRACE][hyper::client::pool] idle interval evicting closed for ("https", open.volcengineapi.com)
[2024-02-16][03:11:17][TRACE][hyper::client::pool] idle interval checking for expired
[2024-02-16][03:12:05][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-02-16][03:12:05][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-02-16][03:12:05][INFO][webview::unknown] Focus
[2024-02-16][03:12:13][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-02-16][03:12:13][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-02-16][03:12:13][INFO][webview::unknown] Focus
[2024-02-16][03:12:21][TRACE][hyper::client::pool] idle interval checking for expired

Additional Information

2024-02-16_11-15-31

Guanrhchn commented 5 months ago

我也是相同的问题,请问楼主目前解决了吗

you-hengh commented 5 months ago

我也是相同的问题,请问楼主目前解决了吗

没有, 已经不用智谱API翻译了 因为免费授权过期了

Guanrhchn commented 5 months ago

好的,谢谢楼主了