SSL ERROR ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2536)

Hello ShotGrid community,

I’m currently developing a React application where I display assets, shots, upstream task media, and more, fetched from the ShotGrid API. Everything works fine when the data size is relatively small. However, I encounter the following issue:

Problem: When fetching a large dataset from the ShotGrid API, or when I rapidly click through different assets (where each click triggers a request to load the upstream tasks, shots, and sequence for the selected asset), I frequently get the following SSL error:

  • I’ve implemented a feature where clicking an asset dynamically fetches and displays its related data (upstream tasks, shots, etc.).

  • The issue seems to occur specifically when:

  • I fetch large amounts of data.

  • I quickly and repeatedly click on different assets to view their details, leading to multiple rapid API calls.

  • Is this error related to the ShotGrid API when handling a large number of requests or rapid consecutive requests?

  • Could it be related to SSL configuration or API throttling/limits?

  • What’s the best approach to handle this in React when working with larger datasets or rapid API calls?

I’m getting the same error when 2 calls happen simultaneously to the flow db…