Evaluation of FormPage and FormFunction aborts

I have created a script that gathers real estate information from a website and makes a GeoRegionvaluePlot of the prices. This works well when running it as a function in my local notebook:

main[url_String]


I a trying to create a simple web-interface for generating the plot, but when I try to evaluate it as a FormFunction it keeps aborting. This is the setup of my webform:

FormPage[{"url"->"String"}, main[#url]&]


I have also tried to wrap the expression in AbortProtect without any result:

FormPage[{"url"->"String"}, AbortProtect[main[#url]&]]


Any help is highly appreciated