# Problem with Python scripts and/or API on self-hosted

**URL:** <https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765>\
**Category:** Troubleshooting\
**Created:** [June 7, 2024, 1:40pm UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765 "2024-06-07T13:40:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troy](https://forum.seatable.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://forum.seatable.com/u/Troy)\
**Post date:** [June 7, 2024, 1:40pm UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765/1 "2024-06-07T13:40:04Z")

</div>

Hoping I can get some help with my self-hosted configuration that I am currently in the process of setting up. Using a VM with a port forward to [http://localhost:8991](http://localhost:8991) (https doesn’t work for some reason). Everything otherwise works fine, except for a couple of issues which I think might be related to API configuration. 1) Python scripts wont run. I get an error “Failed to get the script”

 ![Screen Shot 2024-06-04 at 16.03.52](https://forum.seatable.io/uploads/default/original/2X/7/788561def3cd521b6e1dfc876b8cd4fa109003e7.png). Additionally I tried to setup Templates using the instructions in the Manual. Looks good, but I get an Internal Server Error when clicking on the Templates link. I have both the Master base and template base setup properly with the correct API token for the Master Base in the dtable\_web\_settings.py file. I was thinking the common thread is the API token / API configuration. I can’t seem to connect to the API at all. Is that it only works with SSL / https? Is there anyway to get the API to work with [http://localhost](http://localhost) instead of https ? Or alternatively get the application to work on https on localhost?

---

<div class="post-metadata">

**Author:** ![cdb](https://forum.seatable.com/user_avatar/forum.seatable.com/cdb/32/7_2.png) [@cdb](https://forum.seatable.com/u/cdb)\
**Post date:** [June 8, 2024, 7:53am UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765/2 "2024-06-08T07:53:56Z")

</div>

To be honest, you are outside the recommended scenario, and it is difficult for us to support via forum every possible use case.

My recommendation would be that you book a Virtual Server at Hetzner. This costs just 4 € per Month. You don’t Even need a domain, just use [your-server-ip.nip.io](http://your-server-ip.nip.io) as described here in the manual: [Custom Certificates - SeaTable Admin Manual](https://admin.seatable.io/installation/advanced/custom-certificates/?h=nip+io#use-nipio)

This will avoid a lot of headache, and you will save hours of troubleshooting.

---

<div class="post-metadata">

**Author:** ![cdb](https://forum.seatable.com/user_avatar/forum.seatable.com/cdb/32/7_2.png) [@cdb](https://forum.seatable.com/u/cdb)\
**Post date:** [June 12, 2024, 6:09am UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765/3 "2024-06-12T06:09:38Z")

</div>

Could you solve your problem?

---

<div class="post-metadata">

**Author:** ![Troy](https://forum.seatable.com/letter_avatar_proxy/v4/letter/t/85f322/32.png) [@Troy](https://forum.seatable.com/u/Troy)\
**Post date:** [June 13, 2024, 7:02am UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765/4 "2024-06-13T07:02:16Z")

</div>

Thanks for the response. Unfortunately I am not allowed to change the domain at the moment, but will test in the future.

---

<div class="post-metadata">

**Author:** ![msweb08](https://forum.seatable.com/user_avatar/forum.seatable.com/msweb08/32/5854_2.png) [@msweb08](https://forum.seatable.com/u/msweb08)\
**Post date:** [October 18, 2024, 5:33pm UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765/5 "2024-10-18T17:33:15Z")

</div>

I have the same problem. Is there a way to narrow down the problem and find a solution?

---

<div class="post-metadata">

**Author:** ![cdb](https://forum.seatable.com/user_avatar/forum.seatable.com/cdb/32/7_2.png) [@cdb](https://forum.seatable.com/u/cdb)\
**Post date:** [October 18, 2024, 10:03pm UTC](https://forum.seatable.com/t/problem-with-python-scripts-and-or-api-on-self-hosted/4765/6 "2024-10-18T22:03:53Z")

</div>

I am sorry to hear that it is not working. I see three possible solutions:

- follow our recommendation and use a public available key, use let’s encrypt and your system will be up and running within some minutes
- understand the flow of the data between the systems and the docker container, analyse the browser console and various log entries to determine the communication problem and try to find a solution
- book our paid enterprise support, grant me access to your system via ssh and most likely I can narrow down the problem within some hours
