question

Upvotes
Accepted
23 1 2 1

RDP: MainThread Error: no proxy address identified. Check if Desktop is running.

Hi!

If I try

import refinitiv.dataplatform as rdp
rdp.open_desktop_session('mykey')
then I get

2021-12-15 12:31:40,000 - Session session - Thread 31172 | MainThread Error: no proxy address identified. Check if Desktop is running.

But My desktop app is definitely running. Then if I try

# this is just a test
df = rdp.get_historical_price_summaries(
    universe = 'GBP1MP=',
    interval = rdp.Intervals.MONTHLY,
    fields = ['FCAST_DATE','EFF_DATE'],
    start = '2015-01-01', 
    end = '2021-02-01')
df


then I get

---------------------------------------------------------------------------
EndpointError                             Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_1964/2695372065.py in <module>
      1 # this is just a test
----> 2 df = rdp.get_historical_price_summaries(
      3     universe = 'GBP1MP=',
      4     interval = rdp.Intervals.MONTHLY,
      5     fields = ['FCAST_DATE','EFF_DATE'],

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\factory\content_factory.py in get_historical_price_summaries(universe, interval, start, end, adjustments, sessions, count, fields, on_response, closure)
    531                                    on_response=None,
    532                                    closure=None):
--> 533     return ContentFactory._get_historical_price_summaries(universe=universe,
    534                                                           interval=interval,
    535                                                           start=start,

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\factory\content_factory.py in _get_historical_price_summaries(cls, universe, interval, start, end, adjustments, sessions, count, fields, on_response, closure)
    206         session = ContentFactory.get_default_session()
    207         historical_pricing = HistoricalPricing(session=session, on_response=on_response)
--> 208         historic_summaries = historical_pricing.get_summaries(universe=universe,
    209                                                               interval=interval,
    210                                                               start=start,

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\content\data\historical_pricing.py in get_summaries(universe, session, interval, start, end, adjustments, sessions, count, fields, on_response, closure)
    267         if session is not None:
    268             historical_pricing = HistoricalPricing(session=session, on_response=on_response)
--> 269             result = historical_pricing._get_summaries(universe=universe,
    270                                                        interval=interval,
    271                                                        start=start,

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\content\data\historical_pricing.py in _get_summaries(self, universe, interval, start, end, adjustments, sessions, count, fields, closure)
    288                        fields=None,
    289                        closure=None):
--> 290         return self._endpoint.session._loop.run_until_complete(self._get_summaries_async(universe=universe,
    291                                                                                          interval=interval,
    292                                                                                          start=start,

C:\ProgramData\Anaconda3\lib\site-packages\nest_asyncio.py in run_until_complete(self, future)
     68                 raise RuntimeError(
     69                     'Event loop stopped before Future completed.')
---> 70             return f.result()
     71      72     def _run_once(self):

C:\ProgramData\Anaconda3\lib\asyncio\futures.py in result(self)
    176         self.__log_traceback = False
    177         if self._exception is not None:
--> 178             raise self._exception
    179         return self._result
    180 
C:\ProgramData\Anaconda3\lib\asyncio\tasks.py in __step(***failed resolving arguments***)
    278                 # We use the `send` method directly, because coroutines
    279                 # don't have `__iter__` and `__next__` methods.
--> 280                 result = coro.send(None)
    281             else:
    282                 result = coro.throw(exc)

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\content\data\historical_pricing.py in _get_summaries_async(self, universe, interval, start, end, adjustments, sessions, count, fields, closure)
    435                 fields.append(field_timestamp)
    436 --> 437         _result = await self._get_historicalpricing(url=_url,
    438                                                     path_parameters=_path_parameters,
    439                                                     query_parameters=_query_parameters,

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\content\data\historical_pricing.py in _get_historicalpricing(self, url, path_parameters, query_parameters, start, end, fn_format_datetime, adjustments, market_sessions, count, fields, closure)
    559     560         self._endpoint.url = url
--> 561         _result = await self._endpoint.send_request_async(Endpoint.RequestMethod.GET,
    562                                                           path_parameters=path_parameters,
    563                                                           query_parameters=_query_parameters,

C:\ProgramData\Anaconda3\lib\site-packages\refinitiv\dataplatform\delivery\data\endpoint.py in send_request_async(self, method, header_parameters, path_parameters, query_parameters, body_parameters, closure)
    496             return _result
    497 --> 498         raise EndpointError(-1, "Session is not opened. Can't send any request")
    499     500     ######################################################

EndpointError: Error code -1 | Session is not opened. Can't send any request
rdp-apirefinitiv-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
47.4k 111 44 60

@gino.cenedese

The error message indicates that the API Proxy was not running.

You can verify the API Proxy by accessing the following URLs via a web browser.

The output looks like this:

1639628604741.png


1639628581910.png



1639628604741.png (9.5 KiB)
1639628581910.png (21.0 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.