Page 1 of 1

Getting internal errors - status 500

Posted: Mon Jul 01, 2024 5:09 am
by tonyo
Got internal server error on accessing REST API.

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

Re: Getting internal errors - status 500

Posted: Mon Jul 01, 2024 9:08 pm
by gavynj
Same here, just since yesterday.

In my particular case, hitting the

Code: Select all

/companies/{ID}/customers/
endpoint with

Code: Select all

Archived=in(true,false)
is now failing, but only for a couple of Simpro instances. Others are fine, or haven't had updates rolled out to them yet?

If I ask for

Code: Select all

Archived=true
or

Code: Select all

Archived=false
then they return without error, but using the in(...) statement is broken.

500 Internal Server Error

Re: Getting internal errors - status 500

Posted: Tue Jul 02, 2024 3:20 am
by SimproAPITeam
Hi,
Thank you both for reporting this.

I have recreated this on my side and we will create a ticket to investigate why this is suddenly happening.

Tonyo, did you do the same queries that produced errors for gavynj or did you use other search parameters causing 500 error?

Regards

Re: Getting internal errors - status 500

Posted: Tue Jul 02, 2024 3:56 am
by tonyo
My api queries are different to his.

/api/v1.0/companies/{companyID}/jobs/{jobID}/sections/{sectionID}/costCenters/{costCenterID"]}/schedules/{scheduleID}"

or

/api/v1.0/companies/{companyID}/quotes/{quoteID}/sections/{sectionID}/costCenters/{costCenterID"]}/schedules/{scheduleID}"


There are the likely culprits. I'm not 100% sure, I updated my logging the last time this happened to include the payload, but neglected to include the endpoint, something I'll resolve in my next release

Re: Getting internal errors - status 500

Posted: Tue Jul 02, 2024 5:37 am
by SimproAPITeam
Thank you tonyo,
These are likely different issues. I could not reproduce your errors on these endpoints so there could have been a temporary issue.

Regards