Thanks to visit codestin.com
Credit goes to github.com

Skip to content

GET undefined symbol results in 500 Server error #1

@RodneyRichardson

Description

@RodneyRichardson

In the default server, calling GET: /symbols/test3 results in 500 Server error. I would have expected a 404.

System.ArgumentException: Symbol not found! at SoftBeckhoff.Services.BeckhoffServer.ReadSymbol(String name) in /app/Services/BeckhoffServer.cs:line 67 at SoftBeckhoff.Services.BeckhoffService.GetSymbol(String name) in /app/Services/BeckhoffService.cs:line 46 at lambda_method(Closure , Object , Object[] ) at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions