question

Upvotes
Accepted
16 1 1 3

ConnectTimeout('') while access token renew

Hello. I have some troubles with refinitiv-data python library.


Sometimes in access token renew process I receive ConnectTimeout('') error. The problem is when this happens - main thread does not catch this error. It just receives this message in console:

An error occurred while requesting URL('https://api.refinitiv.com/auth/oauth2/v1/token').
        ConnectTimeout('')
[Error 0 - empty error] empty error description

Library version: 1.0.0b9 (also tried 1.0.0b6 with the same result)


Any solution/advice how to handle this?

pythonrefinitiv-data-platform-libraries
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.

11 Answers

Upvote
Accepted
11.7k 57 39 60

Hi @v.kuznetsov

I performed a test where I turn off my WiFi and received the same error as you. To programmatically react to this error, you can apply callbacks as outlined at the bottom of this tutorial source code. That being said, the callbacks only report a description which unfortunately doesn't provide any useful details, i.e. "empty error description". In addition, the session does provide 2 methods (get_last_event_code and get_last_event_message) which do not return anything - perhaps because there is no error description.

As for why the error is occurring, I assume it happens when you attempt to open a session? Does it happen all the time? If so, there may be proxy issues within your environment that is preventing you from accessing the service.

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.

Upvote
28.3k 30 11 15

Hello @v.kuznetsov ,

To be able to lean more of the issue, Refinitiv Data library team asks to enable logging:

config = rd.get_config()
config.set_param("logs.transports.file.enabled", True)
config.set_param("logs.transports.console.enabled", True)
config.set_param("logs.level", "debug")

and share the output with us.

---

Did you have a chance to follow suggestions from @nick.zincone?

---

In the event of any unexpected behavior, RD library Python or results returned, I like to add general debug at the beginning of the sheet, that later I remove:

import logging
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.DEBUG)


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
16 1 1 3

Hello @nick.zincone , hello everyone. Sorry for my disappearance.

As I said in my original message, this error is occurring when RD is trying to renew the access token. Not every time, but sometimes. I think it might be connected with network issues or with a packet loss.

The problem is when it happens, the data stream disconnects, and I simply need to restart the platform session and stream. And I don't see how callbacks from tutorial source code can help me with that. Maybe I'll try to throw some event from callback to the main thread when this happens. But I've tried to experiment with these callbacks before and didn't succeed.

It would be much better if the refinitiv-data python library could handle this situation or at least has a method or function for reconnection.


To @zoya faberov

I'll try to catch these logs for you guys and share them with you


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
16 1 1 3

Hello @zoya faberov

I collected logs, can you check it? (Can't attach it as file, so post it like code)

2022-04-11 23:26:53,969 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] process_message {'ID': 3, 'Type': 'Update', 'UpdateType': 'Multiple', 'DoNotConflate': True, 'Key': {'Service': 'ELEKTRON_DD', 'Name': '/AAPL.BT1'}, 'SeqNumber': 26766, 'Fields': {'BID': 165.6, 'BIDSIZE': 53, 'SEQNUM': 413636035, 'BID_TIM_NS': '20:11:51.904', 'QUOTIM_NS': '20:11:51.904'}}
[2022-04-11 23:26:54,258] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_message [{"ID":4,"Type":"Status","Domain":"Login","Key":{"Name":"AQIC5wM2LY4Sfcwauf2FexIp0jvDqEZkI5QcbIc5G4gIy9w%3D%40AAJTSQACMTAAAlNLABQtODA1NzQ1NzIyODg2NzgyMzg2NgACUzEAAjI3%23"},"State":{"Stream":"Closed","Data":"Suspect","Code":"Timeout","Text":"TREP authentication token has expired."}}]
2022-04-11 23:26:54,258 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_message [{"ID":4,"Type":"Status","Domain":"Login","Key":{"Name":"AQIC5wM2LY4Sfcwauf2FexIp0jvDqEZkI5QcbIc5G4gIy9w%3D%40AAJTSQACMTAAAlNLABQtODA1NzQ1NzIyODg2NzgyMzg2NgACUzEAAjI3%23"},"State":{"Stream":"Closed","Data":"Suspect","Code":"Timeout","Text":"TREP authentication token has expired."}}]
[2022-04-11 23:26:54,259] - [DEBUG] - [sessions.platform.rdp.1] - [3308] | Msg-Proc-WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] process_message {'ID': 4, 'Type': 'Status', 'Domain': 'Login', 'Key': {'Name': 'AQIC5wM2LY4Sfcwauf2FexIp0jvDqEZkI5QcbIc5G4gIy9w%3D%40AAJTSQACMTAAAlNLABQtODA1NzQ1NzIyODg2NzgyMzg2NgACUzEAAjI3%23'}, 'State': {'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'Timeout', 'Text': 'TREP authentication token has expired.'}}
2022-04-11 23:26:54,259 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] process_message {'ID': 4, 'Type': 'Status', 'Domain': 'Login', 'Key': {'Name': 'AQIC5wM2LY4Sfcwauf2FexIp0jvDqEZkI5QcbIc5G4gIy9w%3D%40AAJTSQACMTAAAlNLABQtODA1NzQ1NzIyODg2NzgyMzg2NgACUzEAAjI3%23'}, 'State': {'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'Timeout', 'Text': 'TREP authentication token has expired.'}}
[2022-04-11 23:27:29,127] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_error
2022-04-11 23:27:29,127 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_error
[2022-04-11 23:27:29,129] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] Exception: Connection to remote host was lost.
2022-04-11 23:27:29,129 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] Exception: Connection to remote host was lost.
[2022-04-11 23:27:29,132] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_close (close_status_code=None, close_msg=None)
2022-04-11 23:27:29,132 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_close (close_status_code=None, close_msg=None)
[2022-04-11 23:27:29,134] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] try to reconnect over url wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket in 5 secs, number of reconnections is 1, StreamCxnState.Reconnecting
2022-04-11 23:27:29,134 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] try to reconnect over url wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket in 5 secs, number of reconnections is 1, StreamCxnState.Reconnecting
[2022-04-11 23:27:34,152] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] is connecting [con]
2022-04-11 23:27:34,152 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] is connecting [con]
[2022-04-11 23:27:34,153] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] connect (
        num_connect=1,
        url=wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket,
        headers=['User-Agent: Python'],
        subprotocols=['tr_json2'])
2022-04-11 23:27:34,153 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] connect (
        num_connect=1,
        url=wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket,
        headers=['User-Agent: Python'],
        subprotocols=['tr_json2'])
[2022-04-11 23:27:36,153] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] connected [CON]
2022-04-11 23:27:36,153 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] connected [CON]
[2022-04-11 23:27:36,154] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_open
2022-04-11 23:27:36,154 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_open
[2022-04-11 23:27:36,156] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] send s={"Domain": "Login", "ID": 4, "Key": {"NameType": "AuthnToken", "Elements": {"AuthenticationToken": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiQTRwVTNXd21MSDFTMXBCUlJ5UjBmWklyQVBPMUo2ZklzNzBaMlIzNmhxdkRBUUlDMjc5bHhkZk96alY5NWhhcExvMDdzbHJkT2ZubE1BbWMzWWhWS1g3djZYS1ZibDVYZ3gtYmNqdFpCRi0yR01sYWVyVC1LZFJqRWx1ZkNuemVwSUc4QTNKdzFrOTkyM0xXNDA5OFprVGhtbWVJb0tWVmswS2tyeWp4VElsbHI3R0JCZTVMTmhMWkFvN3ZHWTUwWFRCV19NYl91Y0VUbTliYnZfeGZmbmhUZ3UwbmdSVEFualhMQVlKTDFLOTBETjdJV2pMc3dyalJzZjl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VkIjoiZTI3MmE4ZjI3ZTg0NGQ0N2JhMzgwZjJlNmNlZTI2MmVhMzFhMmNhOSIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuY2lhbS5yZWZpbml0aXYuY29tL2FwaS9pZGVudGl0eS9zdHNfcHJvZCIsImV4cCI6MTY0OTcwODgxMywiaWF0IjoxNjQ5NzA4MjEzfQ.Aj3MqSy81y2MLV-qHHsycqt6j2F5pb0UegJS6BTrLaQpaA18mGwfiSxsbUVML2LUZt99mhG3c372TYcEm8WXuIOWULv6hEkvRP4_BYJynRHuS-UiiULkOHkg5tV2psp9Wnpoa9nqEKrniYXpswsvjMLcp0J_0o_2v0M0-joCNNGy5DXXq0IKvA9bOatMKy2zFWZxW5k-R4OcqaBlOkSbiTBNXzSmiF2cXD4SFtCdIzXoO1HMmNerbMCQYfQPOn-lf9HJZTjUqCfiHey3LMJRkLN3RfjcMFyG3zM6uzefH48_HwK5NNQpcRO8xh0n6kZ-J2-mdf9LpOKRGom2JBBlrg", "ApplicationId": "256", "Position": "169.254.174.233/VitaliyK"}}}
2022-04-11 23:27:36,156 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] send s={"Domain": "Login", "ID": 4, "Key": {"NameType": "AuthnToken", "Elements": {"AuthenticationToken": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiQTRwVTNXd21MSDFTMXBCUlJ5UjBmWklyQVBPMUo2ZklzNzBaMlIzNmhxdkRBUUlDMjc5bHhkZk96alY5NWhhcExvMDdzbHJkT2ZubE1BbWMzWWhWS1g3djZYS1ZibDVYZ3gtYmNqdFpCRi0yR01sYWVyVC1LZFJqRWx1ZkNuemVwSUc4QTNKdzFrOTkyM0xXNDA5OFprVGhtbWVJb0tWV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CJ0YWdcIjpcImRtUXpWSzhCdS1ZMFJldmJnRzY1dHdcIn0iLCJyczEiOiIwNTdiNGRlNTk2OWU2YjhkNWVkY2MxMzVkYjAxY2Y0OGNiYmExMjhhIiwiYXVkIjoiZTI3MmE4ZjI3ZTg0NGQ0N2JhMzgwZjJlNmNlZTI2MmVhMzFhMmNhOSIsImlzcyI6Imh0dHBzOi8vaWRlbnRpdHkuY2lhbS5yZWZpbml0aXYuY29tL2FwaS9pZGVudGl0eS9zdHNfcHJvZCIsImV4cCI6MTY0OTcwODgxMywiaWF0IjoxNjQ5NzA4MjEzfQ.Aj3MqSy81y2MLV-qHHsycqt6j2F5pb0UegJS6BTrLaQpaA18mGwfiSxsbUVML2LUZt99mhG3c372TYcEm8WXuIOWULv6hEkvRP4_BYJynRHuS-UiiULkOHkg5tV2psp9Wnpoa9nqEKrniYXpswsvjMLcp0J_0o_2v0M0-joCNNGy5DXXq0IKvA9bOatMKy2zFWZxW5k-R4OcqaBlOkSbiTBNXzSmiF2cXD4SFtCdIzXoO1HMmNerbMCQYfQPOn-lf9HJZTjUqCfiHey3LMJRkLN3RfjcMFyG3zM6uzefH48_HwK5NNQpcRO8xh0n6kZ-J2-mdf9LpOKRGom2JBBlrg", "ApplicationId": "256", "Position": "169.254.174.233/VitaliyK"}}}
[2022-04-11 23:27:36,623] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_message [{"ID":4,"Type":"Status","Domain":"Login","Key":{"NameType":5,"Elements":{"AuthenticationErrorCode":1026,"AuthenticationErrorText":"Request for token validation failed:Authentication server did not contain \"active\" in response"}},"State":{"Stream":"Closed","Data":"Suspect","Code":"UserAccessToAppDenied","Text":"TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain \"active\" in response)."}}]
2022-04-11 23:27:36,623 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] on_ws_message [{"ID":4,"Type":"Status","Domain":"Login","Key":{"NameType":5,"Elements":{"AuthenticationErrorCode":1026,"AuthenticationErrorText":"Request for token validation failed:Authentication server did not contain \"active\" in response"}},"State":{"Stream":"Closed","Data":"Suspect","Code":"UserAccessToAppDenied","Text":"TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain \"active\" in response)."}}]
[2022-04-11 23:27:36,627] - [ERROR] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] received a closing message (cxn state=StreamCxnState.Connected, message state={'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'UserAccessToAppDenied', 'Text': 'TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain "active" in response).'})
2022-04-11 23:27:36,627 - sessions.platform.rdp.1 - ERROR - [WebSocket-OMM-STREAMING_PRICING id=1.4] received a closing message (cxn state=StreamCxnState.Connected, message state={'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'UserAccessToAppDenied', 'Text': 'TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain "active" in response).'})
[2022-04-11 23:27:36,631] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] is disposing [d]
2022-04-11 23:27:36,631 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] is disposing [d]
[2022-04-11 23:27:36,633] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] send s={"Domain": "Login", "ID": 4, "Type": "Close"}
2022-04-11 23:27:36,633 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] send s={"Domain": "Login", "ID": 4, "Type": "Close"}
[2022-04-11 23:27:37,034] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
[WebSocket-OMM-STREAMING_PRICING id=1.4] disposed [D]
2022-04-11 23:27:37,034 - sessions.platform.rdp.1 - DEBUG - [WebSocket-OMM-STREAMING_PRICING id=1.4] disposed [D]
[2022-04-11 23:27:37,035] - [DEBUG] - [sessions.platform.rdp.1] - [16404] | WebSocket-OMM-STREAMING_PRICING id=1.4
StreamCxnState.Reconnecting is over, Reconnected event emits
2022-04-11 23:27:37,035 - sessions.platform.rdp.1 - DEBUG - StreamCxnState.Reconnecting is over, Reconnected event emits
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.7k 57 39 60

Hi @v.kuznetsov

Thanks for including the logs. I'm raising this issue with the development team. There appear to be a couple of issues:

  1. Token expired (as you indicated in the initial post)
  2. Upon recovery, it appears to be using the same expired token (this will need to be confirmed) thus generating an error when trying to login.

Regarding point #1, I want to confirm if this happens sometimes. And when it does, it doesn't always happen at the same time? Also, I want to understand if your application is doing a lot of processing. This will need to be confirmed, but I'm trying to consider a situation where the library may be affected by the amount of processing within the application, thus inadvertently delaying the token refresh cycle.

thanks.

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
16 1 1 3

Hi @nick.zincone

Thanks for reply. Great news, I'll be waiting for any update about this topic.

About your questions: Yes, it happens sometimes. And yes, it doesn't happen at the same time, time is completely random. Yesterday, when I gathered this logs - it happen within 30 minutes after I start my code (it saves streamed pricing data to DB). After that I started my code again to test new on_error and on_status callbacks and it runed well for 8+ hours before this error happens again.

About a lot of processing in my code: no, it's not. On this point all what I'm trying to do is download streaming data for 1 ticker and save it to DB. So it's only fires one callback on update and refresh events which is send received data to redis queue.

Btw, on_error and on_status callbacks doesn't fire when this error happens.

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.7k 57 39 60

Hi @v.kuznetsov

Thanks for the details. While I will continue my engagement with the development team, it might be worthwhile to update to the latest release of the library - 1.0.0b10. Is it also possible to provide logs of when you can see the last successful token refresh and include the error that shows the stream disconnecting? If there are regular market data updates in between, you can remove most of them and just show the relevant details. This should hopefully highlight where it fails and why.

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
16 1 1 3

@nick.zincone Hello. I updated library to latest version - 1.0.0b10. Here some logs which you asked

Previous successful token update:

2022-04-16 10:17:24,520 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
2022-04-16 10:17:25,106 - httpx._client - DEBUG - HTTP Request: POST https://api.refinitiv.com/auth/oauth2/v1/token "HTTP/1.1 200 OK"
2022-04-16 10:17:25,135 - charset_normalizer - DEBUG - Encoding detection: ascii is most likely the one.
[2022-04-16 10:17:25,136] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
HTTP request response 200: { "access_token":"eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGanc0RTVXWGRSMjBhNjlpb0VLRlJnRFdGLUtDRUxtX042MWZ4UE1GdU5faFJrTUZ6c1QwWTJXU0U5aEl1d3daYTFNWi1wWV9YeG9LRlQ5cF9malpSMlpGWXpZZjkxS2Z0cWFFdEJ2eTRYV2M5YU9WY3dOaGEyWVJTU2Q0aHlWN01qd09QOGR4ZFd0TnJGZ0Q4eXlxQXFQdVp2YVZIS3M5YnlkTUVyYXNldWVHai1pTk9EUnM3NUVndTJLTURzSnpXMmR5NmNDOVA2bHZYaXFORlkzcUx5Y24wTmRTTng5bDVGbmV2LUF1bW9RV0k5Zk5nUUdQMzRqOXpZWlNiRHJ6ckZjY1FZMndWYzVRM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XNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "refresh_token":"5327c96e-e518-4cec-909e-63589ddae811", "expires_in":"600" , "scope":"trapi.auth.cloud-credentials trapi.cfs.claimcheck.read trapi.data.symbology.advanced.read trapi.data.symbology.read trapi.metadata.read trapi.search.explore.read trapi.search.metadata.read trapi.streaming.pricing.read", "token_type":"Bearer" }
2022-04-16 10:17:25,136 - sessions.platform.rdp.0 - DEBUG - HTTP request response 200: { "access_token":"eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGanc0RTVXWGRSMjBhNjlpb0VLRlJnRFdGLUtDRUxtX042MWZ4UE1GdU5faFJrTUZ6c1QwWTJXU0U5aEl1d3daYTFNWi1wWV9YeG9LRlQ5cF9malpSMlpGWXpZZjkxS2Z0cWFFdEJ2eTRYV2M5YU9WY3dOaGEyWVJTU2Q0aHlWN01qd09QOGR4ZFd0TnJ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wiUjV6aFpWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "refresh_token":"5327c96e-e518-4cec-909e-63589ddae811", "expires_in":"600" , "scope":"trapi.auth.cloud-credentials trapi.cfs.claimcheck.read trapi.data.symbology.advanced.read trapi.data.symbology.read trapi.metadata.read trapi.search.explore.read trapi.search.metadata.read trapi.streaming.pricing.read", "token_type":"Bearer" }
[2022-04-16 10:17:25,143] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
Refresh token response: { "access_token":"eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGan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OWdXWGJLMXVJU1lrZ3pYQVZLc3N5dk15LWdcIixcImhlYWRlclwiOntcImtpZFwiOlwiYXJuOmF3czprbXM6YXAtc291dGhlYXN0LTE6ODk4MDg0OTg0ODc3OmtleS9lNDg3MGIxYy05Y2M3LTQ0NzgtYjk1MC1jNTY1OWI1YzU2OGZcIn19XSxcInRhZ1wiOlwiUjV6aFpWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "refresh_token":"5327c96e-e518-4cec-909e-63589ddae811", "expires_in":"600" , "scope":"trapi.auth.cloud-credentials trapi.cfs.claimcheck.read trapi.data.symbology.advanced.read trapi.data.symbology.read trapi.metadata.read trapi.search.explore.read trapi.search.metadata.read trapi.streaming.pricing.read", "token_type":"Bearer" }
2022-04-16 10:17:25,143 - sessions.platform.rdp.0 - DEBUG - Refresh token response: { "access_token":"e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":"trapi.auth.cloud-credentials trapi.cfs.claimcheck.read trapi.data.symbology.advanced.read trapi.data.symbology.read trapi.metadata.read trapi.search.explore.read trapi.search.metadata.read trapi.streaming.pricing.read", "token_type":"Bearer" }
[2022-04-16 10:17:25,150] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
AuthManager: Refresh token handler, event: refresh_token_success, message: All is well
2022-04-16 10:17:25,150 - sessions.platform.rdp.0 - DEBUG - AuthManager: Refresh token handler, event: refresh_token_success, message: All is well
[2022-04-16 10:17:25,151] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
Received access token 5327c96e-e518-4cec-909e-63589ddae811. Expire in 600.0 seconds
2022-04-16 10:17:25,151 - sessions.platform.rdp.0 - DEBUG - Received access token 5327c96e-e518-4cec-909e-63589ddae811. Expire in 600.0 seconds
[2022-04-16 10:17:25,152] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
[OMMSTREAMING_PRICING_0.2] send s={"Domain": "Login", "ID": 2, "Key": {"NameType": "AuthnToken", "Elements": {"AuthenticationToken": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGanc0RTVXWGRSMjBhNjlpb0VLRlJnRFdGLUtDRUxtX042MWZ4UE1GdU5faFJrTUZ6c1QwWTJXU0U5aEl1d3daYTFNWi1wWV9YeG9LRlQ5cF9malpSMlpGWXpZZjkxS2Z0cWFFdEJ2eTRYV2M5YU9WY3dOaGEyWVJTU2Q0aHlWN01qd09QOGR4ZFd0TnJGZ0Q4eXlxQXFQdVp2YVZIS3M5YnlkTUVyYXNldWVHai1pTk9EUnM3NUVndTJLTURzSnpXMmR5NmNDOVA2bHZYaXFORlkzcUx5Y24wTmRTTng5bD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JlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "ApplicationId": "256", "Position": "169.254.174.233/VitaliyK"}}}
2022-04-16 10:17:25,152 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Domain": "Login", "ID": 2, "Key": {"NameType": "AuthnToken", "Elements": {"AuthenticationToken": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGanc0RTVXWGRSMjBhNjlpb0VLRlJnRFdGLUtDRUxtX042MWZ4UE1GdU5faFJrTUZ6c1QwWTJXU0U5aEl1d3daYTFNWi1wWV9YeG9LRlQ5cF9malpSMlpGWXpZZjkxS2Z0cWFFdEJ2eTRYV2M5YU9WY3dOaGEyWVJTU2Q0aHlWN01qd09QOGR4ZFd0TnJGZ0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6aFpWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "ApplicationId": "256", "Position": "169.254.174.233/VitaliyK"}}}
[2022-04-16 10:17:25,155] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
Set refresh token delay to 299 seconds
2022-04-16 10:17:25,155 - sessions.platform.rdp.0 - DEBUG - Set refresh token delay to 299 seconds
[2022-04-16 10:17:27,828] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"ID":2,"Type":"Refresh","Domain":"Login","Key":{"Name":"AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23","Elements":{"AllowSuspectData":1,"ApplicationId":"256","ApplicationName":"RTO","AuthenticationErrorCode":0,"AuthenticationErrorText":{"Type":"AsciiString","Data":null},"AuthenticationTTReissue":1650094044,"Position":"169.254.174.233/VitaliyK","ProvidePermissionExpressions":1,"ProvidePermissionProfile":0,"SingleOpen":1,"SupportEnhancedSymbolList":1,"SupportOMMPost":1,"SupportPauseResume":0,"SupportStandby":0,"SupportBatchRequests":7,"SupportViewRequests":1,"SupportOptimizedPauseResume":0}},"State":{"Stream":"Open","Data":"Ok","Text":"Login accepted by host ads-fanout-sm-az1-apse1-prd."},"Elements":{"PingTimeout":30,"MaxMsgSize":61426}}]
2022-04-16 10:17:27,828 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"ID":2,"Type":"Refresh","Domain":"Login","Key":{"Name":"AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23","Elements":{"AllowSuspectData":1,"ApplicationId":"256","ApplicationName":"RTO","AuthenticationErrorCode":0,"AuthenticationErrorText":{"Type":"AsciiString","Data":null},"AuthenticationTTReissue":1650094044,"Position":"169.254.174.233/VitaliyK","ProvidePermissionExpressions":1,"ProvidePermissionProfile":0,"SingleOpen":1,"SupportEnhancedSymbolList":1,"SupportOMMPost":1,"SupportPauseResume":0,"SupportStandby":0,"SupportBatchRequests":7,"SupportViewRequests":1,"SupportOptimizedPauseResume":0}},"State":{"Stream":"Open","Data":"Ok","Text":"Login accepted by host ads-fanout-sm-az1-apse1-prd."},"Elements":{"PingTimeout":30,"MaxMsgSize":61426}}]
[2022-04-16 10:17:27,831] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] process_message {'ID': 2, 'Type': 'Refresh', 'Domain': 'Login', 'Key': {'Name': 'AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23', 'Elements': {'AllowSuspectData': 1, 'ApplicationId': '256', 'ApplicationName': 'RTO', 'AuthenticationErrorCode': 0, 'AuthenticationErrorText': {'Type': 'AsciiString', 'Data': None}, 'AuthenticationTTReissue': 1650094044, 'Position': '169.254.174.233/VitaliyK', 'ProvidePermissionExpressions': 1, 'ProvidePermissionProfile': 0, 'SingleOpen': 1, 'SupportEnhancedSymbolList': 1, 'SupportOMMPost': 1, 'SupportPauseResume': 0, 'SupportStandby': 0, 'SupportBatchRequests': 7, 'SupportViewRequests': 1, 'SupportOptimizedPauseResume': 0}}, 'State': {'Stream': 'Open', 'Data': 'Ok', 'Text': 'Login accepted by host ads-fanout-sm-az1-apse1-prd.'}, 'Elements': {'PingTimeout': 30, 'MaxMsgSize': 61426}}
2022-04-16 10:17:27,831 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] process_message {'ID': 2, 'Type': 'Refresh', 'Domain': 'Login', 'Key': {'Name': 'AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23', 'Elements': {'AllowSuspectData': 1, 'ApplicationId': '256', 'ApplicationName': 'RTO', 'AuthenticationErrorCode': 0, 'AuthenticationErrorText': {'Type': 'AsciiString', 'Data': None}, 'AuthenticationTTReissue': 1650094044, 'Position': '169.254.174.233/VitaliyK', 'ProvidePermissionExpressions': 1, 'ProvidePermissionProfile': 0, 'SingleOpen': 1, 'SupportEnhancedSymbolList': 1, 'SupportOMMPost': 1, 'SupportPauseResume': 0, 'SupportStandby': 0, 'SupportBatchRequests': 7, 'SupportViewRequests': 1, 'SupportOptimizedPauseResume': 0}}, 'State': {'Stream': 'Open', 'Data': 'Ok', 'Text': 'Login accepted by host ads-fanout-sm-az1-apse1-prd.'}, 'Elements': {'PingTimeout': 30, 'MaxMsgSize': 61426}}
[2022-04-16 10:17:44,517] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
2022-04-16 10:17:44,517 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
[2022-04-16 10:17:44,520] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
2022-04-16 10:17:44,520 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
[2022-04-16 10:17:44,522] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
2022-04-16 10:17:44,522 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}

Next token refresh, failed:

[2022-04-16 10:22:04,554] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
2022-04-16 10:22:04,554 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
[2022-04-16 10:22:04,556] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
2022-04-16 10:22:04,556 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
[2022-04-16 10:22:04,556] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
2022-04-16 10:22:04,556 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
[2022-04-16 10:22:24,205] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
Request refresh token to https://api.refinitiv.com/auth/oauth2/v1/token
        with post data = {'client_id': 'e272a8f27e844d47ba380f2e6cee262ea31a2ca9', 'grant_type': 'refresh_token', 'username': 'GE-A-10003913-3-8099', 'refresh_token': '5327c96e-e518-4cec-909e-63589ddae811'}
2022-04-16 10:22:24,205 - sessions.platform.rdp.0 - DEBUG - Request refresh token to https://api.refinitiv.com/auth/oauth2/v1/token
        with post data = {'client_id': 'e272a8f27e844d47ba380f2e6cee262ea31a2ca9', 'grant_type': 'refresh_token', 'username': 'GE-A-10003913-3-8099', 'refresh_token': '5327c96e-e518-4cec-909e-63589ddae811'}
[2022-04-16 10:22:24,208] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
Request to https://api.refinitiv.com/auth/oauth2/v1/token
        method = POST
        headers = {'Accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGanc0RTVXWGRSMjBhNjlpb0VLRlJnRFdGLUtDRUxtX042MWZ4UE1GdU5faFJrTUZ6c1QwWTJXU0U5aEl1d3daYTFNWi1wWV9YeG9LRlQ5cF9malpSMlpGWXpZZjkxS2Z0cWFFdEJ2eTRYV2M5YU9WY3dOaGEyWVJTU2Q0aHlWN01qd09QOGR4ZFd0TnJGZ0Q4e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pWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ', 'x-tr-applicationid': 'e272a8f27e844d47ba380f2e6cee262ea31a2ca9'}
        params = None
        data = {'client_id': 'e272a8f27e844d47ba380f2e6cee262ea31a2ca9', 'grant_type': 'refresh_token', 'username': 'GE-A-10003913-3-8099', 'refresh_token': '5327c96e-e518-4cec-909e-63589ddae811'}
        json = None
2022-04-16 10:22:24,208 - sessions.platform.rdp.0 - DEBUG - Request to https://api.refinitiv.com/auth/oauth2/v1/token
        method = POST
        headers = {'Accept': 'application/json', 'Authorization': 'Bearer eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4d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ExMkEyRnBmajdzUUl0RWNrc3IyLXBFOWdXWGJLMXVJU1lrZ3pYQVZLc3N5dk15LWdcIixcImhlYWRlclwiOntcImtpZFwiOlwiYXJuOmF3czprbXM6YXAtc291dGhlYXN0LTE6ODk4MDg0OTg0ODc3OmtleS9lNDg3MGIxYy05Y2M3LTQ0NzgtYjk1MC1jNTY1OWI1YzU2OGZcIn19XSxcInRhZ1wiOlwiUjV6aFpWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ', 'x-tr-applicationid': 'e272a8f27e844d47ba380f2e6cee262ea31a2ca9'}
        params = None
        data = {'client_id': 'e272a8f27e844d47ba380f2e6cee262ea31a2ca9', 'grant_type': 'refresh_token', 'username': 'GE-A-10003913-3-8099', 'refresh_token': '5327c96e-e518-4cec-909e-63589ddae811'}
        json = None
[2022-04-16 10:22:24,557] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
2022-04-16 10:22:24,557 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
[2022-04-16 10:22:24,560] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
2022-04-16 10:22:24,560 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
[2022-04-16 10:22:24,562] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
2022-04-16 10:22:24,562 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
[2022-04-16 10:22:44,492] - [ERROR] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
An error occurred while requesting URL('https://api.refinitiv.com/auth/oauth2/v1/token').
        ReadTimeout('The read operation timed out')
2022-04-16 10:22:44,492 - sessions.platform.rdp.0 - ERROR - An error occurred while requesting URL('https://api.refinitiv.com/auth/oauth2/v1/token').
        ReadTimeout('The read operation timed out')
[2022-04-16 10:22:44,496] - [ERROR] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
[Error 0 - None] The read operation timed out
2022-04-16 10:22:44,496 - sessions.platform.rdp.0 - ERROR - [Error 0 - None] The read operation timed out
[2022-04-16 10:22:44,498] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
AuthManager: Refresh token handler, event: refresh_token_failed, message: The read operation timed out
2022-04-16 10:22:44,498 - sessions.platform.rdp.0 - DEBUG - AuthManager: Refresh token handler, event: refresh_token_failed, message: The read operation timed out
[2022-04-16 10:22:44,501] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
Session._on_event(event_code=EventCode.SessionAuthenticationFailed, event_msg=The read operation timed out, streaming_session_id=None, stream_connection_name=None)
2022-04-16 10:22:44,501 - sessions.platform.rdp.0 - DEBUG - Session._on_event(event_code=EventCode.SessionAuthenticationFailed, event_msg=The read operation timed out, streaming_session_id=None, stream_connection_name=None)
[2022-04-16 10:22:44,503] - [DEBUG] - [sessions.platform.rdp.0] - [15320] | AuthManager-Thread
AuthManager: close
2022-04-16 10:22:44,503 - sessions.platform.rdp.0 - DEBUG - AuthManager: close
[2022-04-16 10:22:44,555] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
2022-04-16 10:22:44,555 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"Type":"Ping"}]
[2022-04-16 10:22:44,559] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
2022-04-16 10:22:44,559 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] process_message {'Type': 'Ping'}
[2022-04-16 10:22:44,561] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
2022-04-16 10:22:44,561 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Type": "Pong"}
[2022-04-16 10:23:04,556] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2

And stream failure after 5 minutes from token refresh fail:

[2022-04-16 10:27:25,586] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"ID":2,"Type":"Status","Domain":"Login","Key":{"Name":"AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23"},"State":{"Stream":"Closed","Data":"Suspect","Code":"Timeout","Text":"TREP authentication token has expired."}}]
2022-04-16 10:27:25,586 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"ID":2,"Type":"Status","Domain":"Login","Key":{"Name":"AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23"},"State":{"Stream":"Closed","Data":"Suspect","Code":"Timeout","Text":"TREP authentication token has expired."}}]
[2022-04-16 10:27:25,591] - [DEBUG] - [sessions.platform.rdp.0] - [1880] | Msg-Proc-ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] process_message {'ID': 2, 'Type': 'Status', 'Domain': 'Login', 'Key': {'Name': 'AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23'}, 'State': {'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'Timeout', 'Text': 'TREP authentication token has expired.'}}       
2022-04-16 10:27:25,591 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] process_message {'ID': 2, 'Type': 'Status', 'Domain': 'Login', 'Key': {'Name': 'AQIC5wM2LY4SfcxXAMf52ebyGxZwWXLqdQCZrFc0IgobgEs%3D%40AAJTSQACMTAAAlNLABIzOTczMzM0NTIyMjE2ODcyMjUAAlMxAAIyOA%3D%3D%23'}, 'State': {'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'Timeout', 'Text': 'TREP authentication token has expired.'}}
[2022-04-16 10:28:14,578] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_error
2022-04-16 10:28:14,578 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_error
[2022-04-16 10:28:14,580] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] Exception: Connection to remote host was lost.
2022-04-16 10:28:14,580 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] Exception: Connection to remote host was lost.
[2022-04-16 10:28:14,582] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_close (close_status_code=None, close_msg=None)
2022-04-16 10:28:14,582 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_close (close_status_code=None, close_msg=None)
[2022-04-16 10:28:14,584] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] try to reconnect over url wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket in 5 secs, number of reconnections is 1, StreamCxnState.Reconnecting
2022-04-16 10:28:14,584 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] try to reconnect over url wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket in 5 secs, number of reconnections is 1, StreamCxnState.Reconnecting
[2022-04-16 10:28:19,586] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] is connecting [con]
2022-04-16 10:28:19,586 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] is connecting [con]
[2022-04-16 10:28:19,589] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] connect (
        num_connect=1,
        url=wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket,
        headers=['User-Agent: Python'],
        subprotocols=['tr_json2'])
2022-04-16 10:28:19,589 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] connect (
        num_connect=1,
        url=wss://ap-southeast-1-aws-3-sm.optimized-pricing-api.refinitiv.net:443/WebSocket,
        headers=['User-Agent: Python'],
        subprotocols=['tr_json2'])
[2022-04-16 10:28:21,415] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] connected [CON]
2022-04-16 10:28:21,415 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] connected [CON]
[2022-04-16 10:28:21,417] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_open
2022-04-16 10:28:21,417 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_open
[2022-04-16 10:28:21,419] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] send s={"Domain": "Login", "ID": 2, "Key": {"NameType": "AuthnToken", "Elements": {"AuthenticationToken": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkYXRhIjoie1wiY2lwaGVydGV4dFwiOlwiaVhnUUIwTWl2T0hIM3VGanc0RTVXWGRSMjBhNjlpb0VLRlJnRFdGLUtDRUxtX042MWZ4UE1GdU5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ImtpZFwiOlwiYXJuOmF3czprbXM6YXAtc291dGhlYXN0LTE6ODk4MDg0OTg0ODc3OmtleS9lNDg3MGIxYy05Y2M3LTQ0NzgtYjk1MC1jNTY1OWI1YzU2OGZcIn19XSxcInRhZ1wiOlwiUjV6aFpWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "ApplicationId": "256", "Position": "169.254.174.233/VitaliyK"}}}
2022-04-16 10:28:21,419 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Domain": "Login", "ID": 2, "Key": {"NameType": "AuthnToken", "Elements": {"AuthenticationToken": "eyJ0eXAiOiJhdCtqd3QiLCJhbGciOiJSUzI1NiIsImtpZCI6ImRMdFd2Q0tCSC1NclVyWm9YMXFod2pZQ2t1eDV0V2ZSS2o4ME9vcjdUY28ifQ.eyJkY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ldyMFlCTnM3S01zMy1wS1BabXExMkEyRnBmajdzUUl0RWNrc3IyLXBFOWdXWGJLMXVJU1lrZ3pYQVZLc3N5dk15LWdcIixcImhlYWRlclwiOntcImtpZFwiOlwiYXJuOmF3czprbXM6YXAtc291dGhlYXN0LTE6ODk4MDg0OTg0ODc3OmtleS9lNDg3MGIxYy05Y2M3LTQ0NzgtYjk1MC1jNTY1OWI1YzU2OGZcIn19XSxcInRhZ1wiOlwiUjV6aFpWRHdhUndreU9YcjdRbGFDQVwifSIsInJzMSI6IjYyZjkxODNjNDFiZTU5ODM3ZTgxNzY5OGRjMjMzODFkNGEyNDg2NTAiLCJhdWQiOiJlMjcyYThmMjdlODQ0ZDQ3YmEzODBmMmU2Y2VlMjYyZWEzMWEyY2E5IiwiaXNzIjoiaHR0cHM6Ly9pZGVudGl0eS5jaWFtLnJlZmluaXRpdi5jb20vYXBpL2lkZW50aXR5L3N0c19wcm9kIiwiZXhwIjoxNjUwMDk0MDQ0LCJpYXQiOjE2NTAwOTM0NDR9.z8Hvb9digMX_v8gazdQvLfjbtnF7JzgjoTIrOM8HlBkeAJV6EqOibhYgD6cDX8r9Q3dGJdjyA2qbSkIhO7rgEHw9T8ovAGwoSnOdgmcoZ3xjelEbzJXAA8GrGSoSPWALzw0r3QbjmVmVxb-pEC0f6-wbATx_jq6Hh3UbgdFpFaGs6XITIICSCRpYQKwMa70GD2NwCrx9ShE-9p0p0bgVU-hHXOJA3lVItgS_y4PC_HxNsmajh4IHUBcMbny1SQdzZpYlAU1Z_Cw7EhvyzLllOWCxURpRBCZqkwbN6Ab7ID1gi_0wZvobwgWpR32LEjL6DW0v1Rsl1jxS8rH4pCG5CQ", "ApplicationId": "256", "Position": "169.254.174.233/VitaliyK"}}}
[2022-04-16 10:28:21,872] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_message [{"ID":2,"Type":"Status","Domain":"Login","Key":{"NameType":5,"Elements":{"AuthenticationErrorCode":1026,"AuthenticationErrorText":"Request for token validation failed:Authentication server did not contain \"active\" in response"}},"State":{"Stream":"Closed","Data":"Suspect","Code":"UserAccessToAppDenied","Text":"TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain \"active\" in response)."}}]
2022-04-16 10:28:21,872 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_message [{"ID":2,"Type":"Status","Domain":"Login","Key":{"NameType":5,"Elements":{"AuthenticationErrorCode":1026,"AuthenticationErrorText":"Request for token validation failed:Authentication server did not contain \"active\" in response"}},"State":{"Stream":"Closed","Data":"Suspect","Code":"UserAccessToAppDenied","Text":"TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain \"active\" in response)."}}]
[2022-04-16 10:28:21,875] - [ERROR] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] received a closing message (cxn state=StreamCxnState.Connected, message state={'Stream': 'Closed', 'Data': 'Suspect', 'Code': 'UserAccessToAppDenied'enied', 'Text': 'TREP authentication failed (1026, Request for token validation failed:Authentication server did not contain "active" in response).'})
2022-04-16 10:28:21,875 - sessions.platform.rdp.0 - ERROR - [OMMSTREAMING_PRICING_0.2] received a closing message (cxn state=StreamCxnState.Connected, message state={'Stream': eam': 'Closed', 'Data': 'Suspect', 'Code': 'UserAccessToAppDenied', 'Text': 'TREP authentication failed (1026, Request for token validation failed:Authentication server d contaid not contain "active" in response).'})
[2022-04-16 10:28:21,877] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] is disposing [d]
2022-04-16 10:28:21,877 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] is disposing [d]
[2022-04-16 10:28:21,878] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] send s={"Domain": "Login", "ID": 2, "Type": "Close"}
2022-04-16 10:28:21,878 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] send s={"Domain": "Login", "ID": 2, "Type": "Close"}
2022-04-16 10:28:22,273 - websocket - ERROR - error from callback <bound method StreamConnection._on_ws_message of <OMMStreamConnection(ThreadOMMSTREAMING_PRICING_0.2, started arted daemon 5516)>>: halt() takes 1 positional argument but 2 were given
[2022-04-16 10:28:22,274] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] on_ws_error
2022-04-16 10:28:22,274 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] on_ws_error
[2022-04-16 10:28:22,275] - [DEBUG] - [sessions.platform.rdp.0] - [5516] | ThreadOMMSTREAMING_PRICING_0.2
[OMMSTREAMING_PRICING_0.2] Exception: halt() takes 1 positional argument but 2 were given
2022-04-16 10:28:22,275 - sessions.platform.rdp.0 - DEBUG - [OMMSTREAMING_PRICING_0.2] Exception: halt() takes 1 positional argument but 2 were given

Looks like I can use

session._connection.auth_manager._refresh_token_updater._do_update()

for manual token refresh if this happens. Only problem is how to catch this error programmatically

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.

Upvote
11.7k 57 39 60

Hi @v.kuznetsov

Thanks for the update. I can clearly see the attempt to refresh the token timed out. You previously mentioned this happens randomly. I noticed a ping message around that time and was curious if this may be coincidental or have some side effects. I provided the update to the development team but if you notice a difference in messages around the time of refresh of success vs failure, that could be useful. For example, you may notice that when it does fail, a ping message is received - something like that.

Thanks for helping here.

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.

Upvote
16 1 1 3

Hi @nick.zincone

Sorry for the misunderstanding. When I said that time is random - I mean that it happens on a token refresh of course. But on which refresh it will happen - that's what is random.

About ping messages - I think it's a coincidence. I kept them in logs so you can see that the stream is still alive and there are no network issues on my side. When I failed to get a response on token refresh I still received a few ping messages from the stream.

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.

Upvote
11.7k 57 39 60

Hi @v.kuznetsov

Just wanted to update you on where things are at. As we can see, the token refresh is timing out. There could be a few reasons why this could be happening such as an issue with the service or there could be issues with the network connection. The bottom line, the API itself cannot solve this problem. However, what the API could/should provide is the ability to retry the token refresh if it fails - the development team is aware and will discuss it. I have not seen any reports about the Authentication service timing out - if there was a service issue, we would likely have hundreds of complaints.

I would suggest you observe and take note of the frequency of this occurring and report the issue with the helpdesk: https://my.refinitiv.com/content/mytr/en/helpandsupport.html

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.