cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3092
Views
10
Helpful
3
Replies

UCCX realtime stats API - Change in 12.5 SU1?

tsuntken
Level 1
Level 1

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

 

 

1 Accepted Solution

Accepted Solutions

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

 

Capture.PNG

 

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

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.

View solution in original post

3 Replies 3

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

 

Capture.PNG

 

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

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.

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

 

 

 

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

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: