JuiceyBrucey wrote:When I drill down into the JiwaAPI.zip file in this file:
Plugin REST API.xml
I get <Version>7.2.0.0</Version>
But when I look at the version information in the JIWA client, under REST API I get version: 7.2.1.0
I know this has been mentioned, but maybe I missed it.
Could this pose a problem?
What we use is whatever is in the plugin of the database you're operating on.
We don't use what's in the JiwaAPI.zip file, but it should be 7.2.1.x if you're using Jiwa 7.2.1.
Just so we're clear, it's the version on the Plugin Maintenance form when looking at the REST API plugin
It should be at least 7.2.1.0.
If you install a Service Release (SR), we update the Plugin REST API.xml inside the JiwaAPI.zip file, but you have to extract that and use the Import tool on the Utilities tab of the Plugin Maintenance form to get that updated plugin into whatever databases you need. Once you do that, you need to save the plugin maintenance record and then restart your API service.
I don't see the how the plugin version would be causing your specific issue, however.
If you're not willing to do the "known goods" test and test using a new demo database, then the following steps are what I would do next.
1. Rename the Views folder in the Jiwa installation folder
2. Disable the plugin '1 - Performance Metrics'
3.
Restart the Jiwa REST API service4. Perform your request to POST on /Webhooks/Subscribers again. You won't get a HTTPCompileException relating to the plugin '1 - Performance Metrics' anymore. You may get a different error, probably a 401 because that route requires authentication.
As all the Webhook routes require authentication, you should also have a problem with a GET on Webhooks/Subscribers also - so you can test that using a web browser:
1. Visit /auth?username=Admin&password=password
2. Visit /Webhooks/Subscribers
What do you see when you do that?
What I see when I try visiting /Webhooks/Subscribers and not authenticated is this:
And that's because I haven't deleted or renamed the Views folder and the API is trying to be nice and redirect my browser to a razor view with a login dialog because it knows you're not authenticated and it knows you're using a web browser, so it's trying to be helpful - but some other issue with that environment is throwing the HTTPCompile exception - but it'll only happen when using a browser.
Why your PHP code is getting this is probably because your user agent string is making your request look like a web browser - but I can only guess that because I've not seen your raw request.