1. Zhang JX
  2. PowerServer
  3. Thursday, 5 August 2021 03:09 AM UTC

Hi Team,

I used to access https://<PS serverIP>/api/Custom/GetAllSessions to get all sessions with Powerserver2021 Beta deployment, while for now, with PS2021 GA release, I got error to fetch session info:

This <localhost> page can’t be foundNo webpage was found for the web address: https://<localhost>:5000/api/Custom/GetAllSessions
HTTP ERROR 404

 

any idea?

Regards,

JX

 

Accepted Answer
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Thursday, 5 August 2021 03:18 AM UTC
  2. PowerServer
  3. # Permalink

First, make sure your PowerServer Web API project is running.

Next, check to see if you configured TLS or not.  Otherwise, you should be using HTTP not HTTPS in your URL.  And check to see the port # of your project is 5000.   This info will be displayed in the Command Prompt dialog when your Web API is running.

 

Then, load up the Web API documentation.  We use Swagger:  http://localhost:5000/swagger  The session related APIs are the following:

Comment
  1. Zhang JX
  2. Thursday, 5 August 2021 03:26 AM UTC
Thanks Armeen@Appeon,

Both GET /api/session/loadall and /GetSessionCoutn are working fine.



Thank you.

JX
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 5 August 2021 03:28 AM UTC
Great, glad to hear that!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.