question

Upvotes
Accepted
1 0 0 1

Error opening session in API.

Dear, on 05/06 at 19:40 GMT-3 we had the error below to connect to the API and since then we have no access to quotes:

2022-05-09 16:45:49.6170|Warn|Refinitiv.DataPlatform.Core.PlatformSessionCore|12|RDP Authentication failed

System.ArgumentException: An item with the same key has already been added.

at Refinitiv.DataPlatform.Core.PlatformSessionCore.<RetrieveStreamingEndpointsAsync>d__61.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Refinitiv.DataPlatform.Core.PlatformSessionCore.<PerformOpenTasksAsync>d__59.MoveNext()


We are using the refinitiv.dataPlatform 1.0.0 - Alpha3 DLL.

We would like to see some changes from this date and help to solve the problem, as this error occurs in the approval and production environment.


Awaiting return.

refinitiv-realtimerefinitiv-data-platformrefinitiv-data-platform-librariesrefinitiv-data-platform-eikon
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.

1 Answer

Upvotes
Accepted
45.2k 103 43 60

@wesley.ferreira

I got the following error when using the Refinitiv.DataPlatform,1.0.0-alpha3.

5/10/2022 11:25:57 AM:Session is Pending. (State: Pending)
5/10/2022 11:26:01 AM:{
  "ExceptionType": "System.ArgumentException",
  "Message": "An item with the same key has already been added. Key: ap-northeast-1-aws-2-lrg.optimized-pricing-api.refinitiv.net",
  "StreamDiscoveryEndpoint": "https://api.refinitiv.com/streaming/pricing/v1/?dataformat=tr_json2"
}. (Event: SessionAuthenticationFailed)
5/10/2022 11:26:01 AM:Session is Closed. (State: Closed)

I checked and found that the streaming pricing endpoint (https://api.refinitiv.com/streaming/pricing/v1/?dataformat=tr_json2) provides the duplicated hostname. This could be a cause of the "An item with the same key has already been added" error.


1652157652269.png

I submitted a service request to the RDP Pricing team on your behalf to verify this issue. The case number is 11209930. The support team will contact you regarding this issue.

Refinitiv Data Platform Libraries (RDP libraries) have been redesigned and renamed to Refinitiv Data Libraries (RD libraries). Alpha versions of former RDP libraries will be maintained for a while, but for new development, it is recommended to use the latest RD libraries which incorporate new features and offer greater usability.

The RD Library examples are available on GitHub. For more information, please refer to the Refinitiv Data Library for .NET website.


1652157652269.png (76.8 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.