Error when creating new Application From Template globRequire_templates_json

Getting the below error when trying to create an app from template in the latest stable version of self hosted 3.52.1

{"endpoint":{"path":"/api/pages/cloneTemplate","service":"backend","team":"@tryretool/building-ui-platform"},"error":{"level":"error","msg":"Internal server error: globRequire_templates_json is not defined","stack":"ReferenceError: globRequire_templates_json is not defined\n at Grf (/retool_backend/bundle/main.js:5844:25061)\n at Bn.cloneTemplate (/retool_backend/bundle/main.js:5885:17874)\n at /retool_backend/bundle/main.js:3204:211794\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","type":"INTERNAL_ERROR"}

Hi @victory, is this happening when you click this button?

I'm seeing that error when attempting to create an app using the AI Chat template.

Hi @alex_pm, I was able to reproduce this issue on Self-hosted 3.52-stable. Are you on the same version?

Hi,
I tried to create a new app (S3 File Explorer) from template.
my version 3.52.13-Stable and self-Host
Error: internal error happen
This is the log:


{"endpoint":{"path":"/api/pages/cloneTemplate","service":"backend","team":"@tryretool/building-ui-platform"},"level":"error","msg":"globRequire_templates_json is not defined","organization":{"id":1,"name":"...."},"pid":84,"requestId":"aa82792f-81ca-4e53-b447-4d35347fb632","stack":"ReferenceError: globRequire_templates_json is not defined\n    at TQp (/retool_backend/bundle/main.js:5576:25034)\n    at Io.cloneTemplate (/retool_backend/bundle/main.js:5617:17859)\n    at /retool_backend/bundle/main.js:3087:211782\n    at process.processTicksAndRejections (node: internal/process/task_queues:95:5)","timestamp":"2024-08-01T20:41:26.714Z","type":"UNCAUGHT_ERROR","user":{"email":".....","sid":"....."}}

Hi @mohsen, welcome to the forum! :wave:
Thank you for sharing the log, our devs are looking into this. We'll update you here when it's fixed.

1 Like

Our new stable release, version 3.75, includes a fix for this issue. :sunglasses: