Webhook Subscriptions and Restart  Topic is solved

Discussions relating to the REST API of Jiwa 7.

Webhook Subscriptions and Restart

Postby SBarnes » Wed Feb 24, 2021 11:10 pm

Does a call to the restart route force a reloading of the webhook subscriptions or is that only achieved by restarting the windows service?

What I am trying to get to is how to refresh the subscriptions after a change has been made to the subscriptions via the api and the only way at the moment seems to be restarting the self-hosted service through windows at least that's what some external programmers are claiming.

I have an external programming team that claims they are not refreshing but unless I am not reading something correctly WebhooksSubscriptionsPATCHRequest and WebhooksSubscriptionsPOSTRequest both update the in memory list as well as the database.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Webhook Subscriptions and Restart

Postby Mike.Sheen » Thu Feb 25, 2021 11:42 am

SBarnes wrote:Does a call to the restart route force a reloading of the webhook subscriptions or is that only achieved by restarting the windows service?

A call to the restart route won't do anything for self-hosted, only on IIS.

If you configure the services recovery properties to "Restart the Service", then a call to /servicestop will effectively be a restart - it will stop the service and Windows will apply the recovery policy and restart it. You can read more here.

SBarnes wrote:What I am trying to get to is how to refresh the subscriptions after a change has been made to the subscriptions via the api and the only way at the moment seems to be restarting the self-hosted service through windows at least that's what some external programmers are claiming.

I have an external programming team that claims they are not refreshing but unless I am not reading something correctly WebhooksSubscriptionsPATCHRequest and WebhooksSubscriptionsPOSTRequest both update the in memory list as well as the database.

Yes, we do update the in-memory list as well as the table. If you have steps to repro an issue, just log a helpdesk ticket and we'll look into it!
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Webhook Subscriptions and Restart  Topic is solved

Postby SBarnes » Thu Feb 25, 2021 11:54 am

Thanks Mike,

I don't think its an issue, I believe the issue is at their end and it is refreshing these guys wanted to claim the hook weren't firing and when I looked in messages they were returning a 500, they also wanted to claim they were getting sent the hook four times so I lowered the retry to 1 and they still got 4 copies only to discover the issue is at their end again, this is definitely doing my head in when having to investigate false issues.

The upside is that at least now I have read pretty much all the webhook code in the plugin.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to REST API

Who is online

Users browsing this forum: No registered users and 5 guests

cron