Error retrieving translation : datamarket.accesscontrol.windows.net

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Error retrieving translation : datamarket.accesscontrol.windows.net

lewis john mcgibbney-2
Hi Folks,
Is anyone else getting the above error when attempting to use the MicrosoftTranslator.
For example when attempting to translate using tika-translate 1.19.1 from Clojure

Caused by: org.apache.tika.exception.TikaException: Error with Microsoft Translation: [microsoft-translator-api] Error retrieving translation : datamarket.accesscontrol.windows.net
 at org.apache.tika.language.translate.MicrosoftTranslator.translate (MicrosoftTranslator.java:94)
    sun.reflect.GeneratedMethodAccessor7.invoke (:-1)
    sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke (Method.java:498)
    clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
    clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
    app.core$translate_with_tika$fn__3516.invoke (core.clj:143)
    clojure.core$pmap$fn__8105$fn__8106.invoke (core.clj:6942)
    clojure.core$binding_conveyor_fn$fn__5476.invoke (core.clj:2022)
    clojure.lang.AFn.call (AFn.java:18)
    java.util.concurrent.FutureTask.run (FutureTask.java:266)
    java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624)
    java.lang.Thread.run (Thread.java:748)

Lewis
Reply | Threaded
Open this post in threaded view
|

Re: Error retrieving translation : datamarket.accesscontrol.windows.net

lewis john mcgibbney-2
This simple relates to the existing Microsoft translator Java library we consume witin tika-tanslate being deprecated.
I've registered a ticket to upgrade the Google Translator and I am working on addressing the upgrade to the new one
https://issues.apache.org/jira/browse/TIKA-2796
I'll probably make my way to the Microsoft issue once that is done.

On 2018/12/06 19:11:52, lewis john mcgibbney <[hidden email]> wrote:

> Hi Folks,
> Is anyone else getting the above error when attempting to use the
> MicrosoftTranslator.
> For example when attempting to translate using tika-translate 1.19.1 from
> Clojure
>
> Caused by: org.apache.tika.exception.TikaException: Error with Microsoft
> Translation: [microsoft-translator-api] Error retrieving translation :
> datamarket.accesscontrol.windows.net
>  at org.apache.tika.language.translate.MicrosoftTranslator.translate
> (MicrosoftTranslator.java:94)
>     sun.reflect.GeneratedMethodAccessor7.invoke (:-1)
>     sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:43)
>     java.lang.reflect.Method.invoke (Method.java:498)
>     clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:93)
>     clojure.lang.Reflector.invokeInstanceMethod (Reflector.java:28)
>     app.core$translate_with_tika$fn__3516.invoke (core.clj:143)
>     clojure.core$pmap$fn__8105$fn__8106.invoke (core.clj:6942)
>     clojure.core$binding_conveyor_fn$fn__5476.invoke (core.clj:2022)
>     clojure.lang.AFn.call (AFn.java:18)
>     java.util.concurrent.FutureTask.run (FutureTask.java:266)
>     java.util.concurrent.ThreadPoolExecutor.runWorker
> (ThreadPoolExecutor.java:1149)
>     java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:624)
>     java.lang.Thread.run (Thread.java:748)
>
> Lewis
>
> --
> http://home.apache.org/~lewismc/
> http://people.apache.org/keys/committer/lewismc
>