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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 1 2

Login Fail

We receive the following unexpected response:

[
  {
    "ID": 525729497,
    "Type": "Error",
    "Text": "JSON Converter Token Type error: Expected 'PRIMITIVE' for key 'ID' Received 'PRIMITIVE'",
    "Debug": {
      "File": "/local/jenkins/workspace/RTDSHotFixCore_Release/OS/OL7-64/esdk/source/rtsdk/Cpp-C/Eta/Impl/Converter/jsonToRwfSimple.C",
      "Line": 348,
      "Offset": 6,
    }
  }
]

We found that it was caused by the field, ID, we sent in login request:1693816435668.png

ID in our request was 64bits. But it seemed that your system can only recognize 32bits.

It was really confusing that we has been sending 64bits for a long time and never occur this Error msg.

So I want to know if your system has been updated recently?

#technologywebsocketserror-login
1693816435668.png (366.2 KiB)
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
26.3k 61 17 14

Hello @shanwei.will

Thank you for the information. I have tried the ID 525729497375546637 and connected to RTO. I can replicate the issue as follows:

Connecting to WebSocket wss://ap-southeast-1-aws-3-lrg.optimized-pricing-api.refinitiv.net:443/WebSocket for session1...
WebSocket successfully connected for session1!
SENT on session1:
{
  "Domain":"Login",
  "ID":525729497375546637,
  "Key":{
    "Elements":{
      "ApplicationId":"256",
      "AuthenticationToken":"eyJ0...w",
      "Position":"127.0.0.1/machine"
    },
    "NameType":"AuthnToken"
  }
}
RECEIVED on session1:
[
  {
    "Debug":{
      "File":"/local/jenkins/workspace/RTDSHotFixCore_Release/OS/OL7-64/esdk/source/rtsdk/Cpp-C/Eta/Impl/Converter/jsonToRwfSimple.C",
      "Line":348,
      "Message":"{\"ID\": 525729497375546637, \"Domain\": \"Login\", \"Key\": {\"NameType\": \"AuthnToken\", \"Elements\": {\"ApplicationId\": \"256\", \"Position\": \"192.168.68.111/WIN-V793K3HCLOL\", \"AuthenticationToken\": \"eyJ0...w\"}}}",
      "Offset":7
    },
    "ID":525729497,
    "Text":"JSON Converter Token Type error: Expected 'PRIMITIVE' for key 'ID' Received 'PRIMITIVE'",
    "Type":"Error"
  }
]

This error message is generated from the RTO server even the application sent a valid JSON message. I highly recommend you contact the RTO support team directly to verify the issue on server side. You can contact the team via https://my.refinitiv.com/content/mytr/en/helpandsupport.html website.

rrto-ticket.png



rrto-ticket.png (22.1 KiB)
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
26.3k 61 17 14

Hello @shanwei.will

I have tried to replicate the same issue with the RTDS and RTO connection scenarios. Both scenarios work fine with the same Login id 525729497 as you.

RTDS 3.7.1.L1

deployed-rtds.png

RTO

rto-case.png

Can you replicate the issue on demand?

Are you connecting to the RTO or deployed RTDS? If RTDS (ADS) connection scenario, what version of the ADS server is?


deployed-rtds.png (41.4 KiB)
rto-case.png (228.2 KiB)
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.

This is the original msg of the failed response.

You should try the ID 525729497375546637.

"Message": "{\"ID\":525729497375546637,\"Domain\":\"Login\",\"Key\":{\"Elements\":{\"ApplicationId\":\"256\",\"Position\":\"10.98.67.145\",\"AuthenticationToken\":\"eyJ0...\"},\"NameType\":\"AuthnToken\"},\"Refresh\":true}"


And what we use is RTD.

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.