fable-compiler / repl

Fable online REPL
http://fable.io/repl
MIT License
64 stars 37 forks source link

Failed to compile Assemblies couldn't be loaded #101

Closed PawelStadnicki closed 4 years ago

PawelStadnicki commented 4 years ago

I'm tryig to reuse Fable-Repl. However I got "Failed to compile Assemblies couldn't be loaded. Some firewalls prevent download of binary files, please check." both locally and on Azure.

Spent hours to figure out how this enable on firewall.

How did you manage to solve it on the prod server? Or it just worked without additional setup for you?

alfonsogarciacaro commented 4 years ago

Yes, it didn't require any additional setup. I just added the message because some users were reporting the calls to download the assemblies were failing and we concluded it was because of the firewall. But the error message is somewhat generic an the reason could be different in your case: https://github.com/fable-compiler/Fable/blob/972505785486fe003ab70764544c2cf498e32fcd/src/fable-standalone/src/Worker/Worker.fs#L91-L99

Also, please note the repl contains several "hacks" to make it work. Because of this, we don't provide specific support to run it in other environments (although some people have managed to do it). We did write a brief guide on how Fable could be run as a service in web app but it's not battle-tested. You can find it here: https://github.com/fable-compiler/Fable/issues/1651#issuecomment-463286299

PawelStadnicki commented 4 years ago

Well indeed it seems be not related to firewall... I quickly went throught steps from the comment and I have interesting finding. I just deployed all my static files and depedencies/lib to Azure Storage, enabled Webpage option and it works! Real serverless :)