# Internal Server 500

**URL:** <https://pdfjs.community/t/internal-server-500/2850>\
**Category:** Technical Support\
**Created:** [September 25, 2023, 12:10pm UTC](https://pdfjs.community/t/internal-server-500/2850 "2023-09-25T12:10:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hbichri](https://avatars.discourse-cdn.com/v4/letter/h/f9ae1b/32.png) [@hbichri](https://pdfjs.community/u/hbichri)\
**Post date:** [September 25, 2023, 12:10pm UTC](https://pdfjs.community/t/internal-server-500/2850/1 "2023-09-25T12:10:08Z")

</div>

**Which product are you using?**  
-=PDF.js Express Plus

**PDF.js Express Version**

**Detailed description of issue**  
Receiving 500 server error when using the merge API.

**Does your issue happen with every document, or just one?**  
Every document.

**Link to document**  
Documents are internal.

**Code snippet**  
const xfdf = await annotManager.exportAnnotations({  
links: false,  
widgets: false  
});  
const fileData = await docViewer.getDocument().getFileData({});  
const blob = new Blob([fileData], {  
type: ‘application/pdf’  
});

```
                const data = new FormData();
                data.append('xfdf', xfdf);
                data.append('file', blob);
                data.append('license', 'USING_THE_PROVIDED_CLIENT_API_KEY');

                // Process the file
                const response = await fetch('https://api.pdfjs.express/xfdf/merge', {
                    method: 'post',
                    body: data
                }).then(resp => resp.json());

                const {
                    url,
                    key,
                    id
                } = response;

                // Download the file
                const mergedFileBlob = await fetch(url, {
                    headers: {
                        Authorization: key
                    }
                }).then(resp => resp.blob())

```

---

<div class="post-metadata">

**Author:** ![ejohnson](https://avatars.discourse-cdn.com/v4/letter/e/a3d4f5/32.png) [@ejohnson](https://pdfjs.community/u/ejohnson)\
**Post date:** [September 25, 2023, 3:42pm UTC](https://pdfjs.community/t/internal-server-500/2850/3 "2023-09-25T15:42:45Z")

</div>

Thank you for posting the incident to our forum. We will provide you with an update as soon as possible.

---

<div class="post-metadata">

**Author:** ![tgordon](https://avatars.discourse-cdn.com/v4/letter/t/aca169/32.png) [@tgordon](https://pdfjs.community/u/tgordon)\
**Post date:** [September 28, 2023, 11:00pm UTC](https://pdfjs.community/t/internal-server-500/2850/4 "2023-09-28T23:00:29Z")

</div>

Hello hbichri,

Can you provide the document + some example XFDF to test out?

Best regards,  
Tyler
