Nasdaq / data-link-python

A Python library for Nasdaq Data Link's RESTful API
MIT License
418 stars 69 forks source link

Timeout for hung requests #39

Open christian-oudard opened 10 months ago

christian-oudard commented 10 months ago

Sometimes when downloading a lot of data from NasdaqDataLink, I get a hung connection during the ssl handshake. The requests library, which is being used to make requests, can take a timeout parameter, but this is not exposed through the API as far as I can tell.

What's the best way to retry after a timeout?

I noticed that the ApiConfig and Connection have retry parameters, but it still appears to be hanging.

clientsuccessnasdaq commented 10 months ago

-- Please reply above this line --

Dear Nasdaq/data-Link-Python,

Thank you for contacting the Nasdaq Data Client Success Team. Your email is very important to us and we will respond to you within 1 to 2 business days.

To efficiently support your request, please include relevant details such as the data product/feed you are inquiring about.

Kind regards, Nasdaq Data Client Success

[1]

Links:

[1] https://www.nasdaq.com/

clientsuccessnasdaq commented 10 months ago

-- Please reply above this line --

        Hello,

Thank you for contacting us. We are looking into your request and will get back to you soon.

Thanks, VAIBHAV TEMBEY Nasdaq Data Client Success 

How would you rate my reply? Great [1]    Okay [2]    Not Good [3]

Links:

[1] https://secure.helpscout.net/satisfaction/647704996/record/7066484955/1/ [2] https://secure.helpscout.net/satisfaction/647704996/record/7066484955/2/ [3] https://secure.helpscout.net/satisfaction/647704996/record/7066484955/3/

    > On Wed, Sep 13, 2023 at 3:04 PM EDT, Nasdaq/data-Link-Python ***@***.***> wrote:

WARNING - EXTERNAL EMAIL; EXERCISE CAUTION.

Sometimes when downloading a lot of data from NasdaqDataLink, I get a hung connection during the ssl handshake. The requests library, which is being used to make requests, can take a timeout parameter, but this is not exposed through the API as far as I can tell.

What's the best way to retry after a timeout?

- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Links:

[1] https://github.com/Nasdaq/data-link-python/issues/39 [2] https://github.com/notifications/unsubscribe-auth/AWYQ644AWJSEYMALXQGWKI3X2H7QVANCNFSM6AAAAAA4W5LXP4

clientsuccessnasdaq commented 10 months ago

-- Please reply above this line --

        Hello,

Thanks for your patience.

Can you please share with us the exact error message you receive? It would also be helpful if you could share with us the code as well.

Thanks, VAIBHAV TEMBEY Nasdaq Data Client Success 

How would you rate my reply? Great [1]    Okay [2]    Not Good [3]

Links:

[1] https://secure.helpscout.net/satisfaction/647704996/record/7076792905/1/ [2] https://secure.helpscout.net/satisfaction/647704996/record/7076792905/2/ [3] https://secure.helpscout.net/satisfaction/647704996/record/7076792905/3/

    > On Thu, Sep 14, 2023 at 12:50 PM EDT, Client Success - Nasdaq Data ***@***.***> wrote:

Hello,

Thank you for contacting us. We are looking into your request and will get back to you soon.

Thanks, VAIBHAV TEMBEY Nasdaq Data Client Success 

On Wed, Sep 13, 2023 at 3:04 PM EDT, Nasdaq/data-Link-Python @.***> wrote:

WARNING - EXTERNAL EMAIL; EXERCISE CAUTION.

Sometimes when downloading a lot of data from NasdaqDataLink, I get a hung connection during the ssl handshake. The requests library, which is being used to make requests, can take a timeout parameter, but this is not exposed through the API as far as I can tell.

What's the best way to retry after a timeout?

- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Links:

[1] https://github.com/Nasdaq/data-link-python/issues/39 [2] https://github.com/notifications/unsubscribe-auth/AWYQ644AWJSEYMALXQGWKI3X2H7QVANCNFSM6AAAAAA4W5LXP4