Time-out in ContextUploader

Created on 14 June 2024, 6 months ago
Updated 27 June 2024, 6 months ago

Our customer is testing this module and noticed error messages like these:
Smartling\Exceptions\SmartlingApiException: Async operation is not completed after 16 seconds.

Our investigation led us to the ContextUploader, the uploadAndMatchContext method in specific.
What could be causing these time-outs? Is there any way to prevent them aside from increasing the default time-out of 15 seconds?

🐛 Bug report
Status

Active

Version

9.9

Component

Code

Created by

🇧🇪Belgium bceyssens Genk 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bceyssens
  • Hi bceyssens,

    this happens inside Smartling's api-sdk-php lib on upload and match context sync call. What it means is that smartling context api processes context asynchronously and we poll async process 15 seconds and if it's not completed just throw an exception there.

    But in your case I do see a lot of `Async operation is not completed after 15s seconds.` log records (from `94e2dcf74` smartling project) but I don't see appropriate HTTP requests to context API for polling async processes. For example, for `2024-06-26 08:08:43.820 - 2024-06-26 08:12:03.370` I see 7 such errors from `reynaers-acc` host but I see no `/context-api/v2/projects/94e2dcf74/processes/...` HTTP requests for that period of time. Could you please confirm you see those requests from your side? Are those requests blocked?

Production build 0.71.5 2024