function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Fi MercerFi Mercer 

Username-Password Authentication Using Rest Repost

Hi,

Still on AWS server. We tried opening all inbound and outbound ports but still got an error when calling API request https://test.salesforce.com/services/oauth2/token. Do you guys have any idea what might have cause the error? Thank you in advance.

<html>
<head><title>An internal server error has occurred</title></head>
<body>
<div style="display:none;" id="errorTitle">An internal server error has occurred</div>
<div style="display:none;" id="errorDesc">An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact <a href="https://help.salesforce.com/apex/hthome">Salesforce Support</a>. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. <br/><br/>Thank you again for your patience and assistance. And thanks for using salesforce.com!</div>
<table cellspacing=10>
<tr><td><span style="font-weight: bold; font-size: 12pt;">An internal server error has occurred</span></td></tr>
<tr><td>
An error has occurred while processing your request. The salesforce.com support team has been notified of the problem. If you believe you have additional information that may be of help in reproducing or correcting the error, please contact <a href="https://help.salesforce.com/apex/hthome">Salesforce Support</a>. Please indicate the URL of the page you were requesting, any error id shown on this page as well as any other related information. We apologize for the inconvenience. <br/><br/>Thank you again for your patience and assistance. And thanks for using salesforce.com!
<br><br>
Error ID: 1654691365-20298 (801801977)
</td>
</tr>
<tr><td>
<br clear="all"><br><br>
</td></tr>
</table>
</td></tr>
</table>
</body>
</html>
NagendraNagendra (Salesforce Developers) 
Hi Mercer,

This type of error indicates that an error has occurred that hasn't been trapped by the platform - a low-level java exception for example.  All you can really do in terms of resolution is raise this with support and wait for a response.
 
If you need to move quicker than, start removing functionality from the component to isolate where the problem occurs and see if there are any other mechanisms you can use.

Note: There is a binary chop technique of commenting out half the code and seeing if the error goes away, and narrow down from that.

Still, if the problem persists may I suggest you to log a ticket with salesforce support team which might be the best option you have.

You may reach salesforce support team below. Hope this helps.

Best Regards,
Nagendra.