Error with new Google Cloud Translation Provider

I just tried using the new plug-in but received the following error.

GoogleCloudTranslationProvider.GoogleAPI.V3Connector: 2023-03-09 15:30:28.7356 Error TranslateText: Grpc.Core.RpcException: Status(StatusCode="InvalidArgument", Detail="Invalid 'parent'.; Invalid location name. Unsupported location 'gctp-sdl'. Must be 'us-central1' or 'global'.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1678343428.619000000","description":"Error received from peer ipv4:142.250.207.10:443","file":"..\..\..\src\core\lib\surface\call.cc","file_line":1067,"grpc_message":"Invalid 'parent'.; Invalid location name. Unsupported location 'gctp-sdl'. Must be 'us-central1' or 'global'.","grpc_status":3}")
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Grpc.Core.Internal.AsyncCall`2.UnaryCall(TRequest msg)
   at Grpc.Core.Calls.BlockingUnaryCall[TRequest,TResponse](CallInvocationDetails`2 call, TRequest req)
   at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
   at Grpc.Core.Interceptors.InterceptingCallInvoker.<BlockingUnaryCall>b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext`2 ctx)
   at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request, ClientInterceptorContext`2 context, BlockingUnaryCallContinuation`2 continuation)
   at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method`2 method, String host, CallOptions options, TRequest request)
   at Google.Cloud.Translate.V3.TranslationService.TranslationServiceClient.TranslateText(TranslateTextRequest request, CallOptions options)
   at Google.Api.Gax.Grpc.ApiCall.GrpcCallAdapter`2.CallSync(TRequest request, CallSettings callSettings)
   at Google.Api.Gax.Grpc.ApiCallRetryExtensions.<>c__DisplayClass1_0`2.<WithRetry>b__0(TRequest request, CallSettings callSettings)
   at Google.Api.Gax.Grpc.ApiCall`2.<>c__DisplayClass10_0.<WithCallSettingsOverlay>b__1(TRequest req, CallSettings cs)
   at Google.Api.Gax.Grpc.ApiCall`2.Sync(TRequest request, CallSettings perCallCallSettings)
   at Google.Cloud.Translate.V3.TranslationServiceClientImpl.TranslateText(TranslateTextRequest request, CallSettings callSettings)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.TryTranslateText(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.TranslateText(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)  
GoogleCloudTranslationProvider.GoogleAPI.V3Connector: 2023-03-09 15:30:46.5205 Error TranslateText: System.NullReferenceException: Object reference not set to an instance of an object.
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.SetGlossary(CultureInfo sourceLanguage, CultureInfo targetLanguage)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.CreateTranslationRequest(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.TryTranslateText(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.TranslateText(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)  
GoogleCloudTranslationProvider.GoogleAPI.V3Connector: 2023-03-09 15:32:52.5497 Error TranslateText: System.NullReferenceException: Object reference not set to an instance of an object.
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.SetGlossary(CultureInfo sourceLanguage, CultureInfo targetLanguage)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.CreateTranslationRequest(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.TryTranslateText(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)
   at GoogleCloudTranslationProvider.GoogleAPI.V3Connector.TranslateText(CultureInfo sourceLanguage, CultureInfo targetLanguage, String sourceText, String format)  

As you can see below, it is set to us-central1:



Added screenshot
[edited by: Jesse Good at 6:35 AM (GMT 0) on 9 Mar 2023]
emoji
Parents Reply
  • Hi  

    No need to validate your JSON file in 2022 as the problem here is the the default path used when using URL to provide the JSON file details.
    This is a new feature for this app, hence MTEnhanced in what ever version you have will prove little

    However 2 thing does come to mind.... looking at your screen print.

    1. JSON

    How are you providing the app the JSON file?

    I suspect you are not using URL as I can see the local path has Desktop but keen to establish your confirmation

    2. JSON path

    Despite I suspect you are referring to a JSON that is local to your machine (desktop) which is supported, I also see the app is referring to a default JSON path location which is needed those JSON filles that are provided via URL.

    Have you tried renaming the Google Cloud TP folder?

    Lyds

    Lydia Simplicio | RWS Group

    _______
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

    emoji
Children