Gateway timeout while converting msg to pdf

Hi there!
I’ve an issue with converting MSG to PDF.
I’ve the following code, which is in essence the same as in the tutorial.s

 const uploadPath = `UploadedDocs/${fileName}`;
      this.logger.log(`Uploading msg file to convert. uploadPath: ${uploadPath}`);
      const uploadRequest = new UploadFileRequest(uploadPath, fileBuffer);
      await this.fileApi.uploadFile(uploadRequest);
      this.logger.log('File uploaded to groupdocs. Submitting convert request');

      const loadOptions = new LoadOptions({ format: 'msg' });
      const settings = new ConvertSettings();
      settings.filePath = uploadPath;
      settings.format = 'pdf';
      settings.outputPath = 'Converted';
      settings.loadOptions = loadOptions;
      const request = new ConvertDocumentRequest(settings);
      this.logger.log('Request created, submitting to API');
      const response = await this.convertApi.convertDocument(request);
     
      if (response.length > 1) {
        this.logger.log(`${fileName}: More than one converted PDF. Merging into one...`);
        const joinOptions = new JoinOptions();
        joinOptions.joinItems = response.map((item) => {
          const joinItem = new JoinItem();
          joinItem.fileInfo = new FileInfo();
          joinItem.fileInfo.filePath = item.path;
          return joinItem;
        });
        joinOptions.outputPath = `Merged/${fileName}`;
        this.logger.log(`${fileName}: Sending merge request to API...`);

        const mergeResponse = await this.documentApi.join(new JoinRequest(joinOptions));

So sometimes the conversion to msg takes too long (more than 5 minutes) which causes nginx terminating the request, sometimes the conversion passes and it’s stuck on merge step where there are two pdfs that should be merged into one. I’m using “groupdocs-conversion-cloud”: “25.9.0”, “groupdocs-merger-cloud”: “25.5.0”.

I’ve tried to do the same with your online demo tools - there, it works pretty fast. Converting and merging took less than one minute in total. Am I doing something wrong? The same code worked fine a couple of weeks ago…

Hi, @tectury , could you please share email used in your GroupDocs.Cloud account or ClientId used in API calls, so we can inspect logs. I tried to inspect the email artem@tectury.com but there is not logs for it

Hi, ClientId is 0f0a8846-40dd-4f56-8c9c-dfc791ebcf85

@tectur, Yes, I saw several API calls with unreasonably high execution times in your logs. This may be due to misconfiguration of our internal networks. We’ll investigate the cause and try to fix it as soon as possible.