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:10848) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Location"] at ServerResponse.setHeader (_http_outgoing.js:521:3) at setHeadersFromObject (C:\inetpub\7535ad\.app\node_modules\on-headers\index.js:94:16) at ServerResponse.setWriteHeadHeaders (C:\inetpub\7535ad\.app\node_modules\on-headers\index.js:122:5) at ServerResponse.writeHead (C:\inetpub\7535ad\.app\node_modules\on-headers\index.js:30:36) at Object.next (server.js:1:459982) at t.context.t.context.redirect (server.js:1:342474) at server.js:1:441627 at server.js:1:438041 at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:97:5) { code: 'ERR_INVALID_CHAR' } { status: 301, statusText: 'Moved Permanently', headers: { 'cache-control': 'no-cache', pragma: 'no-cache', 'content-length': '96', 'content-type': 'application/json; charset=utf-8', expires: '-1', server: 'Microsoft-IIS/10.0', 'access-control-allow-origin': '*', 'set-cookie': [ 'AdSession=b2bec359-8559-4c54-8210-9c285f1a5ecc; path=/' ], date: 'Mon, 01 Sep 2025 08:02:39 GMT' }, config: { adapter: [Function: httpAdapter], transformRequest: { '0': [Function: transformRequest] }, transformResponse: { '0': [Function: transformResponse] }, timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', connection: 'keep-alive', 'accept-encoding': 'gzip, deflate', referer: 'https://www.advodan.dk/', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36', 'x-original-url': '/br%C3%B8nderslev', 'x-forwarded-for': '47.82.11.28', 'x-forwarded-proto': 'https' }, method: 'get', baseURL: 'http://www.advodan.dk', url: 'http://www.advodan.dk/umbraco/api/spa/getdata?url=/brønderslev&navLevels=2&ssr=1', data: undefined }, request: ClientRequest { _events: [Object: null prototype] { socket: [Function], abort: [Function], aborted: [Function], error: [Function], timeout: [Function], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 6, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: true, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: true, _SNICallback: null, servername: 'www.advodan.dk', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 8, connecting: false, _hadError: false, _parent: null, _host: 'www.advodan.dk', _readableState: [ReadableState], readable: false, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: null, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(asyncId)]: 33103, [Symbol(kHandle)]: null, [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 418, [Symbol(kBytesWritten)]: 447, [Symbol(connect-options)]: [Object] }, connection: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: true, _SNICallback: null, servername: 'www.advodan.dk', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 8, connecting: false, _hadError: false, _parent: null, _host: 'www.advodan.dk', _readableState: [ReadableState], readable: false, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: null, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(asyncId)]: 33103, [Symbol(kHandle)]: null, [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 418, [Symbol(kBytesWritten)]: 447, [Symbol(connect-options)]: [Object] }, _header: 'GET /umbraco/api/spa/getdata?url=/brønderslev&navLevels=2&ssr=1 HTTP/1.1\r\n' + 'Accept: application/json, text/plain, */*\r\n' + 'connection: keep-alive\r\n' + 'accept-encoding: gzip, deflate\r\n' + 'referer: https://www.advodan.dk/\r\n' + 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36\r\n' + 'x-original-url: /br%C3%B8nderslev\r\n' + 'x-forwarded-for: 47.82.11.28\r\n' + 'x-forwarded-proto: https\r\n' + 'Host: www.advodan.dk\r\n' + '\r\n', _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'GET', insecureHTTPParser: undefined, path: '/umbraco/api/spa/getdata?url=/brønderslev&navLevels=2&ssr=1', _ended: true, res: IncomingMessage { _readableState: [ReadableState], readable: false, _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, socket: [TLSSocket], connection: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: [Object], rawHeaders: [Array], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 301, statusMessage: 'Moved Permanently', client: [TLSSocket], _consuming: false, _dumped: false, req: [Circular], responseUrl: 'https://www.advodan.dk/umbraco/api/spa/getdata?url=/brønderslev&navLevels=2&ssr=1', redirects: [], [Symbol(kCapture)]: false }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, _redirectable: Writable { _writableState: [WritableState], writable: true, _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _redirectCount: 1, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _onNativeResponse: [Function], _currentRequest: [Circular], _currentUrl: 'https://www.advodan.dk/umbraco/api/spa/getdata?url=/brønderslev&navLevels=2&ssr=1', _isRedirect: true, [Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], connection: [Array], 'accept-encoding': [Array], referer: [Array], 'user-agent': [Array], 'x-original-url': [Array], 'x-forwarded-for': [Array], 'x-forwarded-proto': [Array], host: [Array] } }, data: { meta: { code: 301, error: 'Page has moved' }, data: { url: '/br�nderslev/', permanent: true } } }