# Merge api call return 500

**URL:** <https://pdfjs.community/t/merge-api-call-return-500/1946>\
**Category:** Technical Support\
**Created:** [August 12, 2022, 10:03pm UTC](https://pdfjs.community/t/merge-api-call-return-500/1946 "2022-08-12T22:03:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefans](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@stefans](https://pdfjs.community/u/stefans)\
**Post date:** [August 12, 2022, 10:03pm UTC](https://pdfjs.community/t/merge-api-call-return-500/1946/1 "2022-08-12T22:03:30Z")

</div>

**Which product are you using?**  
I’m using PDFjs version : “@pdftron/pdfjs-express”: “^8.4.0”

**Detailed description of issue**  
We’re using /merge api call on our production server. We are uploading document first on s3 bucket and then we’re passing url to the /merge api call. One customer has issue when his Chrome browser call /merge api call and response is 500.

**Expected behaviour**  
/merge api call need to return 200

**Does your issue happen with every document, or just one?**  
Just on some complex document’s and only one customer has that issue for now. If I try to sign that same document i have 200 in response.

**Link to document**  
[Naples Plumbing.pdf](https://pdfjs.community/uploads/short-url/eHsgW6XAnDPjonKu3QdevjVabyj.pdf) (2.4 MB)  
Uploading: Naples Mechanical.pdf…

**Code snippet**

```javascript
const mergeAPI = (data) => {
  return new Promise((resolve, reject) => {
    fetch('https://api.pdfjs.express/xfdf/merge', {
      method: 'post',
      body: data
    })
      .then((response) => {
        if (response.status === 200) {
          return resolve(response.json());
        } else {
          response.text().then((text) => {
            reject({ status: response.status, message: JSON.parse(text) });
          });
        }
      })
      .catch((error) => {
        reject(error);
      });
  });
};

```
