Problems when using GroupShareKit on MultiTerm

Hi

I've to write an application, for work that requests Concepts from ConceptIDs from MultiTerm using the Group Share Kit in C#.

However some ConceptIDs return nothing (throws an Exception) on existing ConceptIDs some not all. This does not appear to be random as that happens on the same IDs.

Has anyone encountered this before??

Thanks in advance

Parents
  • Hi ,

    Could you please paste your source code? and also please take a look with Fiddler to see what HTTP response you receive from GS?

    With this source code I was able to retrieve a concept from MultiTerm:

    var token = GroupShareClient.GetRequestToken(
    "",
    "",
    new Uri("),
    GroupShareClient.AllScopes).Result;

    var gsClient = GroupShareClient.AuthenticateClient(
    token,
    "",
    "",
    new Uri(""),
    GroupShareClient.AllScopes).Result;
    var contept = gsClient.Terminology.GetConcept(new ConceptResponse("GermanCharacters", "1")).Result;

    Screenshot of Trados Studio code with a successful retrieval of a concept named 'GermanCharacters' with ID '1'. No visible errors or warnings.

    Screenshot of Trados Studio showing the 'Terms' panel with 'GermanCharacters' selected under 'Termbases'. A new term 'GermanCharacters' is being added with Entry ID '1'. No visible errors or warnings.

    Kind regards,

    Andrea Ghisa



    Generated Image Alt-Text
    [edited by: Trados AI at 4:04 AM (GMT 0) on 5 Mar 2024]
  • Thank you for response,

    Fiddler says that the response is Success (200)

    My Code Looks like this:

    Screenshot of code in Trados Studio showing a try-catch block with a console output of a stack trace for a task related to GroupShareKit API connection.

    And this is the StackTrace:

    System.Threading.Tasks.Task`1[Sdl.Community.GroupShareKit.Models.Response.ConceptDetails]
    at Sdl.Community.GroupShareKit.Http.ApiConnection.<Get>d__4`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Sdl.Community.GroupShareKit.Clients.TerminologyClient.<GetConcept>d__6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at MuiltiTerm.Multiterm.<GetConcept>d__7.MoveNext() in C:\Users\*****\source\repos\MuiltiTerm\MuiltiTerm\Multiterm.cs:line 116

    Just to compare this is the example ID from Multiterm:

    Screenshot of a Trados Studio entry showing Entry Id: 19, Subject: Visualization Energy, with a German flag icon and a definition in German language.

    Unfortunately there is no pattern in these IDs

    Kind Regards

    Stefan Pichler



    Generated Image Alt-Text
    [edited by: Trados AI at 4:04 AM (GMT 0) on 5 Mar 2024]
Reply
  • Thank you for response,

    Fiddler says that the response is Success (200)

    My Code Looks like this:

    Screenshot of code in Trados Studio showing a try-catch block with a console output of a stack trace for a task related to GroupShareKit API connection.

    And this is the StackTrace:

    System.Threading.Tasks.Task`1[Sdl.Community.GroupShareKit.Models.Response.ConceptDetails]
    at Sdl.Community.GroupShareKit.Http.ApiConnection.<Get>d__4`1.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at Sdl.Community.GroupShareKit.Clients.TerminologyClient.<GetConcept>d__6.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
    at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
    at MuiltiTerm.Multiterm.<GetConcept>d__7.MoveNext() in C:\Users\*****\source\repos\MuiltiTerm\MuiltiTerm\Multiterm.cs:line 116

    Just to compare this is the example ID from Multiterm:

    Screenshot of a Trados Studio entry showing Entry Id: 19, Subject: Visualization Energy, with a German flag icon and a definition in German language.

    Unfortunately there is no pattern in these IDs

    Kind Regards

    Stefan Pichler



    Generated Image Alt-Text
    [edited by: Trados AI at 4:04 AM (GMT 0) on 5 Mar 2024]
Children