Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-136390

Find a workaround for the concurrency issue that Google Translate tests are running into

    Description

    Since we have a sizeable amount of Google Autotranslation tests now some tests are running into

         [exec] 2021-07-28 16:44:02.084 ERROR [http-nio-8080-exec-9][GoogleCloudTranslator:93] bundle com.liferay.translation.google.cloud.translator:1.0.5 (1350)[com.liferay.translation.google.cloud.translator.internal.translator.GoogleCloudTranslator(4450)] : The activate method has thrown an exception 
         [exec] com.google.cloud.translate.TranslateException: Error getting access token for service account: 400 Bad Request
         [exec] POST https://oauth2.googleapis.com/token
         [exec] {"error":"invalid_grant","error_description":"Invalid JWT: Token must be a short-lived token (60 minutes) and in a reasonable timeframe. Check your iat and exp values in the JWT claim."}
    

    This is likely due to too many requests being sent to the Google server at the same time.

      Attachments

        Activity

          People

          Assignee:
          austin.chiang Austin Chiang
          Reporter:
          austin.chiang Austin Chiang
          Recent user:
          Austin Chiang
          Participants of an Issue:
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:

              Packages

              Version Package