Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cicero command-line should work offline #361

Closed
adrianffletcher opened this issue May 22, 2019 · 1 comment · Fixed by #363
Closed

Cicero command-line should work offline #361

adrianffletcher opened this issue May 22, 2019 · 1 comment · Fixed by #363

Comments

@adrianffletcher
Copy link

Cicero parse, execute and archive should work offline if the required libraries have already been cached. This would help me be much more productive on the train. :)

@jeromesimeon
Copy link
Member

Is this working? I see caching, but cicero parse still raises HTTP errors if offline after model caching:

22:20:17 - info: Using current directory as template folder
22:20:17 - info: Loading a default sample.txt file.
22:20:19 - info:
{
  "$class": "org.accordproject.volumediscount.VolumeDiscountContract",
  "contractId": "79ed6171-a89a-4078-a030-2664864d0d1c",
  "firstVolume": 1,
  "secondVolume": 10,
  "firstRate": 3,
  "secondRate": 2.9,
  "thirdRate": 2.8
}
bash-3.2$ git status 
On branch master
Your branch is up to date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	models/@models.accordproject.org.cicero.contract.cto
	models/@models.accordproject.org.cicero.runtime.cto
	models/@models.accordproject.org.money.cto

no changes added to commit (use "git add" and/or "git commit -a")
bash-3.2$ ~/git/cicero/packages/cicero-cli/index.js parse 
22:20:31 - info: Using current directory as template folder
22:20:31 - info: Loading a default sample.txt file.
22:20:31 - error: Failed to load model file. Queue: [object Object],[object Object],[object Object],[object Object],[object Object] Details: Error: getaddrinfo ENOTFOUND models.accordproject.org models.accordproject.org:443```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants