Detecting language please wait for.......
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
Hi Stefan Pichler,
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;
Thank you for response,
Fiddler says that the response is Success (200)
My Code Looks like this:
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:
Unfortunately there is no pattern in these IDs
Could you please try with the sample code which I gave you above and harcode the "termbaseId" for the termbase you want and put the concept id =19? To see if that works.
Unfortunately it throws the same Exception.
Could you please download the GS Kit library and in the Terminology Tests Class create an Unit Test which is connecting to your tb?
Is verry difficult for us to troubleshoot this issue because we cannot reproduce it in our side. In that way you should see what is failing in GS Kit in your case.