[MVExtensions] VSC: trying to connect through gateway

40 views
Skip to first unread message

philippe GRACIA

unread,
Dec 16, 2021, 11:23:37 AM12/16/21
to Pick and MultiValue Databases
Hello !

Clément and I are trying to us VsCode with D3 Linux, We are new programmers in pick.

We followed the tutorial, and we are trying to debug the Gateway connection, as we have problems connecting to d3.

The gateway is installed and operating.on port 9005.

when we try to connect to gateway, we have a 500 error...
what are we doing wrong ?

Thanks by advance and greetings from france

here is the request:
POST http://localhost:9005/login
Content-Type: application/json

{
 "ServerType": "D3",  
   "RemoteHost": "192.168.2.4",
   "UserName" : "dm",
   "Password" : "",
   "AccountPassword" : "",
   "Account": "webservice"
}

and the answer:

HTTP/1.1 500 Internal Server Error
Content-Length: 2178
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Fri, 26 Nov 2021 13:30:25 GMT
Connection: close

{
  "Message": "An error has occurred.",
  "ExceptionMessage": "La valeur ne peut pas être null.\r\nNom du paramètre : key",
  "ExceptionType": "System.ArgumentNullException",
  "StackTrace": "   à System.Collections.Generic.Dictionary`2.FindEntry(TKey key)\r\n   à System.Collections.Generic.Dictionary`2.ContainsKey(TKey key)\r\n   à MvonGateway.MvonGateway.findConnection(String accountName)\r\n   à MvonGateway.LoginController.Post(LoginDetails value)\r\n   à lambda_method(Closure , Object , Object[] )\r\n   à System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n   à System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   à System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---\r\n   à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   à System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---\r\n   à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   à System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- Fin de la trace de la pile à partir de l'emplacement précédent au niveau duquel l'exception a été levée ---\r\n   à System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   à System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   à System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()"
}
Reply all
Reply to author
Forward
0 new messages