mvbasic icon indicating copy to clipboard operation
mvbasic copied to clipboard

[BUG] connection successfull but dir directory not working

Open mpanichella opened this issue 5 years ago • 2 comments

When connect to MV Rest service is successfull, but when i try to readDirectory, i have status 500.

I try to do this from putty ssh, and work well.

I try to test the postman collection, but when i call login, the response is "connected" but not response the token, to call others apis.

[RestFS] login: 'login' request succeeded [RestFS] login: auth="Connected" [RestFS] readDirectory: path=/u2/sise, 'dir' request failed, status=500 [RestFS] stat: readDirectory path=/u2/sise, exception=EntryNotFound (FileSystemError): RestFS:/u2/sise [RestFS] readFile: path=/u2/sise, 'file' request failed, status=500 [RestFS] stat: readFile path=/u2/sise, exception=EntryNotFound (FileSystemError): RestFS:/u2/sise [RestFS] stat: path=/u2/sise type=none

mpanichella avatar Jun 12 '20 00:06 mpanichella

I think i'm getting something similar. I'm trying to connect through VSCode to jBase with MVGateway. In the bottom right corner it says it connected, but next to the account it says "Unable to resolve workspace folder".

I tried using the rest api as shown in the example. The login returns "Connected", but i can't get the directory listing to work, I've tried: http://localhost:9005/dir http://localhost:9005/dir// http://localhost:9005/dir?max_items=250 These all say "No action was found on the controller 'Dir' that matches the request."

If i try my login username or random things then i get the below response http://localhost:9005/dir// http://localhost:9005/dir/abc/

"Message": "An error has occurred.", "ExceptionMessage": "Object reference not set to an instance of an object.", "ExceptionType": "System.NullReferenceException", "StackTrace": " at UnifiedObjects.ServerConnection..ctor(NetbuilderServer server, String accountName)\r\n at MvonGateway.MvonGateway.findConnection(String accountName)\r\n at MvonGateway.DirController.Get(String accountName)\r\n at lambda_method(Closure , Object , Object[] )\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ApiControllerActionInvoker.<InvokeActionAsyncCore>d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Controllers.ActionFilterResult.<ExecuteAsync>d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at System.Web.Http.Dispatcher.HttpControllerDispatcher.<SendAsync>d__15.MoveNext()" }

I'm pretty new to jBase and pick systems, but it doesn't seem like there is really an account, so i'm not sure what to put for that and when using the rest login, the account is empty and that is working. I did try some of the id's in system though and they also didn't work.

trentsteel84 avatar Jun 12 '20 16:06 trentsteel84