argosopentech / argosopentech/LibreTranslate-cpp

Function "languages()" isn't working

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
19
Forks
3
PR merge metrics
No merged PRs in 30d

Description

So i tried to use this API in my project and, although, detect() and translate() worked pretty well, i couldn't make the languages() function to work since i received error 405 from both local and external hosts. I managed to fix it by setting curl with curl_easy_setopt(curl, CURLOPT_HTTPGET, 1L), but if you do that in the curl_post function the translation and detection will break.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the languages() and curl_post entry points and reproduce the 405 response against both local and external hosts. Compare the request handling used by languages() with detect() and translate(); done means languages() succeeds without breaking detection or translation.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.