I just created my first DAML project and wrote a basic template. When I try to test it, getting following error: damlc: user error (Failed to start scenario service: BErrorClient (ClientIOError (GRPCIOBadStatusCode StatusUnknown (StatusDetails {unStatusDetails = "Stream removed"}))))
Below is my daml code (template)
module Rent where
template RentalAgreement
with
landlord : Party
tenant : Party
terms : Text
where
signatory landlord
rentTest = scenario do
p1 <- getParty "party 1"
p2 <- getParty "party 2"
submit p1 do
create RentalAgreement
with
landlord = p1; tenant = p2; terms = "sample"
assert True
daml build command is successful.
Compiling first-daml to a DAR.
Created .daml\dist\first-daml-0.0.1.dar
daml test command is failed.
damlc: user error (Failed to start scenario service: BErrorClient (ClientIOError (GRPCIOBadStatusCode StatusUnknown (StatusDetails {unStatusDetails = "Stream removed"}))))
daml test
opens a separate gRPC server and connects to that. Based on the error, it looks like this connection isn’t working properly. Do you have some kind of firewall enabled that could block this?Do you encounter the same issue in
daml studio
?I tried reproducing this in SDK 1.6.0 but was unable to do so. It would be great if you could provide the SDK version and the operating system you are running this on.
gRPC will use the
http_proxy
andhttps_proxy
environment variables. Try settingno_proxy=127.0.0.1
to disable it for the requests to localhost.