Here is a link to the code and application I am trying to create: https://codepen.io/Vexhia/pen/MWRRGWp
The problem seems to be with line 253 where I try to use a model I created with modelbuilder that I am hosting on an arcgis server. The model is working perfectly in arcpro. Please help if you know the answer!
Forgot to mention: In the application you'll need to click on the geoprocessing tab, enter a number, and click run to get the error.