Your post leaves my questions open:
1.) So you use SeaTable on-premises? Which version?
2.) Can the URL be resolved locally?
3.) Which token do you use for authenticating against SeaTable? The API token, the auth token or the base access token? (Please read up on it in the API manual, you find the section on authentication here.)
4.) What’s the exact command you use (token and URL can be redacted)