Templates will not load

Your Setup:

  • Ubuntu
  • SeaTable Enterprise (Self Hosted latest installed with docker-compose)
    {“version”:“5.2.7”,“edition”:“enterprise edition”}

Describe the Problem/Error/Question:

Everything works fine and the license was accepted and working. The ONLY issue I am having is that the templates wont ever load. I just see the spinner.

Error Messages:

No error in logs but the console in browser has:
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
http://mydomain:8056/api/v2.1/templates/
(used mydomain as placeholder here only)

Uncaught (in promise)

1. K

  1. code: "ERR_BAD_RESPONSE"
  2. config: {transitional: {…}, adapter: Array(3), transformRequest: Array(1), transformResponse: Array(1), timeout: 0, …}
  3. message: "Request failed with status code 500"
  4. name: "AxiosError"

Did you take a look at this: Templates - SeaTable Admin Manual

I missed the env vars originally thank you.

So I added them but it still happens.

Clicking this “create from a template”

Always just brings up the empty popup

Please paste a screenshot of the table referenced in this variable: SEATABLE_TEMPLATE_TABLE_NAME

Thanks for your response again and being so quick with your help. it’s appreciated.

So I’ve tried “Templates” and “All Templates” to no avail.
image

I have also tried the other option of adding credentials into the dftable_web file in config and that didn’t help either.

Perhaps there’s a specific “log” I should review in the logs to find the issue? I set the mode to DEBUG also.

Edit: I found this in dtable_web.log

“[2025-03-07 18:34:35] [ERROR] log.py[line:241] Internal Server Error: /api/v2.1/templates/
[2025-03-07 18:35:50] [WARNING] log.py[line:241] Forbidden: /api/v2.1/dtable/app-access-token/
[2025-03-07 18:35:50] [ERROR] templates.py[line:46] auth api token failed. [Errno 403] {“error_msg”:“Permission denied.”}
[2025-03-07 18:35:50] [ERROR] log.py[line:241] Internal Server Error: /api/v2.1/templates/”

You pasted a screenshot of the config. Please paste a screenshot of the table from which you want to pull the templates.

okay, here it is. It’s just the one provided in the manual that I imported

After editing the actual /conf/dtable_web_settings.py I at least see the templates in the sidebar now.

but unfortunately clicking on it goes to this:

So I checked the /logs/dtable_web.log and I see that it’s saying that I
don’t have the right api token

[2025-03-07 20:44:43] [WARNING] log.py[line:241] Not Found: /api/v2.1/dtable/app-access-token/
[2025-03-07 20:44:43] [ERROR] templates.py[line:46] auth api token failed. [Errno 404] {“error_msg”:“dtable _(deleted_3) All Templates not found.”}
[2025-03-07 20:44:43] [ERROR] log.py[line:241] Internal Server Error: /api/v2.1/templates/

but I did use the same approach to it said like this:

Create new Base Token
So unless there’s some other place I can find and setup an auth token in settings that you know of?

The problem is a mismatch in the name of the table inside your base. In the configuration you typed Templates but the real table name is templates. Do you see the difference?

Don’t forget to restart SeaTable after the configuration change.

1 Like

Omg, I am so dumb haha. Thank you for pointing this out and helping me. I see my templates now finally!

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