03-19-2021 10:31 AM
I've used the UCCX realtime stats API for simple wallboard that merges some data together in 1 screen that I couldn't build with a dashboard. Yes, I know it isnt documented and isnt advertised for use. I have had this working for multiple years now.
We upgraded from UCCX 12.5 to 12.5 SU1 (12.5.1.11001-348) and I can no longer access the URLs that provide the data.
For example...
https://<UCCX SERVER>:9443/realtime/schema does still work
https://<UCCX SERVER>:9443/realtime/VoiceIAQStats throws a "HTTP Status 405 - Method Not Allowed'
This only happened after applying SU1
I've tried the old port it used of 9080, no luck. I also tried 8445 and get the same result as above. I also tried http vs https.
Anyone know of anything that can be done to retrieve the data from the URLs? Finesse still gets the data but I am unable to from a browser or Postman.
Tom
Solved! Go to Solution.
03-22-2021 06:00 AM - edited 03-22-2021 06:07 AM
Hej Tom
I have the same problem, and have tried to fix this.
If I change the method from GET to POST, i actually gets data. Try that
So try to change it to POST instead of GET.
I have tested it with postmann and it works with POST method
If this is a feature or a bug I don't know - very strange that a request should be a POST
Best Regards
Thomas
03-22-2021 06:00 AM - edited 03-22-2021 06:07 AM
Hej Tom
I have the same problem, and have tried to fix this.
If I change the method from GET to POST, i actually gets data. Try that
So try to change it to POST instead of GET.
I have tested it with postmann and it works with POST method
If this is a feature or a bug I don't know - very strange that a request should be a POST
Best Regards
Thomas
03-22-2021 08:10 AM
Thanks so much.
You know, I did already try POST in Postman and but got a "Cross-Origin Resource Sharing (CORS) Filter: CORS origin denied"
I went into my code though and try POST and it did work from there.
I also see you are using port 9080 which I believe changed to port 9443 in UCCX 11+. 9080 doesnt work for me in 12.5 SU1 but 9443 still does.
Thanks again! So happy I didnt have to go rewrite code to do database queries
Tom
03-23-2021 02:25 AM
Glad i could help
CORS - Damm I hate that
The screenshot is actually from a request to a UCCX12.5SU1
Just tested the different post.
Port 9443 - Works only with https
Port 9080 - Works only with http
So both ports are in use depending of the https or http
This is tested on UCCX 12.5SU1 (12.5.1.11001-348)
/Thomas
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide