For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 2 2 1

ServiceDiscovery Sample Fails

I am using the service discovery (Python) example. It works for some time (a few minutes) before failing with response below:


RECEIVED on session1:
[
  {
    "Domain":"Login",
    "ID":1,
    "Key":{
      "Elements":{
        "AuthenticationErrorCode":1026,
        "AuthenticationErrorText":"Request for token validation failed:Authentication server did not contain \"active\" in response"
      },
      "NameType":5
    },
    "State":{
      "Code":"UserAccessToAppDenied",
      "Data":"Suspect",
      "Stream":"Closed",
      "Text":"TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain \"active\" in response)."
    },
    "Type":"Status"
  }
]


Please advise

pythontreprdp-apiwebsocketsrrto
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
24.4k 53 17 14

Hello @graeme.taylor

Did you try the latest version of ERT in Cloud service discovery example yet? The latest version has been updated on September 20th to support new authentication process which requires the client_id credential. You can download it from ERT in Cloud example download page or GitHub.


If you have modified the ServiceDiscovery application, please share your example code and entire application log as requested by my colleague above.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
11.3k 25 9 14

Hello @graeme.taylor,

The error message implies that the token validation request was failed on the connected server. Have you modified the ServiceDiscovery application? Can you share the example you are using including entire application log?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.