Questions tagged [internet-computer]

For questions related to DFINITY Foundation's Internet Computer, a public blockchain network. Add also tags about the programming language you are using.

The internet computer is a decentralized, open-source, general-purpose blockchain, designed to host smart contracts. Developed by the DFINITY Foundation.

20 questions
4
votes
3 answers

Dfinity internet computer - error during communication with the replica

I'm following the quickstart local development setup on an Ubuntu v20 machine I'm getting the following error on dfx deploy: An error happened during communication with the replica: error sending request for url…
Lee
  • 29,398
  • 28
  • 117
  • 170
2
votes
1 answer

What is the meaning of "trap" in relation to integer underflow/overflow?

Reading through the docs for Internet Computer's Motoko: https://sdk.dfinity.org/docs/languages/motoko-at-a-glance.html#_bounded_numbers_trapping I realised I don't have a good model for what the word "trapping" means here: Bounded numbers…
Lee
  • 29,398
  • 28
  • 117
  • 170
1
vote
2 answers

API calls for third party HTTP restful API from dfinity canisters

I m trying to find a way to make Restful API calls from Canisters (for SSO with OAuth) with Motoko but never found any library that. Is there any HTTP client library available for Motoko? Is not is there a way to import any HTTP client library from…
Val Entin
  • 953
  • 10
  • 18
1
vote
0 answers

Environment variables in canisters (ICP)

how can I inject an env variable secret inside a main net deployed canister? And also how is my secret protected against everyone else on the chain? Thx
Lupexlol
  • 63
  • 7
1
vote
0 answers

Fleek hosting on Internet Computer build failing exceeded the cycles limit for single message execution

I've been trying to host my Github Repo over Fleek, I'm new to Fleek (Decentralised Hosting). I can't see any error creating issues during or before build completion. This is the Deploy log of build that I am trying to host. 6:39:30 PM 03/15/2022:…
1
vote
2 answers

Dfinity Quickstart for internet computer

I've been trying to get the quickstart working, but the various dfx commands doen't seem to generate the necessary html page and css file required for the application. When you deploy the canister locally, and then call it at…
GGizmos
  • 3,443
  • 4
  • 27
  • 72
0
votes
0 answers

"Failed to load resource: server responded status of 400 (Bad Request)" problem when linking my frontend and backend canister smart contacts in motoko

"Failed to load resource: the server responded with a status of 400 (Bad Request)" problem when trying to link my frontend and backend canister smart contacts in motoko using javascript. import { dbank } from…
0
votes
1 answer

Tutorials for the Implementation of Internet Identity with React

I am new to smart-contract development and also new to IC development. I have already followed the motoko tutorials and the introduction to development in IC. My next step was to implement a simple login form (with a react interface) using Internet…
3logy
  • 2,634
  • 8
  • 46
  • 99
0
votes
1 answer

Unable to see dfx balance after redeeming coupon

I redeemed a coupon to get free dfx cycles. However, after redeeming using this command $ dfx wallet --network ic redeem-faucet-coupon After 5-10 sec, this command exited the process without any feedback. When I tried to run this…
user21193810
0
votes
0 answers

When I run dfx start it shows Permission denied (os error 13)

enter image description here Iam using dfx version 0.9.3 I tried doing dfx start --emulator, I used this command also DFX_VERSION=0.9.3 sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)" to reinstall and dfx start --clean also its still not…
0
votes
1 answer

dfx deploy --network ic failing

I am trying to deploy my first canister on the internet computer for an online class I am taking. Once I issue the command "dfx deploy --network ic" in the terminal I receive this output Uploading assets to asset canister... Error: Failed while…
0
votes
0 answers

dfx start error "thread 'main' panicked at 'Error creating persistent pool at: ... "

I built a new Motoko (or ICP) project using dfx command. For the first time, it started and deployed successfully. Then I suddenly closed the first terminal which I ran the dfx start command. Then try to restart it again but this error message is…
csmaster
  • 579
  • 4
  • 14
0
votes
0 answers

Can one call ledger_canister not being a canister?

I need to implement a service that will query IC blocks through ledger. Do I need to create a dapp that implements a canister of its own?
ababo
  • 1,490
  • 1
  • 10
  • 24
0
votes
2 answers

having issues with "dfx start" and "dfx deploy" code

Does anyone know the solution to this? I am new to this and learning. I am on Macbook Air m1. This is the end code while running dfx start in the terminal: thread 'replica-actor' panicked at 'called Result::unwrap() on an Err value: Cannot start…
0
votes
2 answers

Internet Computer - Matoko print instruction not printing to terminal

I am new to internet computer. I wrote the following code on Visual Studio: import Debug "mo:base/Debug"; actor DBank { currentValue = 300; currentValue :=100; Debug.print(debug_show(currentValue)); } I typed, dfx…
1
2