Translator requests attempting to send when disabled #242

Closed
opened 2022-10-25 19:45:05 +00:00 by Ghost · 1 comment

akkoma version: 3.3.1-45-g16a31872-develop

In the akkoma config, DeepL is disabled, yet akkoma seems to still send requests. My logs are currently being filled with:

[warning] DeepL: Request rejected: %Tesla.Env{method: :get, url: "https://api-free.deepl.com/v2/languages?type=source", query: [], headers: [{"server", "nginx"}, {"date", "Tue, 25 Oct 2022 19:28:47 GMT"}, {"content-length", "0"}, {"access-control-allow-origin", "*"}, {"strict-transport-security", "max-age=63072000; includeSubDomains; preload"}], body: "", status: 403, opts: [adapter: [name: MyFinch, pool_timeout: 5000, receive_timeout: 5000]], __module__: Tesla, __client__: %Tesla.Client{fun: nil, pre: [{Tesla.Middleware.FollowRedirects, :call, [[]]}], post: [], adapter: nil}}
{:error, "DeepL request failed (code 403)"}
request_id=FyFmoE-dNGBpSy8AA1GE [error] Internal server error: %Plug.Parsers.ParseError{exception: %UndefinedFunctionError{module: :raw_file_io_delayed, function: :open_layer, arity: 3, reason: nil, message: nil}, plug_status: 400}

When I move it to LibreTranslate and keep it disabled, I periodically see:

{:error, "connection refused"}

Removing the URL for translator gives:

request_id=FyFnVOCSLz3gaMIAAAgK [error] Internal server error: %Cachex.ExecutionError{message: "scheme is required for url: /languages"}

Ideally these shouldn't even be activating at all when disabled.

akkoma version: 3.3.1-45-g16a31872-develop In the akkoma config, DeepL is disabled, yet akkoma seems to still send requests. My logs are currently being filled with: ``` [warning] DeepL: Request rejected: %Tesla.Env{method: :get, url: "https://api-free.deepl.com/v2/languages?type=source", query: [], headers: [{"server", "nginx"}, {"date", "Tue, 25 Oct 2022 19:28:47 GMT"}, {"content-length", "0"}, {"access-control-allow-origin", "*"}, {"strict-transport-security", "max-age=63072000; includeSubDomains; preload"}], body: "", status: 403, opts: [adapter: [name: MyFinch, pool_timeout: 5000, receive_timeout: 5000]], __module__: Tesla, __client__: %Tesla.Client{fun: nil, pre: [{Tesla.Middleware.FollowRedirects, :call, [[]]}], post: [], adapter: nil}} {:error, "DeepL request failed (code 403)"} request_id=FyFmoE-dNGBpSy8AA1GE [error] Internal server error: %Plug.Parsers.ParseError{exception: %UndefinedFunctionError{module: :raw_file_io_delayed, function: :open_layer, arity: 3, reason: nil, message: nil}, plug_status: 400} ``` When I move it to LibreTranslate and keep it disabled, I periodically see: ``` {:error, "connection refused"} ``` Removing the URL for translator gives: ``` request_id=FyFnVOCSLz3gaMIAAAgK [error] Internal server error: %Cachex.ExecutionError{message: "scheme is required for url: /languages"} ``` Ideally these shouldn't even be activating at all when disabled.

fixed via 5123b3a5dd

fixed via 5123b3a5dd9683441f5b4e
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: AkkomaGang/akkoma#242
No description provided.