AttributeError: 'Response' object has no attribute 'reason'

Hello,


all functions were running well until yesterday, now I get the error code

AttributeError: 'Response' object has no attribute 'reason'

My python version is 3.8.5

eikon version is 1.1.6

and httpx is 0.14.2


I was trying to run the following code ( also within a loop for a couple times ):

df = ek.get_news_headlines('R:.SPX AND Language:LEN', date_from='2021-02-13T09:00:00', date_to='2021-02-18T18:00:00', count = 100)

Would be great if anyone could share some advice on this error!

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @Perle,

    I am seeing in this previous discussion thread an answer, that the issue that you appear to be experiencing, was fixed in eikon 1.1.6.post2. That post-dates eikon 1.1.6 that is installed.

    Therefore, would like to suggest to upgrade your eikon module to the latest, to absorb this fix as well as other important fixes.

Answers