samply / blazectl

Control your FHIR® Server from the Command Line
Apache License 2.0
17 stars 5 forks source link

Stuck uploading #2

Closed dustingetz closed 5 years ago

dustingetz commented 5 years ago

Hi Alexander I'm stuck here, do you know what I might have done wrong?

dmbp17-2:~ dustin$ ./blazectl --server http://localhost:8082 count-resources
Count all resources on http://localhost:8082 ...

unexpected end of JSON input
dmbp17-2:~ dustin$ ./blazectl --server http://localhost:8082 upload ./synthea/output/fhir/
Starting Upload to http://localhost:8082 ...
upload   0s [=>----------------------------------------------------------------------------] 3 %

This is off of ./run_synthea -p 100 with the same git sha as described https://alexanderkiel.gitbook.io/blaze/performance and the json files seem well formed.

$ SERVER_PORT=8082 DATABASE_URI=datomic:free://localhost:4334/db java -jar blaze-0.6.4-standalone.jar 
WARNING: requiring-resolve already refers to: #'clojure.core/requiring-resolve in namespace: datomic.common, being replaced by: #'datomic.common/requiring-resolve
19-09-17 00:33:07 dmbp17-2.local INFO [blaze.system:241] - Read structure definitions resulting in: 190 structure definitions
19-09-17 00:33:09 dmbp17-2.local INFO [blaze.system:257] - Use existing database at: datomic:free://localhost:4334/db
19-09-17 00:33:09 dmbp17-2.local INFO [blaze.system:259] - Connect with database: datomic:free://localhost:4334/db
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.system:250] - Upsert schema in database: datomic:free://localhost:4334/db creating 9107 new facts
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.system:269] - Init terminology server connection: http://tx.fhir.org/r4
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.system:430] - Start metrics server on port 8081
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.system:391] - Start main server on port 8082
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.system:234] - Set log level to: info
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.core:49] - JVM version: 11
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.core:50] - Maximum available memory: 4096 MiB
19-09-17 00:33:12 dmbp17-2.local INFO [blaze.core:51] - Number of available processors: 8

I am trying to load this stuff up in hyperfiddle :) http://www.hyperfiddle.net

alexanderkiel commented 5 years ago

For Blaze the base URL is http://localhost:8082/fhir. So you miss the /fhir path. I have created https://github.com/life-research/blaze/issues/45 to add documentation for that.

alexanderkiel commented 5 years ago

I have updated the Quick Start Section of the Blaze documentation.

dustingetz commented 5 years ago

Thank you!