-
-
Notifications
You must be signed in to change notification settings - Fork 959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic Translation Endpoint in REST-API not working #4798
Comments
The docs clearly states that you should use POST, not GET.... |
This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger. In case your question is already answered, making a donation is the right way to say thank you! |
It ends up being performed as GET, maybe the URL is missing trailing slash and it gets redirected? |
Stop using Django's CommonMiddleware - it does redirect for all methods what leads to failure on API and other non GET endpoints. See #4798
Stupid me, that was actually the issue, thank you very much! |
The issue you have reported is resolved now. If you don’t feel it’s right, please follow it’s labels to get a clue and take further steps.
|
I've adjusted the middleware to avoid redirects on POST in 41c2bdb as that seems to be quite frequent mistake and properly returning 404 in that case might make it more likely people will look at the URL ;-). |
Hello there,
in the Documentation of Weblate's REST-API, there is an Endpoint to trigger the automatic Translation of a Component for a specific language (see Automatic Translation Endpoint).
However, when I try to use the Endpoint, I receive the following Error Message:
Status: 405 Method not allowed
Response:
{
"detail": "Method "GET" not allowed."
}
Screenshot:
I also made sure to install the Automatic Translation Add-On in the specific Component, however it is still not working.
Any help on this will be greatly appreciated! Thanks.
Weblate-Version:
4.3.1
The text was updated successfully, but these errors were encountered: