Closed asidd closed 6 years ago
I ran the provided code using multiple threads to query the Discovery News collection and managed to do it successfully.
With the error given, my assumption is that the problem has something to do with the specific data being queried. It's possible that that returned data is not being handled properly by the SDK, but I can't say for sure without looking at it. If there's any way you could give us a better idea of what that data looks at, it might help diagnose the problem.
After getting some of the data, my first assumption was that the issue had to do with parsing some of it properly. The data contains things like mathematical symbols and non-English characters.
However, I was still able to do a successful sample query, even using multiple threads. So at the moment, I'm still unable to pin down the source of the issue.
@lpatino10
Could you please tell me the items listed below? -The environment that dev team executed the query is the customer dedicated environment? or other public environment? -How many threads are executed at same time. (Our case is 15 threads) -How many results did the each query get from WDS?(Our case is 1000) -Did they execute the queries repeatedly without sleep between each query?(The codes we provided are including 2.5 sec sleep between each query to avoid the error.)
@lpatino10 @germanattanasio - update your progress here please.
query()
method worked properly using multiple threads, I queried the Discovery News Collection and probably received a couple hundred results back. Using the customer's sample data, I only uploaded a small subset and received no more than 10-15 results back.Closing as this hasn't been able to be reproduced.
@lpatino10 please reopen this as this is not resolved
closing due to inactivity
I've gotten in contact with the customer directly to work on the issue in their environment and will be investigating further.
I've worked with the customer on their Discovery environment to try and pin down the issue, but was still not able to replicate it. If more details surface in the future, feel free to open a new issue about it. For now, I'm closing this one.
I've worked with the customer some more and determined that the error was caused by long query strings resulting in request URLs longer than 2000 characters. Someone from the Discovery team has told me they're aware of the limitation in their current query()
implementation but don't have a current timetable for the change.