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.

@graham.taylor

Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

@graham.taylor

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
24.6k 54 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.