# Plugin LibreTranslate -- API de traducción gratuita y de código abierto

**URL:** <https://meta.discourse.org/t/libretranslate-plugin-free-and-open-source-translation-api/207891>\
**Category:** Development\
**Created:** [1 Noviembre, 2021 20:25 UTC](https://meta.discourse.org/t/libretranslate-plugin-free-and-open-source-translation-api/207891 "2021-11-01T20:25:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)\
**Post date:** [17 Diciembre, 2022 11:22 UTC](https://meta.discourse.org/t/libretranslate-plugin-free-and-open-source-translation-api/207891/4 "2022-12-17T11:22:31Z")

</div>

Intenté configurar esto pero en el último paso (obtener una traducción) fallo con el siguiente mensaje de error:

`Ocurrió un error: #\<Excon::Response:0x00007f25419e6818 @data={:body=\>“\u003c!doctype html\u003e\n\u003chtml lang=en\u003e\n\u003ctitle\u003e405 Method Not Allowed\u003c/title\u003e\n\u003ch1\u003eMethod Not Allowed\u003c/h1\u003e\n\u003cp\u003eThe method is not allowed for the requested URL.\u003c/p\u003e\n”, :cookies=\>, :host=\>“172.17.0.1”, :headers=\>{“Access-Control-Allow-Credentials”=\>“true”, “Access-Control-Allow-Headers”=\>“Authorization, Content-Type”, “Access-Control-Allow-Methods”=\>“GET, POST”, “Access-Control-Allow-Origin”=\>“_“, “Access-Control-Expose-Headers”=\>“Authorization”, “Access-Control-Max-Age”=\>“1728000”, “Allow”=\>“HEAD, GET, OPTIONS”, “Content-Length”=\>“153”, “Content-Type”=\>“text/html; charset=utf-8”, “Date”=\>“Sat, 17 Dec 2022 11:18:27 GMT”, “Server”=\>“waitress”}, :path=\>”//languages", :port=\>5000, :status=\>405, :status\_line=\>“HTTP/1.1 405 METHOD NOT ALLOWED\r\n”, :reason\_phrase=\>“METHOD NOT ALLOWED”, :remote\_ip=\>“172.17.0.1”, :local\_port=\>50848, :local\_address=\>“172.17.0.3”}, @body=“\u003c!doctype html\u003e\n\u003chtml lang=en\u003e\n\u003ctitle\u003e405 Method Not Allowed\u003c/title\u003e\n\u003ch1\u003eMethod Not Allowed\u003c/h1\u003e\n\u003cp\u003eThe method is not allowed for the requested URL.\u003c/p\u003e\n”, @headers={“Access-Control-Allow-Credentials”=\>“true”, “Access-Control-Allow-Headers”=\>“Authorization, Content-Type”, “Access-Control-Allow-Methods”=\>“GET, POST”, “Access-Control-Allow-Origin”=\>"_”, “Access-Control-Expose-Headers”=\>“Authorization”, “Access-Control-Max-Age”=\>“1728000”, “Allow”=\>“HEAD, GET, OPTIONS”, “Content-Length”=\>“153”, “Content-Type”=\>“text/html; charset=utf-8”, “Date”=\>“Sat, 17 Dec 2022 11:18:27 GMT”, “Server”=\>“waitress”}, @status=405, @remote\_ip=“172.17.0.1”, @local\_port=50848, @local\_address=“172.17.0.3”\>\n

Configuré un contenedor docker con `docker run -d --restart unless-stopped -ti -p 5000:5000 --name=\"libretranslate\" libretranslate/libretranslate` que parecía estar bien para mí según la documentación y configuré `translator libretranslate endpoint` a `http://172.17.0.1:5000` (la IP es la IP del host de docker).

Según el mensaje de error, Discourse también puede conectarse a LibreTranslate, pero algo no funciona.

¿Alguna idea?

---

_[View the full topic](https://meta.discourse.org/t/libretranslate-plugin-free-and-open-source-translation-api/207891)._
