api 401 in 7.2.1 SR5  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

api 401 in 7.2.1 SR5

Postby perry » Tue Nov 23, 2021 5:28 pm

Hi,

This is 7.2.1 SR5.

We have a client that upgraded to SR5 and api stopped working.

So I have tested 2 end points, /debtors/id (using apikey) and /auth (using username/password)

I tried on different clients version (SR0 and SR5) and same database
- both endpoints work on SR0 (or whatever SR last modified is 8/7/2020 3:11pm) client
- both endpoints dont work on SR5 client
- I get 401 when using apikey
- I get below error when using /auth
Code: Select all
"ErrorCode": "MissingMethodException",
        "Message": "Method not found: 'Void JiwaFinancials.Jiwa.JiwaApplication.Manager.LogEvent(System.String, System.Diagnostics.EventLogEntryType, Int32, Int16)'.",
        "StackTrace": "[Authenticate: 11/23/2021 5:56:46 AM]:\n[REQUEST: {UserName:admin,Password:xxx}]\nSystem.MissingMethodException: Method not found: 'Void JiwaFinancials.Jiwa.JiwaApplication.Manager.LogEvent(System.String, System.Diagnostics.EventLogEntryType, Int32, Int16)'.\r\n   at JiwaFinancials.Jiwa.JiwaServiceModel.JiwaAuthProvider.<>c__DisplayClass3.<<Authenticate>b__0>d__7.MoveNext()\r\n   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.Start[TStateMachine](TStateMachine& stateMachine)\r\n   at JiwaFinancials.Jiwa.JiwaServiceModel.JiwaAuthProvider.<>c__DisplayClass3.<Authenticate>b__0()\r\n   at System.Threading.Tasks.Task`1.InnerInvoke()\r\n   at System.Threading.Tasks.Task.Execute()",
        "Errors": []


However, I cannot reproduce this error on a demo database.

Please let me know if this should be raised with your helpdesk?
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: api 401 in 7.2.1 SR5  Topic is solved

Postby SBarnes » Tue Nov 23, 2021 5:46 pm

There seems to be an issue with SR5, see the link below but basically you need to force the REST API plugin to recompile to get around the issue.


viewtopic.php?f=32&t=1591
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: api 401 in 7.2.1 SR5

Postby perry » Wed Nov 24, 2021 9:32 am

Thanks Stuart!

Should've searched the forum first.
Perry Ma
S. Programmer
Lonicera Pty Ltd
http://www.lonicera.com.au
perry
Frequent Contributor
Frequent Contributor
 
Posts: 173
Joined: Mon Oct 27, 2008 2:26 pm
Topics Solved: 15

Re: api 401 in 7.2.1 SR5

Postby JuiceyBrucey » Sun Jul 30, 2023 6:25 pm

I have a similar error on JIWA 7.2.1 SR 16.
Recently upgraded to SR 16 from SR 4 and now getting the same error.
I have read the forums and it is said that if I delete the ProgramData\Jiwa Financials\Jiwa 7 files, it will force a recompile of all plugins.
I just want to make sure that this is the correct action and I will not be deleting any data that is important.
Is that correct?
thank you
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: api 401 in 7.2.1 SR5

Postby SBarnes » Sun Jul 30, 2023 6:33 pm

Yes you can delete that directory, Jiwa will as you stated recreate that directory and deploy and recompile the plugins to that location.

If you are going from SR4 to SR16 see the following link https://jiwa.atlassian.net/wiki/spaces/ ... Release+15 and read the part about changes to how to call GetManager if you have any custom routes as this changes as of SR15.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: api 401 in 7.2.1 SR5

Postby JuiceyBrucey » Mon Jul 31, 2023 9:40 am

Excellent. thanks for the reply.
I should have included this in my last question, but there are five terminals all working off the JIWA installation.
Should I get them all to finish up their work, switch off, before I delete this folder so that data they are working on is not lost?
Thank you.
Cheers
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: api 401 in 7.2.1 SR5

Postby SBarnes » Mon Jul 31, 2023 10:57 am

Yes
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: api 401 in 7.2.1 SR5

Postby JuiceyBrucey » Wed Aug 23, 2023 8:18 am

I have sent several emails to JIWA head office requesting one of their technicians log into our server and fix this issue for us, and am not getting any results.
I dont want to touch it because I am not a JIWA expert even though the task seems simple. If something goes wrong, I dont want to be the one trying to fix it.
We have requested a price and got an hourly quote which is fine and I have the go ahead. But I am not getting any further replies.
Any advice?
Cheers
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1

Re: api 401 in 7.2.1 SR5

Postby Mike.Sheen » Wed Aug 23, 2023 10:50 am

JuiceyBrucey wrote:I have sent several emails to JIWA head office requesting one of their technicians log into our server and fix this issue for us, and am not getting any results.


You logged issue JIWA-11091 and got a response the same day you logged the issue - August 14, 2023.

We never heard anything back from you on the issue.

Your request made on the issue was for us to remote in and troubleshoot - and we explained on that issue that would incur a fee - and you didn't respond after that.

If you're emailing, then stop that - use the ticket system.
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: api 401 in 7.2.1 SR5

Postby JuiceyBrucey » Tue Aug 29, 2023 4:39 pm

Thank you.
Problem solved.
Program data folder contents deleted, API restarted, all plugins started working apart from one that is the subject of another post.
Thank you.
JuiceyBrucey
Frequent Contributor
Frequent Contributor
 
Posts: 132
Joined: Tue Aug 18, 2020 7:19 pm
Topics Solved: 1


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 36 guests

cron