[Intermittent] REST Api - 500 - Internal Server Error

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
rob_marklands
Posts: 11
Joined: Thu Nov 29, 2018 1:55 am

[Intermittent] REST Api - 500 - Internal Server Error

Post by rob_marklands » Wed May 05, 2021 1:17 am

Good day,

We have started experiencing an 500 - Internal Server Error returned occasionally from Simpro for various requests, but not every time.

I have sent a private message to Muqeet with the build URL

Example of requests with the return data below:

Code: Select all

<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"
         \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">
 <head>
  <title>500 - Internal Server Error</title>
 </head>
 <body>
  <h1>500 - Internal Server Error</h1>
 </body>
</html>

Examples of requests that sometimes return that error:

Code: Select all


[2021-05-05 07:25:42]
"GET","/api/v1.0/companies/0/quotes/28180?columns=ID,Type,Status,Description,Notes,Customer,Site,Total,Sections&display=all"

[2021-05-05 09:25:24]
"GET","/api/v1.0/companies/0/quotes/28159/sections/31476/costCenters/31507?columns=ID,ItemsLocked"

[2021-05-05 08:53:59]
"POST","/api/v1.0/companies/0/quotes/28155/sections/31472/costCenters/31503/catalogs/multiple/"

[2021-05-05 10:25:17]
"GET","/api/v1.0/companies/0/quotes/28162/sections/31479/costCenters/31510?columns=ID,ItemsLocked"

[2021-05-05 10:51:50]
"GET","/api/v1.0/companies/0/quotes/28160/attachments/files/?columns=ID,Filename,Folder,FileSizeBytes&pageSize=200"

Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: REST Api - 500 - Internal Server Error

Post by Muqeet » Wed May 05, 2021 2:02 am

Hello Rob,

The issue has been resolved. Please let us know if you encounter the error again.
Muqeet
API Developer | simPRO Software Group
rob_marklands
Posts: 11
Joined: Thu Nov 29, 2018 1:55 am

Re: REST Api - 500 - Internal Server Error

Post by rob_marklands » Wed May 05, 2021 2:04 am

Muqeet wrote: ↑Wed May 05, 2021 2:02 am Hello Rob,

The issue has been resolved. Please let us know if you encounter the error again.
Confirming that the issue is resolved. Thank you for quick response
sathish
Posts: 53
Joined: Wed Apr 17, 2019 7:24 am

Re: [Resolved] REST Api - 500 - Internal Server Error

Post by sathish » Tue May 11, 2021 4:58 pm

Hi Team,

Again getting 500 Error. Please fix asap & let us know the reason for the error.
simpro_error.png
simpro_error.png (89.47 KiB) Viewed 7739 times
Regards,
Sathish Kumar
gavynj
Posts: 13
Joined: Fri May 01, 2020 1:34 am

Re: [Resolved] REST Api - 500 - Internal Server Error

Post by gavynj » Tue May 11, 2021 8:52 pm

I've been getting a lot of 500 errors overnight too. The API requests will sometimes come back ok, but not consistently. Seems to be getting more unstable lately.
wildhart
Posts: 32
Joined: Tue May 11, 2021 8:54 pm

Re: [Resolved] REST Api - 500 - Internal Server Error

Post by wildhart » Tue May 11, 2021 8:58 pm

I am also getting these 500 Internal Server Errors since yesterday:

Code: Select all

error 500 - "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?>\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\n \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">\n <head>\n <title>500 - Internal Server Error</title>\n </head>\n <body>\n <h1>500 - Internal Server Error</h1>\n </body>\n</html>\n" { 
uri: 'https://allcleargroup.simprosuite.com/api/v1.0/companies/0/customers/1234/contacts/', 
method: 'GET', 
json: true, 
resolveWithFullResponse: true, 
auth: { bearer: '26a0f5318xxxaac2f7b67' }, 
Plus sometimes, when fetching a page of customers/contacts I receive an incomplete JSON string which can't be parsed. This isn't consistent, happens on random pages, different pages each time:

Code: Select all

not an array! result.body.length 72136 type string https://allcleargroup.simprosuite.com/api/v1.0/companies/0/customers/ { 
pageSize: 100, 
page: 23, 
columns: 'ID,_href,CompanyName,Phone,Email,GivenName,FamilyName,Address,BillingAddress,DateCreated,DateModified,Profile' 
} 
error parsing json 
SyntaxError: Unexpected end of JSON input 
at JSON.parse (<anonymous>) 
iconone
Posts: 50
Joined: Sun Jun 21, 2020 11:22 pm

Re: [Resolved] REST Api - 500 - Internal Server Error

Post by iconone » Tue May 11, 2021 9:45 pm

Is this resolved?

I've been getting intermittent 500 errors on API requests this morning.
Khurram
Posts: 1
Joined: Tue Sep 15, 2020 10:21 pm

Re: [Resolved] REST Api - 500 - Internal Server Error

Post by Khurram » Tue May 11, 2021 9:47 pm

Hi SimPRO team,

We are still getting the same error randomly and its affecting our production system.

Can you please provide and ETA when this will be fixed?

Need urgent action on this please ...

Thanks.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

Re: [Intermittent] REST Api - 500 - Internal Server Error

Post by Muqeet » Tue May 11, 2021 11:54 pm

@all

The issue is intermittent and we are tracking it closely. The api at the moment is stable and you guys would not be getting those 500s for now. Please leave a message here if its not the case for any one of you.
Muqeet
API Developer | simPRO Software Group
Post Reply