Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] connection successfull but dir directory not working #109

Open
mpanichella opened this issue Jun 12, 2020 · 1 comment
Open

[BUG] connection successfull but dir directory not working #109

mpanichella opened this issue Jun 12, 2020 · 1 comment

Comments

@mpanichella
Copy link

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

@trentsteel84
Copy link

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.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.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.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.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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants