dfinity / pocketic

A canister smart contract testing solution for the Internet Computer.
Other
22 stars 1 forks source link

Cannot deploy via `dfx deploy ...` to pocket-ic replica that runs from CLI #4

Closed ZenVoich closed 8 months ago

ZenVoich commented 11 months ago

pocket-ic binary 2.0.1 dfx 0.15.2

I run pocket-ic by

$ pocket-ic -p 4943
2023-12-08T11:16:51.855200Z  INFO pocket_ic_server: The PocketIC server is listening on port 4943

Then I deploy by

$ dfx deploy main
Error: The replica returned an HTTP Error: Http Error: status 404 Not Found, content type "", content:

Same error for dfx canister create main.

Does replica REST API work on pocket-ic?

Also would be helpful to have documentation on how to use pocket-ic from CLI

fxgst commented 11 months ago

Hi @ZenVoich, dfx does currently not support deploying to PocketIC, because the REST API is not supported by PocketIC yet. To see an example setup, please look here

ZenVoich commented 8 months ago

Does this mean that pocket-ic now supports REST API?