Upload file - SyntaxError: Unexpected token < in JSON during Import (v2020)

You may click Tools → Advanced Settings to enable Debug, then generate and run your scripts again. Check the API 's HTTP response, read Check HTTP Response from API, you should find the server side error message in the body of the HTTP response.