iisnode encountered an error when processing the request.

HRESULT: 0x6d
HTTP status: 500
HTTP subStatus: 1013
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.

In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.

The last 64k of the output generated by the node.exe process to stderr is shown below:

(node:26856) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
ERROR HttpErrorResponse {
  headers: HttpHeaders {
    headers: Map(5) {
      'content-type' => [Array],
      'date' => [Array],
      'server' => [Array],
      'transfer-encoding' => [Array],
      'x-powered-by' => [Array]
    },
    normalizedNames: Map(5) {
      'content-type' => 'content-type',
      'date' => 'date',
      'server' => 'server',
      'transfer-encoding' => 'transfer-encoding',
      'x-powered-by' => 'x-powered-by'
    },
    lazyInit: undefined,
    lazyUpdate: null
  },
  status: 400,
  statusText: 'Bad Request',
  url: 'https://baccdata.regu.co.za/api/bookinfo?arrival=&departure=2026-10-20&nopeople=2&id=',
  ok: false,
  type: undefined,
  redirected: false,
  responseType: 'basic',
  name: 'HttpErrorResponse',
  message: 'Http failure response for https://baccdata.regu.co.za/api/bookinfo?arrival=&departure=2026-10-20&nopeople=2&id=: 400 Bad Request',
  error: {
    type: 'https://tools.ietf.org/html/rfc7231#section-6.5.1',
    title: 'One or more validation errors occurred.',
    status: 400,
    traceId: '00-e6e3e539cb08413d7ab5e7bb37df717d-bee63572c6443ecf-00',
    errors: { id: [Array], arrival: [Array] }
  }
}
HttpErrorResponse {
  headers: HttpHeaders {
    headers: Map(5) {
      'content-type' => [Array],
      'date' => [Array],
      'server' => [Array],
      'transfer-encoding' => [Array],
      'x-powered-by' => [Array]
    },
    normalizedNames: Map(5) {
      'content-type' => 'content-type',
      'date' => 'date',
      'server' => 'server',
      'transfer-encoding' => 'transfer-encoding',
      'x-powered-by' => 'x-powered-by'
    },
    lazyInit: undefined,
    lazyUpdate: null
  },
  status: 500,
  statusText: 'Internal Server Error',
  url: 'https://baccdata.regu.co.za/qryprop?arrival=17%20Dec%202026&departure=04%20Jan%202027&maxpeople=2',
  ok: false,
  type: undefined,
  redirected: false,
  responseType: 'basic',
  name: 'HttpErrorResponse',
  message: 'Http failure response for https://baccdata.regu.co.za/qryprop?arrival=17%20Dec%202026&departure=04%20Jan%202027&maxpeople=2: 500 Internal Server Error',
  error: "System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JArray'.\r\n" +
    '   at AppData.Controllerss.qrypropController.Get(String arrival, String departure, Int32 maxpeople) in C:\\clients\\claude\\projects\\bacc\\baccdata\\AppData\\Controllers\\WeatherForecastController.cs:line 50\r\n' +
    '   at lambda_method150(Closure , Object , Object[] )\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n' +
    '--- End of stack trace from previous location ---\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n' +
    '--- End of stack trace from previous location ---\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\r\n' +
    '   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\r\n' +
    '   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n' +
    '   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)\r\n' +
    '\r\n' +
    'HEADERS\r\n' +
    '=======\r\n' +
    'Accept: application/json, text/plain, */*\r\n' +
    'Accept-Encoding: br, gzip, deflate\r\n' +
    'Accept-Language: *\r\n' +
    'Connection: keep-alive\r\n' +
    'Host: baccdata.regu.co.za\r\n' +
    'User-Agent: node\r\n' +
    'sec-fetch-mode: cors\r\n'
}
HttpErrorResponse {
  headers: HttpHeaders {
    headers: Map(5) {
      'content-type' => [Array],
      'date' => [Array],
      'server' => [Array],
      'transfer-encoding' => [Array],
      'x-powered-by' => [Array]
    },
    normalizedNames: Map(5) {
      'content-type' => 'content-type',
      'date' => 'date',
      'server' => 'server',
      'transfer-encoding' => 'transfer-encoding',
      'x-powered-by' => 'x-powered-by'
    },
    lazyInit: undefined,
    lazyUpdate: null
  },
  status: 500,
  statusText: 'Internal Server Error',
  url: 'https://baccdata.regu.co.za/qryprop?arrival=20%20Dec%202026&departure=30%20Dec%202026&maxpeople=2',
  ok: false,
  type: undefined,
  redirected: false,
  responseType: 'basic',
  name: 'HttpErrorResponse',
  message: 'Http failure response for https://baccdata.regu.co.za/qryprop?arrival=20%20Dec%202026&departure=30%20Dec%202026&maxpeople=2: 500 Internal Server Error',
  error: "System.InvalidCastException: Unable to cast object of type 'Newtonsoft.Json.Linq.JValue' to type 'Newtonsoft.Json.Linq.JArray'.\r\n" +
    '   at AppData.Controllerss.qrypropController.Get(String arrival, String departure, Int32 maxpeople) in C:\\clients\\claude\\projects\\bacc\\baccdata\\AppData\\Controllers\\WeatherForecastController.cs:line 50\r\n' +
    '   at lambda_method150(Closure , Object , Object[] )\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()\r\n' +
    '--- End of stack trace from previous location ---\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n' +
    '--- End of stack trace from previous location ---\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\r\n' +
    '   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)\r\n' +
    '   at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)\r\n' +
    '   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)\r\n' +
    '   at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)\r\n' +
    '\r\n' +
    'HEADERS\r\n' +
    '=======\r\n' +
    'Accept: application/json, text/plain, */*\r\n' +
    'Accept-Encoding: br, gzip, deflate\r\n' +
    'Accept-Language: *\r\n' +
    'Connection: keep-alive\r\n' +
    'Host: baccdata.regu.co.za\r\n' +
    'User-Agent: node\r\n' +
    'sec-fetch-mode: cors\r\n'
}
ERROR HttpErrorResponse {
  headers: HttpHeaders {
    headers: Map(5) {
      'content-type' => [Array],
      'date' => [Array],
      'server' => [Array],
      'transfer-encoding' => [Array],
      'x-powered-by' => [Array]
    },
    normalizedNames: Map(5) {
      'content-type' => 'content-type',
      'date' => 'date',
      'server' => 'server',
      'transfer-encoding' => 'transfer-encoding',
      'x-powered-by' => 'x-powered-by'
    },
    lazyInit: undefined,
    lazyUpdate: null
  },
  status: 400,
  statusText: 'Bad Request',
  url: 'https://baccdata.regu.co.za/api/bookinfo?arrival=&departure=2026-10-20&nopeople=2&id=',
  ok: false,
  type: undefined,
  redirected: false,
  responseType: 'basic',
  name: 'HttpErrorResponse',
  message: 'Http failure response for https://baccdata.regu.co.za/api/bookinfo?arrival=&departure=2026-10-20&nopeople=2&id=: 400 Bad Request',
  error: {
    type: 'https://tools.ietf.org/html/rfc7231#section-6.5.1',
    title: 'One or more validation errors occurred.',
    status: 400,
    traceId: '00-0a9c923876e4341394df988dce74fa30-126f33af03eee238-00',
    errors: { id: [Array], arrival: [Array] }
  }
}