Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 80307

Re: Issue connecting to Microsoft translation service

$
0
0

What I submitted is all we get back.  The rest is just the stack trace that's thrown with the exception.

 

12.12.2019 10:50:54.758 *ERROR* [JobHandler: /var/workflow/instances/server0/2019-12-12_1/sync_translation_job_510:/content/projects/d e-translation/jcr:content/dashboard/gadgets/translationjob] com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator Error while translating property

com.adobe.granite.translation.api.TranslationException: Error Code: TRANSLATION_FAILED.  Message: Error Code: TRANSLATION_FAILED.  Message: Status code from HttpClient did not return 200. Status Code: 400 The URL we called was: https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&textType=H TML&to=de&category=AEM-Translation_GENERAL...... and data was [{"text":"<p><A0><\/p>\r\n<p>text.<\/p>\r\n"},{"text":"<h1>Text<\/h1>\r\n<h1>Text<\/h1>\r \n"},{"text":"<p>text<\/p>\r\n"},{"text":"<p>Text<\/p>\r\n"},{"text":"text"},{"text":"text "},{"text":"<p>text.<A0><A0><\/p>\r\n"},{"text":"Text"}]

        at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.ge tTranslatedTextForArray(MicrosoftTranslationServiceImpl.java:549) [com.adobe.granite.translation.connector.msft.core:1.3.24]

        at com.adobe.granite.translation.connector.msft.core.impl.MicrosoftTranslationServiceImpl.tr anslateArray(MicrosoftTranslationServiceImpl.java:500) [com.adobe.granite.translation.connector.msft.core:1.3.24]

        at com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator.translatePropertyList(CQPageMac hineTranslator.java:156) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator.saveCacheQueue(CQPageMachineTra nslator.java:138) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.CQPageMachineTranslator.translateResourceList(CQPageMac hineTranslator.java:109) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.startMachineTranslation(Translati onObjectImpl.java:619) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.TranslationObjectImpl.translateNow(TranslationObjectImp l.java:454) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.startTranslation(TranslationPodImpl. java:1208) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.TranslationPodImpl.syncTranslation(TranslationPodImpl.j ava:2413) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.syncTranslationJob(SyncT ranslationProcess.java:154) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.adobe.cq.wcm.translation.impl.process.SyncTranslationProcess.execute(SyncTranslationP rocess.java:119) [com.day.cq.wcm.cq-wcm-translation:1.5.58]

        at com.day.cq.workflow.compatibility.CQWorkflowProcessRunner.execute(CQWorkflowProcessRunner .java:93) [com.day.cq.workflow.cq-workflow-impl:6.3.8]

        at com.adobe.granite.workflow.core.job.HandlerBase.executeProcess(HandlerBase.java:191) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0002]

        at com.adobe.granite.workflow.core.job.JobHandler.process(JobHandler.java:260) [com.adobe.granite.workflow.core:2.0.240.CQ650-B0002]

        at org.apache.sling.event.impl.jobs.JobConsumerManager$JobConsumerWrapper.process(JobConsume rManager.java:502) [org.apache.sling.event:4.2.12]

        at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.startJob(JobQueueImpl.java:293) [org.apache.sling.event:4.2.12]

        at org.apache.sling.event.impl.jobs.queues.JobQueueImpl.access$100(JobQueueImpl.java:60) [org.apache.sling.event:4.2.12]

        at org.apache.sling.event.impl.jobs.queues.JobQueueImpl$1.run(JobQueueImpl.java:229) [org.apache.sling.event:4.2.12]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

        at java.lang.Thread.run(Thread.java:748)

 

As far as other questions, no proxy, no adblocker, this is impacting all pages and yes it's the correct Cloud Config.  I'll see about getting more details from the logs.


Viewing all articles
Browse latest Browse all 80307

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>