Hi,
I am using RTSDK for streaming real time prices but I get below error when I run my consumer. I am using Authentication version v2. I am able to successfully login using the curl command. I have required licenses also in place under my service account. Can you help why the failure. Is it something related to license where license does not have all the scope assigned. Adding code snippets for more details. TIA
com.refinitiv.ema.access.OmmInvalidUsageExceptionImpl: loggerMsg
ClientName: ChannelCallbackClient
Severity: Error
Text: Failed to add RsslChannel(s) to RsslReactor. Channel name(s) Channel_1
Instance Name Consumer_1_1
RsslReactor @17ffd08b
RsslChannel null
Error Id -1
Internal sysError 0
Error Location RestReactor.submitServiceDiscoveryRequestBlocking
Error Text Failed to request service discovery information. Text: {"error":{"id":"04319d5b-e04e-4a0c-8c57-8389bbb7c9bd","code":"insufficient_scope","message":"access denied. Scopes required to access the resource: [trapi.streaming.pricing.read]. Missing scopes: [trapi.streaming.pricing.read]","status":"Forbidden"}}
loggerMsgEnd
Map elementMap = EmaFactory.createMap();
ElementList elementList = EmaFactory.createElementList();
ElementList innerElementList = EmaFactory.createElementList();
innerElementList.add(EmaFactory.createElementEntry().ascii("Channel", "Channel_1"));
innerElementList.add(EmaFactory.createElementEntry().ascii("Dictionary", "Dictionary_1"));
elementMap.add(EmaFactory.createMapEntry().keyAscii("Consumer_1", MapEntry.MapAction.ADD, innerElementList));
innerElementList.clear();
elementList.add(EmaFactory.createElementEntry().map("ConsumerList", elementMap));
elementMap.clear();
configDb.add(EmaFactory.createMapEntry().keyAscii("ConsumerGroup", MapEntry.MapAction.ADD, elementList));
elementList.clear();
innerElementList.add(EmaFactory.createElementEntry().ascii("ChannelType", "ChannelType::RSSL_ENCRYPTED"));
innerElementList.add(EmaFactory.createElementEntry().intValue("EnableSessionManagement", 1));
elementMap.add(EmaFactory.createMapEntry().keyAscii("Channel_1", MapEntry.MapAction.ADD, innerElementList));
innerElementList.clear();
elementList.add(EmaFactory.createElementEntry().map("ChannelList", elementMap));
elementMap.clear();
configDb.add(EmaFactory.createMapEntry().keyAscii("ChannelGroup", MapEntry.MapAction.ADD, elementList));
elementList.clear();
consumer = EmaFactory.createOmmConsumer(
config.consumerName("Consumer_1")
.clientId(RtoConsumerConfig.clientId)
.clientSecret(RtoConsumerConfig.clientSecret)
.config(configDb)