# HTTP 504 response to all /xfdf/merge POST requests

**URL:** <https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674>\
**Category:** Technical Support\
**Created:** [May 12, 2022, 9:26am UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674 "2022-05-12T09:26:53Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanoop](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sanoop](https://pdfjs.community/u/sanoop)\
**Post date:** [May 12, 2022, 9:26am UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674/1 "2022-05-12T09:26:54Z")

</div>

PDF.js Express Viewer  
UI version 6.3.3  
Core version 6.3.3

All API requests have stopped working and responding with 504 after a VERY long interval (10 - 50 seconds).

 ![Screenshot 2022-05-12 140702.PNG](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/df7eb18d9d3f7fc6674d04955d284f109d1b249c.jpeg)

```javascript
var response = await fetch('https://api.pdfjs.express/xfdf/merge', {
                             mode: 'no-cors',
                            method: 'post',
                            body: data
                        }).then(resp => resp.json());

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [May 12, 2022, 9:26am UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674/3 "2022-05-12T09:26:58Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Merge & extract annotation in PDF.js Express - Getting started](https://pdfjs.express/documentation/annotation/merge-and-extract#getting-started)
- [Saving a document with annotations](https://pdfjs.express/documentation/basic-operations/save-document/save-with-annotations)
- [Config files](https://pdfjs.express/documentation/learn-more/advanced/config-files.8)

APIs:
- [ExpressUtils(optionsopt) - # async merge() → {Promise.}](https://pdfjs.express/api/utils/ExpressUtils.html#merge__anchor)
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [Chaining API calls](https://pdfjs.express/api/utils/tutorial-Chaining%20APIs.html#__anchor)

Forums:
- [Set password for generating pdf](https://pdfjs.community/t/set-password-for-generating-pdf/1346/1)
- [Load document by Url and save with watermark and html](https://pdfjs.community/t/load-document-by-url-and-save-with-watermark-and-html/502/1)
- [URGENT - Merge XFDF API giving [502] internal error](https://pdfjs.community/t/urgent-merge-xfdf-api-giving-502-internal-error/1092/1)

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [May 12, 2022, 4:07pm UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674/4 "2022-05-12T16:07:55Z")

</div>

Hey there,

I cannot reproduce this issue - can you please send me a document you are having issues with?

Thanks,  
Logan

---

<div class="post-metadata">

**Author:** ![sanoop](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sanoop](https://pdfjs.community/u/sanoop)\
**Post date:** [May 13, 2022, 4:57am UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674/5 "2022-05-13T04:57:18Z")

</div>

I have used this editor last 2 3 years . Merge API stopped working the last few days, Now showing errors like the below-attached document.

Please check the below URL to find the issue.

[https://medcoman.com/adminmedc/inspectors/edit\_files\_new/76](https://medcoman.com/adminmedc/inspectors/edit_files_new/76)

Email : [demoinspector@medcoman.com](mailto:demoinspector@medcoman.com)

Password : demoinspector123!@#

 ![latest](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/45b49e74d2c4d6c23bbb94f106e2a78b9fe45d86.jpeg)

---

<div class="post-metadata">

**Author:** ![sanoop](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@sanoop](https://pdfjs.community/u/sanoop)\
**Post date:** [May 16, 2022, 5:01am UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674/6 "2022-05-16T05:01:30Z")

</div>

Dear Logan,

Awaiting quick response to resolve the issue. suddenly it stopped working and we r in the dark with no proper support.

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [May 16, 2022, 2:06pm UTC](https://pdfjs.community/t/http-504-response-to-all-xfdf-merge-post-requests/1674/7 "2022-05-16T14:06:37Z")

</div>

Hi there,

I just checked the site you showed me and took a look at the network request to the merge API. It looks like you are providing a file URL that looks like so:

`https://mft.medcoman.com:5443/rest/forms/v1/FIleUpload/payload/3564351c-8df3-43fc-86b4-737e413fbc67/file/f9e6e7a9-983f-4e01-a467-f48d87f0fd68`

The URL is timing out when making requests to it which means the issue is coming from your end. Please make sure your `mft.medcoman.com:5443` server is running correctly and is able to respond to requests.

Thanks!  
Logan
