Closed kburman closed 5 years ago
Thx for the error report. I will have a look.
I read on .Net Core's issue stream here on GitHub that they had fixed named synchronization on Unix/MacOs but because you were having problems I replaced them with plain 'ol locks: https://github.com/kreeben/resin/commit/4ffa49406ec895a18b589accd4127883026071fa
Patch applied to both master and dev. Please let me know if this fixed it for you. I don't have access to a Mac ATM.
@kburman Once you get your dev environment going then I'd be happy have you join as a contributor.
@kreeben - I will test the new commit and would let you know.
@kburman Once you get your dev environment going then I'd be happy have you join as a contributor.
Sure, Right now I'm exploring the codebase, once I get little familiar with it. Would like to contribute to the project.
I have tested the master branch, It's working fine but I'm getting some error on the dev branch.
Steps to reproduce
System.IO.InvalidDataException: Found invalid data while decoding.
at Sir.Store.ValueIndexReader.Read(Int64 id) in /Users/kshitij/github/kburman-resin/src/Sir.Store/IO/ValueIndexReader.cs:line 51
at Sir.Store.ReadSession.ReadDocs(IEnumerable`1 docs) in /Users/kshitij/github/kburman-resin/src/Sir.Store/Session/ReadSession.cs:line 211
at Sir.Store.ReadSession.Read(Query query) in /Users/kshitij/github/kburman-resin/src/Sir.Store/Session/ReadSession.cs:line 66
at Sir.Store.StoreReader.Read(String collectionName, HttpRequest request) in /Users/kshitij/github/kburman-resin/src/Sir.Store/StoreReader.cs:line 106
at Sir.HttpServer.Controllers.SearchController.Index(String q, String collection) in /Users/kshitij/github/kburman-resin/src/Sir.HttpServer/Controllers/SearchController.cs:line 37
at lambda_method(Closure , Object , Object[] )
at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)```
Could you perhaps also give me the URL you tested with. Either way, I'll take a look ASAP.
This https://github.com/kreeben/resin/commit/f596130a72d86a3d301766273bea4380200633cb fixed it for me. If you pull from dev branch you should be good.
Can confirm, It's working for me.
I'm getting the following error while trying to run Http server in macos.
Dotnet version
I have tried to run the server on tag v0.3a and it worked completely fine.
@kreeben - Can you please take a look at it. I have some experience working with C# and I'm ready to help if you could guide me.
And I want to thank you for making this open source.