template-archive
template-archive copied to clipboard
Unable to parse while using proxy
Description Using cicero on a work computer with a proxy. When I try to parse within a new or existing template I get the below error.
C:\Users\lawrenr\hw\helloworld>cicero parse 2:54:55 am - info: Using current directory as template folder 2:54:55 am - info: Loading a default text/sample.md file. 2:54:58 am - error: Failed to load model file. Queue: [object Object],[object Object],[object Object],[object Object],[object Object] Details: Error: connect ECONNREFUSED 52.63.66.63:443
A Wireshark capture shows that the program is not going via the proxy, but is attempting to access an external address directly.
Note that:
- parsing a .cta file was effective:
- the required model files all exist locally in the same folder. I have tried modifying the model files that use "import ... from http://…" but then run into errors where the namespace is not defined (see below) - however this may be a result of my using incorrect syntax.
Expected behavior Expect the parse to execute correctly, and if any external calls are required to run via the proxy: { "$class": "org.accordproject.helloworld.HelloWorldClause", "clauseId": "aa3b9db9-f25f-41f4-88a4-64baba728bfe", "name": "Fred Blogs" }
NB: this is my first time posting an issue - let me know if further detail is required.
Hi Rafi
What happens if you leave the original syntax unamended - and simply run the parse command with your internet disconnected?
I was trying to reproduce your error, and noticed that this worked for me. Cicero appears to use local models if it cannot connect. Might be a workaround for you.
Thanks for the suggestion. Unfortunately the Virtual Machine environment I'm working in doesn't function without internet.