Fetch not a function

Hello SeaTable Team,
I use the Fetch with async/await to fetch data from a mock API in SeaTable-script. It works in SeaTable 1.8.0 but in the Version 2.0 I get the error “Uncaught (in promise) TypeError: fetch is not a function”.

Do you have any ideas to connect to an API? Thank you in advance :slight_smile:

I had the same problem in my personal project. I think it’s partly because since 2.0 the JavaScript is executed in a sandbox which is not a global environment any more.

@daniel.pan perhaps you can shine a light on us?

You are right. We will change it back in 2.1.

2 Likes

Thank you! I am looking forward to the 2.1 :slight_smile: