Webhooks not working  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Re: Webhooks not working

Postby JuiceyBrucey » Tue May 16, 2023 8:19 am

Trying to create a new demo database so I can test it with the webhooks subscriber plugin, but not having any luck.
I am assuming I must copy the current JIWA database and rename it. Ordinarily this would be a no brainer in MySQL, but I am struggling with doing this in JIWA or MS SQL Server Management Studio version 18.2.
There is a copy feature in non express version of this program, but not in mine as I am express.
I have looked at lots of tutorials on how to do this but keep hitting brick walls.
can you suggest a simple way of doing this?
Thank you
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: Webhooks not working

Postby SBarnes » Tue May 16, 2023 8:49 am

At the login screen click the databases button and choose the first option in the wizard
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Webhooks not working

Postby JuiceyBrucey » Tue May 16, 2023 3:28 pm

almost got there but got this error when the wizard was creating the database:
"restore database from BACPAC file: could not import package"
Tried to look this error up, but found nothing that is specific to this issue.
Any ideas?
Thank you
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: Webhooks not working

Postby JuiceyBrucey » Tue May 16, 2023 3:38 pm

I tried making a bacpac file but got this message:
TITLE: Microsoft SQL Server Management Studio
------------------------------

One or more unsupported elements were found in the schema used as part of a data package.
Error SQL46010: View: [dbo].[v_SY_WebhookSubscriber_Messages] contains a statement that is not supported on Microsoft Azure SQL Database v12. The specific error is: Incorrect syntax near URL.
Error SQL46010: View: [dbo].[v_SY_WebhookSubscriber_MessageResponses] contains a statement that is not supported on Microsoft Azure SQL Database v12. The specific error is: Incorrect syntax near URL.
(Microsoft.SqlServer.Dac)

------------------------------
BUTTONS:

OK
------------------------------
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: Webhooks not working

Postby Mike.Sheen » Tue May 16, 2023 5:43 pm

JuiceyBrucey wrote:almost got there but got this error when the wizard was creating the database:
"restore database from BACPAC file: could not import package"
Tried to look this error up, but found nothing that is specific to this issue.
Any ideas?
Thank you


What version of SQL Server are you using, and what Jiwa SR level have you got? I'd be wanting to make sure you have Jiwa 7.2.1 SR15 installed, and make sure your SQL Server version is later than 2012.
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: Webhooks not working

Postby Mike.Sheen » Tue May 16, 2023 5:43 pm

JuiceyBrucey wrote:I tried making a bacpac file but got this message:


Don't do that. You don't need to make a bacpac... you're going off piste.
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: Webhooks not working

Postby JuiceyBrucey » Tue May 16, 2023 6:20 pm

SQL Server Management Studio 15.0.18142.0
Microsoft Analysis Services Client Tools 15.0.1389.0
Microsoft Data Access Components (MDAC) 10.0.19041.2913
Microsoft MSXML 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 9.11.19041.0
Microsoft .NET Framework 4.0.30319.42000
Operating System 10.0.19044

Jiwa Financials
===============
Application Version : 7.2.1.0
Database Version : 7.2.1
SQL Version : 15.0.2000.5
SQL Version String : Microsoft SQL Server 2019 (RTM) - 15.0.2000.5 (X64)
Sep 24 2019 13:48:23
Copyright (C) 2019 Microsoft Corporation
Express Edition (64-bit) on Windows 10 Pro 10.0 <X64> (Build 19044: )

Not sure how to find the service release, sorry.
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: Webhooks not working

Postby Scott.Pearce » Wed May 17, 2023 9:41 am

Not sure how to find the service release, sorry.


If you have a Jiwa SR installed for 7.2.1 you will see an entry in:

Control Panel -> Program and Features -> View Installed Updates

If no such entry exists, you have 7.2.1 with no Service Release installed.

I suspect your problem is that you need to install 7.2.1 SR 15, available from https://support.jiwa.com.au/Home/Downloads
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Webhooks not working

Postby JuiceyBrucey » Wed May 17, 2023 11:52 am

Hi, Thanks for reply.
So the SR 15 was not present. I downloaded and installed it.
I had some issues afterwards with this error on restart:
System.MissingMethodException: Method not found: 'Void JiwaFinancials.Jiwa.JiwaApplication.Manager.LogEvent(System.String, System.Diagnostics.EventLogEntryType, Int32, Int16)

I deleted the contents of C:\ProgramData\Jiwa Financials\Jiwa 7 then restarted the API. The problem went away.
But I still cannot see any subscribers added in the SY_WebhookSubscriber table.
The API still returns:
array(2) {
["Results"]=>
array(0) {
}
["Meta"]=>
array(0) {
}
}

Do you want me to do the whole subscriber process in postman and send all the raw headers?
Anything else you can think of?
Thank you
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: Webhooks not working

Postby Scott.Pearce » Wed May 17, 2023 12:11 pm

OK. What version is the REST API plugin in Jiwa?

Edit: Get the REST API plugin that ships with SR15. After installing SR15, extract the latest REST API Plugin from the RESTAPI.zip file in the Jiwa installation folder. Import plugin. Restart service.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

PreviousNext

Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 17 guests