Webhook 406 problem

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
gmason
Posts: 20
Joined: Thu Jun 06, 2019 4:03 am
Location: Australia

Webhook 406 problem

Post by gmason » Wed Jan 29, 2025 2:02 am

Hi,

How do i fix a 406 problem?
I have created several webhook events to a callback url.
And the response code is 406. It started on 13/1/2025. It worked fine before.
Do you know where I should start to figure out how to resolve this 406 problem?

Thanks,
Godfrey.
gmason
Posts: 20
Joined: Thu Jun 06, 2019 4:03 am
Location: Australia

Re: Webhook 406 problem

Post by gmason » Thu Jan 30, 2025 1:15 am

Hi,

Here is the error message on Simpro showing the 406 response code:
Capture.JPG
Capture.JPG (36.46 KiB) Viewed 21625 times
Thanks,
Godfrey.
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Webhook 406 problem

Post by SimproAPITeam » Fri Jan 31, 2025 3:42 am

Hi Godfrey,
We have not seen other reports of 406 errors lately.

I don't know this specific error from before but it seems like the format returned from Simpro is not matching the formats set as accepted on your side. Have you done any changes to your Headers and set restrictons on the type of format accepted?

Regards
Simpro API Team | Simpro Software Group
gmason
Posts: 20
Joined: Thu Jun 06, 2019 4:03 am
Location: Australia

Re: Webhook 406 problem

Post by gmason » Fri Jan 31, 2025 5:45 am

Hi,

The header has not changed and there are no restrictions on the type of format accepted as far as i can tell.

Could the webhooks be blocked by the server? If so, what is the IP or URL so it can be whitelisted?

Thanks,
Godfrey.
SimproAPITeam
Posts: 831
Joined: Wed May 01, 2024 2:31 am

Re: Webhook 406 problem

Post by SimproAPITeam » Fri Feb 07, 2025 3:07 am

To see if webhooks are triggered and sent correctly from Simpro I recommend that you test using a webhook testing site such as webhook.siteor similar.

Add the unique url to your Simpro Webhook setup and trigger it by doing the same updates such as creating a site. If you receive the webhooks you know they are delivered as expected and can start debugging why they are failing with your specific callback url.

The webhook IP's are not available to us so I'm unable to share these unfortunately.

Regards
Simpro API Team | Simpro Software Group
gmason
Posts: 20
Joined: Thu Jun 06, 2019 4:03 am
Location: Australia

Re: Webhook 406 problem

Post by gmason » Fri Feb 07, 2025 5:59 am

Hi SimproAPITeam,

I did some testing and found that the response being returned from the URL is not the correct encoding.
The encoding of the message being returned was still in gzip format and not deflated.
Which then explains why Simpro is reporting a 406 not acceptable error.

Godfrey.
Post Reply