Page 1 of 1

api 401 in 7.2.1 SR5

PostPosted: Tue Nov 23, 2021 5:28 pm
by perry
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?

Re: api 401 in 7.2.1 SR5  Topic is solved

PostPosted: Tue Nov 23, 2021 5:46 pm
by SBarnes
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

Re: api 401 in 7.2.1 SR5

PostPosted: Wed Nov 24, 2021 9:32 am
by perry
Thanks Stuart!

Should've searched the forum first.

Re: api 401 in 7.2.1 SR5

PostPosted: Sun Jul 30, 2023 6:25 pm
by JuiceyBrucey
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

Re: api 401 in 7.2.1 SR5

PostPosted: Sun Jul 30, 2023 6:33 pm
by SBarnes
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.

Re: api 401 in 7.2.1 SR5

PostPosted: Mon Jul 31, 2023 9:40 am
by JuiceyBrucey
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

Re: api 401 in 7.2.1 SR5

PostPosted: Mon Jul 31, 2023 10:57 am
by SBarnes
Yes

Re: api 401 in 7.2.1 SR5

PostPosted: Wed Aug 23, 2023 8:18 am
by JuiceyBrucey
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

Re: api 401 in 7.2.1 SR5

PostPosted: Wed Aug 23, 2023 10:50 am
by Mike.Sheen
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.

Re: api 401 in 7.2.1 SR5

PostPosted: Tue Aug 29, 2023 4:39 pm
by JuiceyBrucey
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.