Problem running Daml Script against Daml Hub
- bernhardOP 1
I’ve downloaded a
participants.jsonfile from the Daml Hub console and am runningdaml script --dar .daml/dist/my-unsharable-dar.dar --participant-config=$HOME/Downloads/participants.json --json-api --output-file=out --script-name ProdScripts:do_some_stuffI get an error in return:
Exception in thread "main" spray.json.JsonParser$ParsingException: Unexpected end-of-input at input index 0 (line 1, position 1), expected JSON Value: ^ at spray.json.JsonParser.fail(JsonParser.scala:237)SDK version I’m using is 1.8. Any ideas what’s going wrong?
- cocreature 2
@chris.norris ran into the same issue and it was caused by the
participants.jsonfile referring to the newdaml-hub.comurl whereas the ledger was still onprojectdabl.com. You could try changing the URL to the latter.We are currently working on improving the error message to make this easier to figure out.
- bernhard 1
Spot on, that was the problem, thank you!
- dtanabe 2
Sorry about this! We’ll be pushing out a patch that should fix this file some time today; will notify this thread when this is done.
- dtanabe 4
The fix has been pushed!
participants.jsonnow reflects the appropriate domain, so the file should be able to be used without modification. - Alex_Matson 3
Just a tip - there may be a lingering cache issue causing the wrong domain to still be included in
participants.jsonon Daml Hub. If affected, perform a hard browser refresh (cmd+shift+ron macos/Chrome) and re-download.