Skip to content

Better Error Handling #1552

@StuartFerguson

Description

@StuartFerguson

25/02/2026 10:13:36.3438 | Error |Correlation ID: 408708fb-8086-4978-8c49-b827afbd24fe| Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke | An unhandled exception has occurred while executing the request. Url: http://192.168.1.163:5002/api/estates/435613ac-a468-47a3-ac4f-649d89764c22/merchants/ab1c99fb-1c6c-4694-9a32-b71be5d1da33/contracts | System.Exception | SqlException A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) Void ThrowExceptionAndWarning(Microsoft.Data.SqlClient.TdsParserStateObject, Microsoft.Data.SqlClient.SqlCommand, Boolean, Boolean) | Win32Exception The network path was not found.
25/02/2026 10:13:36.3438 | Warn |Correlation ID: 408708fb-8086-4978-8c49-b827afbd24fe| Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke | Response: Status Code: 500 Body: {"message":"Unexpected error"} |
25/02/2026 10:13:41.5723 | Warn |Correlation ID: 92f817d9-e809-4a7a-a44f-8029fd4e1206| .lambda_method53 | Request: Method: GET Url: http://192.168.1.163:5002/api/estates/435613ac-a468-47a3-ac4f-649d89764c22/merchants/ab1c99fb-1c6c-4694-9a32-b71be5d1da33/contracts |

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBugs and error-prone code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions