question

Upvotes
Accepted
3 1 2 3

TRTHv2 rest API with request library in python

Hi,

When using python 3.6 Conda with the request library we get a connection reset by peer after 6 mb download or if we direct download from AWS we get the same reset by peer after 248 mb.

Note if we use Linux this does not happen but only on Windows 10

Can you help?

dss-rest-apitick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
13.7k 26 8 12

@akhil,

A few queries to help us investigate:

  • Are the Linux and Windows machines on the same network, do they connect to internet through the same firewall ?
  • Can you post the exact error message you receive ?
  • After how much time is the connection reset ?
  • Is this issue systematically reproducible, or does it vary (different time before reset, different received file size, etc.) ?
  • Which Python libraries are you using on Linux, respectively on Windows ?
  • Could you post your Python code so we could test it ?
  • Are you decompressing the data on the fly ? That is not recommended.

A few suggestions:

Hope this helps.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea