The following article provides guidance for troubleshooting issue with Assette’s Visual Studio Code Plug-in. If your issue is not listed, please contact clientservice@assette.com.
Failure to Upload Data Block – Additional Whitespace #
Symptoms:
- Unable to upload a Data Block to Assette via the Visual Studio Code (VS Code) Plug-in
- Receive the following error message when trying to upload a Data Block:
- Template Upload Failed: AxiosError: Request failed with status code 400
Source: Assette Block Editor
- Template Upload Failed: AxiosError: Request failed with status code 400

Possible Causes & Solutions
This error is likely caused by removing or altering the Python comment which Assette uses to identify the start and stop of the Data Block. This may accidentally occur when VS Code has a Python Formatter Plug-in enabled. To resolve this issue, manually remove the additional whitespace(s).
# ----Code start identification-do not remove this line---
^^^^ Additional leading whitespace added