# Linkstack Error 500 when adding links

**URL:** <https://forum.yunohost.org/t/linkstack-error-500-when-adding-links/38379>\
**Category:** Support apps\
**Tags:** linkstack, english\
**Created:** [August 22, 2025, 5:07pm UTC](https://forum.yunohost.org/t/linkstack-error-500-when-adding-links/38379 "2025-08-22T17:07:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sid](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sid](https://forum.yunohost.org/u/Sid)\
**Post date:** [August 22, 2025, 5:07pm UTC](https://forum.yunohost.org/t/linkstack-error-500-when-adding-links/38379/1 "2025-08-22T17:07:30Z")

</div>

**What type of hardware are you using** : Old laptop or computer  
**What YunoHost version are you running** : 12.1.14  
**What app is this about** : Linkstack

### Describe your issue

There’s a 500 error when adding links. I can no longer add links. This has been an ongoing issue for a while. [There is a GitHub issue that has been open since Jan 5th](https://github.com/LinkStackOrg/LinkStack/issues/884), but they’re also running YunoHost so I’m wondering if it’s an issue specific to YNH.

I think there’s also [another open issue here on this forum](https://forum.yunohost.org/t/linkstack-erreur-500/34454) but it’s in French ☹ I tried translating it but it looks like it hasn’t been resolved.

For some reason I can’t add a Linkstack tag to this post, so if someone wants to add it, please go ahead.

### Share relevant logs or error messages

“500 | Server Error”

---

<div class="post-metadata">

**Author:** ![mowie](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mowie/32/9298_2.png) [@mowie](https://forum.yunohost.org/u/mowie)\
**Post date:** [August 24, 2025, 2:01pm UTC](https://forum.yunohost.org/t/linkstack-error-500-when-adding-links/38379/2 "2025-08-24T14:01:23Z")

</div>

Hey, I found a workaround!

The problem seems to be some change of format in the links json file. The old (up to version 4.8.0?) json format is not compatible with newer versions (4.8.1~ynh2 and above).

I played around exporting the link json or user json and got an error when trying to import the backups.

Here is the workaround:

1. Backup linkstack in yunohost
2. Export the user data (user json file and link json file) here is how:

 ![image](https://forum.yunohost.org/uploads/default/original/2X/c/c91b1e12dea6b8ce82279b0d882719b844c0028d.png)

2a) Click on the Menu in the top right corner (below your user name and icon)  
2b) The Menu will show. Click on the “Settings” Button.

 ![image](https://forum.yunohost.org/uploads/default/original/2X/9/96c9d2ddf77f97d6b02c4c8696a991490c6b7a83.png)

2c) The Settings page will load. On the bottom half of the page you will see the section “Export user data”

2d) Click on “Expoeŕt all data” or on “Export links only” (tested by me)

1. Update your linkstack version in yunohost or install it new

2. Create a json file with the target format (=new linkstack version file format)  
4a) Create some links and some other elements that are used in the linkstack account that you export

3. Export the user data (see steps above)

4. Compare old and new file format so you can edit the old json file to match the new json file. Here is how:

6a) MANUAL edit:

1. **Add the `type` field** :

- Items with a `link` value (URLs) get `"type": "link"`
- Items with `link: null` get `"type": "heading"`

1. **Add the `type_params` field** :

- Links get `"type_params": "{\"custom_html\":false,\"ignore_container\":false,\"include_libraries\":[]}"`
- Headings get `"type_params": "{\"custom_html\":true,\"ignore_container\":false,\"include_libraries\":[]}"`

6b) Automatic edit

Use whatever tool you want to add the fields above automatically. Claude.ai worked for me with the following prompt:

`Bring the file attached into the following format, while keeping the content of the file.`

1. Import the matched json file to linkstack. The import should show no error.

2. You should see all your old links. Some elements might faulty. Example:  

Enjoy

---

<div class="post-metadata">

**Author:** ![Sid](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/s/5f9b8f/32.png) [@Sid](https://forum.yunohost.org/u/Sid)\
**Post date:** [August 24, 2025, 5:41pm UTC](https://forum.yunohost.org/t/linkstack-error-500-when-adding-links/38379/3 "2025-08-24T17:41:01Z")

</div>

I appreciate the workaround but that’s a whole lot of work. I’ll continue waiting for a proper fix. Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [September 8, 2025, 5:41pm UTC](https://forum.yunohost.org/t/linkstack-error-500-when-adding-links/38379/4 "2025-09-08T17:41:58Z")

</div>

Closed on September 8, 2025, 5:41pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
