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:7008) [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)
Thu, 18 Apr 2024 16:55:56 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at server.js:25:16
Thu, 18 Apr 2024 16:55:56 GMT body-parser deprecated undefined extended: provide extended option at node_modules\body-parser\index.js:105:29
Api.callApi error txt Error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>IIS 10.0 Detailed Error - 403.501 - Forbidden</title> 
<style type="text/css"> 
<!-- 
body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} 
code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} 
.config_source code{font-size:.8em;color:#000000;} 
pre{margin:0;font-size:1.4em;word-wrap:break-word;} 
ul,ol{margin:10px 0 10px 5px;} 
ul.first,ol.first{margin-top:5px;} 
fieldset{padding:0 15px 10px 15px;word-break:break-all;} 
.summary-container fieldset{padding-bottom:5px;margin-top:4px;} 
legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} 
legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; 
font-weight:bold;font-size:1em;} 
a:link,a:visited{color:#007EFF;font-weight:bold;} 
a:hover{text-decoration:none;} 
h1{font-size:2.4em;margin:0;color:#FFF;} 
h2{font-size:1.7em;margin:0;color:#CC0000;} 
h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} 
h4{font-size:1.2em;margin:10px 0 5px 0; 
}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif; 
 color:#FFF;background-color:#5C87B2; 
}#content{margin:0 0 0 2%;position:relative;} 
.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} 
.content-container p{margin:0 0 10px 0; 
}#details-left{width:35%;float:left;margin-right:2%; 
}#details-right{width:63%;float:left;overflow:hidden; 
}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; 
 background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal; 
 font-size:1em;color:#FFF;text-align:right; 
}#server_version p{margin:5px 0;} 
table{margin:4px 0 4px 0;width:100%;border:none;} 
td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;} 
th{width:30%;text-align:right;padding-right:2%;font-weight:bold;} 
thead th{background-color:#ebebeb;width:25%; 
}#details-right th{width:20%;} 
table tr.alt td,table tr.alt th{} 
.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} 
.clear{clear:both;} 
.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} 
--> 
</style> 
 
</head> 
<body> 
<div id="content"> 
<div class="content-container"> 
  <h3>HTTP Error 403.501 - Forbidden</h3> 
  <h4>You do not have permission to view this directory or page.</h4> 
</div> 
<div class="content-container"> 
 <fieldset><h4>Most likely causes:</h4> 
  <ul> 	<li>This is a generic 403 error and means the authenticated user is not authorized to view the page.</li> </ul> 
 </fieldset> 
</div> 
<div class="content-container"> 
 <fieldset><h4>Things you can try:</h4> 
  <ul> 	<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> 
 </fieldset> 
</div> 
 
<div class="content-container"> 
 <fieldset><h4>Detailed Error Information:</h4> 
  <div id="details-left"> 
   <table border="0" cellpadding="0" cellspacing="0"> 
    <tr class="alt"><th>Module</th><td>&nbsp;&nbsp;&nbsp;IIS Web Core</td></tr> 
    <tr><th>Notification</th><td>&nbsp;&nbsp;&nbsp;Unknown</td></tr> 
    <tr class="alt"><th>Handler</th><td>&nbsp;&nbsp;&nbsp;aspNetCore</td></tr> 
    <tr><th>Error Code</th><td>&nbsp;&nbsp;&nbsp;0x00000000</td></tr> 
     
   </table> 
  </div> 
  <div id="details-right"> 
   <table border="0" cellpadding="0" cellspacing="0"> 
    <tr class="alt"><th>Requested URL</th><td>&nbsp;&nbsp;&nbsp;https://api.centerforilpolitics.org:443/token/auth</td></tr> 
    <tr><th>Physical Path</th><td>&nbsp;&nbsp;&nbsp;D:\vhosts\api.centerforilpolitics.org\httpdocs\token\auth</td></tr> 
    <tr class="alt"><th>Logon Method</th><td>&nbsp;&nbsp;&nbsp;Not yet determined</td></tr> 
    <tr><th>Logon User</th><td>&nbsp;&nbsp;&nbsp;Not yet determined</td></tr> 
     
   </table> 
   <div class="clear"></div> 
  </div> 
 </fieldset> 
</div> 
 
<div class="content-container"> 
 <fieldset><h4>More Information:</h4> 
  This generic 403 error means that the authenticated user is not authorized to use the requested resource. A substatus code in the IIS log files should indicate the reason for the 403 error. If a substatus code does not exist, use the steps above to gather more information about the source of the error. 
  <p><a href="https://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=403,501,0x00000000,17763">View more information &raquo;</a></p> 
   
 </fieldset> 
</div> 
</div> 
</body> 
</html> 

    at Api._callee$ (D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\expenditures.js:1727:23)
    at tryCatch (D:\vhosts\data.centerforilpolitics.org\httpdocs\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (D:\vhosts\data.centerforilpolitics.org\httpdocs\node_modules\regenerator-runtime\runtime.js:288:22)
    at Generator.prototype.<computed> [as next] (D:\vhosts\data.centerforilpolitics.org\httpdocs\node_modules\regenerator-runtime\runtime.js:114:21)
    at asyncGeneratorStep (D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\expenditures.js:1474:103)
    at _next (D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\expenditures.js:1476:194)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
connection fail? false Result {
  errorCode: 0,
  errors: [
    '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \n' +
      '<html xmlns="http://www.w3.org/1999/xhtml"> \n' +
      '<head> \n' +
      '<title>IIS 10.0 Detailed Error - 403.501 - Forbidden</title> \n' +
      '<style type="text/css"> \n' +
      '<!-- \n' +
      'body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} \n' +
      'code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} \n' +
      '.config_source code{font-size:.8em;color:#000000;} \n' +
      'pre{margin:0;font-size:1.4em;word-wrap:break-word;} \n' +
      'ul,ol{margin:10px 0 10px 5px;} \n' +
      'ul.first,ol.first{margin-top:5px;} \n' +
      'fieldset{padding:0 15px 10px 15px;word-break:break-all;} \n' +
      '.summary-container fieldset{padding-bottom:5px;margin-top:4px;} \n' +
      'legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} \n' +
      'legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; \n' +
      'font-weight:bold;font-size:1em;} \n' +
      'a:link,a:visited{color:#007EFF;font-weight:bold;} \n' +
      'a:hover{text-decoration:none;} \n' +
      'h1{font-size:2.4em;margin:0;color:#FFF;} \n' +
      'h2{font-size:1.7em;margin:0;color:#CC0000;} \n' +
      'h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} \n' +
      'h4{font-size:1.2em;margin:10px 0 5px 0; \n' +
      '}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif; \n' +
      ' color:#FFF;background-color:#5C87B2; \n' +
      '}#content{margin:0 0 0 2%;position:relative;} \n' +
      '.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} \n' +
      '.content-container p{margin:0 0 10px 0; \n' +
      '}#details-left{width:35%;float:left;margin-right:2%; \n' +
      '}#details-right{width:63%;float:left;overflow:hidden; \n' +
      '}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; \n' +
      ' background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal; \n' +
      ' font-size:1em;color:#FFF;text-align:right; \n' +
      '}#server_version p{margin:5px 0;} \n' +
      'table{margin:4px 0 4px 0;width:100%;border:none;} \n' +
      'td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;} \n' +
      'th{width:30%;text-align:right;padding-right:2%;font-weight:bold;} \n' +
      'thead th{background-color:#ebebeb;width:25%; \n' +
      '}#details-right th{width:20%;} \n' +
      'table tr.alt td,table tr.alt th{} \n' +
      '.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} \n' +
      '.clear{clear:both;} \n' +
      '.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} \n' +
      '--> \n' +
      '</style> \n' +
      ' \n' +
      '</head> \n' +
      '<body> \n' +
      '<div id="content"> \n' +
      '<div class="content-container"> \n' +
      '  <h3>HTTP Error 403.501 - Forbidden</h3> \n' +
      '  <h4>You do not have permission to view this directory or page.</h4> \n' +
      '</div> \n' +
      '<div class="content-container"> \n' +
      ' <fieldset><h4>Most likely causes:</h4> \n' +
      '  <ul> \t<li>This is a generic 403 error and means the authenticated user is not authorized to view the page.</li> </ul> \n' +
      ' </fieldset> \n' +
      '</div> \n' +
      '<div class="content-container"> \n' +
      ' <fieldset><h4>Things you can try:</h4> \n' +
      '  <ul> \t<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> \n' +
      ' </fieldset> \n' +
      '</div> \n' +
      ' \n' +
      '<div class="content-container"> \n' +
      ' <fieldset><h4>Detailed Error Information:</h4> \n' +
      '  <div id="details-left"> \n' +
      '   <table border="0" cellpadding="0" cellspacing="0"> \n' +
      '    <tr class="alt"><th>Module</th><td>&nbsp;&nbsp;&nbsp;IIS Web Core</td></tr> \n' +
      '    <tr><th>Notification</th><td>&nbsp;&nbsp;&nbsp;Unknown</td></tr> \n' +
      '    <tr class="alt"><th>Handler</th><td>&nbsp;&nbsp;&nbsp;aspNetCore</td></tr> \n' +
      '    <tr><th>Error Code</th><td>&nbsp;&nbsp;&nbsp;0x00000000</td></tr> \n' +
      '     \n' +
      '   </table> \n' +
      '  </div> \n' +
      '  <div id="details-right"> \n' +
      '   <table border="0" cellpadding="0" cellspacing="0"> \n' +
      '    <tr class="alt"><th>Requested URL</th><td>&nbsp;&nbsp;&nbsp;https://api.centerforilpolitics.org:443/token/auth</td></tr> \n' +
      '    <tr><th>Physical Path</th><td>&nbsp;&nbsp;&nbsp;D:\\vhosts\\api.centerforilpolitics.org\\httpdocs\\token\\auth</td></tr> \n' +
      '    <tr class="alt"><th>Logon Method</th><td>&nbsp;&nbsp;&nbsp;Not yet determined</td></tr> \n' +
      '    <tr><th>Logon User</th><td>&nbsp;&nbsp;&nbsp;Not yet determined</td></tr> \n' +
      '     \n' +
      '   </table> \n' +
      '   <div class="clear"></div> \n' +
      '  </div> \n' +
      ' </fieldset> \n' +
      '</div> \n' +
      ' \n' +
      '<div class="content-container"> \n' +
      ' <fieldset><h4>More Information:</h4> \n' +
      '  This generic 403 error means that the authenticated user is not authorized to use the requested resource. A substatus code in the IIS log files should indicate the reason for the 403 error. If a substatus code does not exist, use the steps above to gather more information about the source of the error. \n' +
      '  <p><a href="https://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=403,501,0x00000000,17763">View more information &raquo;</a></p> \n' +
      '   \n' +
      ' </fieldset> \n' +
      '</div> \n' +
      '</div> \n' +
      '</body> \n' +
      '</html> \n'
  ],
  isSuccess: false,
  type: 'Error',
  data: undefined,
  message: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> \n' +
    '<html xmlns="http://www.w3.org/1999/xhtml"> \n' +
    '<head> \n' +
    '<title>IIS 10.0 Detailed Error - 403.501 - Forbidden</title> \n' +
    '<style type="text/css"> \n' +
    '<!-- \n' +
    'body{margin:0;font-size:.7em;font-family:Verdana,Arial,Helvetica,sans-serif;} \n' +
    'code{margin:0;color:#006600;font-size:1.1em;font-weight:bold;} \n' +
    '.config_source code{font-size:.8em;color:#000000;} \n' +
    'pre{margin:0;font-size:1.4em;word-wrap:break-word;} \n' +
    'ul,ol{margin:10px 0 10px 5px;} \n' +
    'ul.first,ol.first{margin-top:5px;} \n' +
    'fieldset{padding:0 15px 10px 15px;word-break:break-all;} \n' +
    '.summary-container fieldset{padding-bottom:5px;margin-top:4px;} \n' +
    'legend.no-expand-all{padding:2px 15px 4px 10px;margin:0 0 0 -12px;} \n' +
    'legend{color:#333333;;margin:4px 0 8px -12px;_margin-top:0px; \n' +
    'font-weight:bold;font-size:1em;} \n' +
    'a:link,a:visited{color:#007EFF;font-weight:bold;} \n' +
    'a:hover{text-decoration:none;} \n' +
    'h1{font-size:2.4em;margin:0;color:#FFF;} \n' +
    'h2{font-size:1.7em;margin:0;color:#CC0000;} \n' +
    'h3{font-size:1.4em;margin:10px 0 0 0;color:#CC0000;} \n' +
    'h4{font-size:1.2em;margin:10px 0 5px 0; \n' +
    '}#header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS",Verdana,sans-serif; \n' +
    ' color:#FFF;background-color:#5C87B2; \n' +
    '}#content{margin:0 0 0 2%;position:relative;} \n' +
    '.summary-container,.content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;} \n' +
    '.content-container p{margin:0 0 10px 0; \n' +
    '}#details-left{width:35%;float:left;margin-right:2%; \n' +
    '}#details-right{width:63%;float:left;overflow:hidden; \n' +
    '}#server_version{width:96%;_height:1px;min-height:1px;margin:0 0 5px 0;padding:11px 2% 8px 2%;color:#FFFFFF; \n' +
    ' background-color:#5A7FA5;border-bottom:1px solid #C1CFDD;border-top:1px solid #4A6C8E;font-weight:normal; \n' +
    ' font-size:1em;color:#FFF;text-align:right; \n' +
    '}#server_version p{margin:5px 0;} \n' +
    'table{margin:4px 0 4px 0;width:100%;border:none;} \n' +
    'td,th{vertical-align:top;padding:3px 0;text-align:left;font-weight:normal;border:none;} \n' +
    'th{width:30%;text-align:right;padding-right:2%;font-weight:bold;} \n' +
    'thead th{background-color:#ebebeb;width:25%; \n' +
    '}#details-right th{width:20%;} \n' +
    'table tr.alt td,table tr.alt th{} \n' +
    '.highlight-code{color:#CC0000;font-weight:bold;font-style:italic;} \n' +
    '.clear{clear:both;} \n' +
    '.preferred{padding:0 5px 2px 5px;font-weight:normal;background:#006633;color:#FFF;font-size:.8em;} \n' +
    '--> \n' +
    '</style> \n' +
    ' \n' +
    '</head> \n' +
    '<body> \n' +
    '<div id="content"> \n' +
    '<div class="content-container"> \n' +
    '  <h3>HTTP Error 403.501 - Forbidden</h3> \n' +
    '  <h4>You do not have permission to view this directory or page.</h4> \n' +
    '</div> \n' +
    '<div class="content-container"> \n' +
    ' <fieldset><h4>Most likely causes:</h4> \n' +
    '  <ul> \t<li>This is a generic 403 error and means the authenticated user is not authorized to view the page.</li> </ul> \n' +
    ' </fieldset> \n' +
    '</div> \n' +
    '<div class="content-container"> \n' +
    ' <fieldset><h4>Things you can try:</h4> \n' +
    '  <ul> \t<li>Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click <a href="http://go.microsoft.com/fwlink/?LinkID=66439">here</a>. </li> </ul> \n' +
    ' </fieldset> \n' +
    '</div> \n' +
    ' \n' +
    '<div class="content-container"> \n' +
    ' <fieldset><h4>Detailed Error Information:</h4> \n' +
    '  <div id="details-left"> \n' +
    '   <table border="0" cellpadding="0" cellspacing="0"> \n' +
    '    <tr class="alt"><th>Module</th><td>&nbsp;&nbsp;&nbsp;IIS Web Core</td></tr> \n' +
    '    <tr><th>Notification</th><td>&nbsp;&nbsp;&nbsp;Unknown</td></tr> \n' +
    '    <tr class="alt"><th>Handler</th><td>&nbsp;&nbsp;&nbsp;aspNetCore</td></tr> \n' +
    '    <tr><th>Error Code</th><td>&nbsp;&nbsp;&nbsp;0x00000000</td></tr> \n' +
    '     \n' +
    '   </table> \n' +
    '  </div> \n' +
    '  <div id="details-right"> \n' +
    '   <table border="0" cellpadding="0" cellspacing="0"> \n' +
    '    <tr class="alt"><th>Requested URL</th><td>&nbsp;&nbsp;&nbsp;https://api.centerforilpolitics.org:443/token/auth</td></tr> \n' +
    '    <tr><th>Physical Path</th><td>&nbsp;&nbsp;&nbsp;D:\\vhosts\\api.centerforilpolitics.org\\httpdocs\\token\\auth</td></tr> \n' +
    '    <tr class="alt"><th>Logon Method</th><td>&nbsp;&nbsp;&nbsp;Not yet determined</td></tr> \n' +
    '    <tr><th>Logon User</th><td>&nbsp;&nbsp;&nbsp;Not yet determined</td></tr> \n' +
    '     \n' +
    '   </table> \n' +
    '   <div class="clear"></div> \n' +
    '  </div> \n' +
    ' </fieldset> \n' +
    '</div> \n' +
    ' \n' +
    '<div class="content-container"> \n' +
    ' <fieldset><h4>More Information:</h4> \n' +
    '  This generic 403 error means that the authenticated user is not authorized to use the requested resource. A substatus code in the IIS log files should indicate the reason for the 403 error. If a substatus code does not exist, use the steps above to gather more information about the source of the error. \n' +
    '  <p><a href="https://go.microsoft.com/fwlink/?LinkID=62293&amp;IIS70Error=403,501,0x00000000,17763">View more information &raquo;</a></p> \n' +
    '   \n' +
    ' </fieldset> \n' +
    '</div> \n' +
    '</div> \n' +
    '</body> \n' +
    '</html> \n'
}
Application has thrown an uncaught exception and is terminated:
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
    at new NodeError (node:internal/errors:387:5)
    at ServerResponse.setHeader (node:_http_outgoing:644:11)
    at ServerResponse.writeHead (node:_http_server:348:21)
    at Function._callee$ (D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\donors.js:13898:25)
    at tryCatch (D:\vhosts\data.centerforilpolitics.org\httpdocs\node_modules\regenerator-runtime\runtime.js:62:40)
    at Generator.invoke [as _invoke] (D:\vhosts\data.centerforilpolitics.org\httpdocs\node_modules\regenerator-runtime\runtime.js:288:22)
    at Generator.prototype.<computed> [as next] (D:\vhosts\data.centerforilpolitics.org\httpdocs\node_modules\regenerator-runtime\runtime.js:114:21)
    at asyncGeneratorStep (D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\donors.js:13798:103)
    at _next (D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\donors.js:13800:194)
    at D:\vhosts\data.centerforilpolitics.org\httpdocs\src\.next\server\static\QyaWwX~47OLNw1CduRTNE\pages\donors.js:13800:364