Questions tagged [dfinity]
22 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
4
votes
8 answers
Unable to install DFINITY Canister SDK on Ubuntu
I'm following the steps found here to install DFINITY Canister SDK.
When I run the below command, directory dfx (under /bin) is not created and subsequently the dfx command is not recognized:
adel@adel-VirtualBox:~$ sh -ci "$(curl -fsSL…

Adel Rustum
- 2,518
- 2
- 7
- 15
1
vote
1 answer
Issue while running - http://localhost:8080/ ICP application but it asking me username password?
Previous Issue
I was facing below issue while running app in the browser.
Could not find a canister id to forward to.
Then to resolve this issue I followed below link. Canister
I created the canister but stuck at step where we have to run…

navalega0109
- 47
- 4
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
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
Error with backend canister WARN: Building canisters before generate for Motoko
I used the motoko playGround and my backend is working well in playground.
Motoko Playground URL
But somehow with same code my project backend is getting failed. Getting below error.
WARN: Building canisters before generate for Motoko
Also backend…

navalega0109
- 47
- 4
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…

samad
- 1
0
votes
0 answers
Not able to Deploy my decentralized web app onto the Dfinity ICP network
Output of the error generated while trying to deploy my webapp
I was trying to deploy my webapp on the Internet Protocol Network ICP using the following command dfx deploy --network ic but encounterd the following errors
Uploading assets to asset…
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…

mrbrianpw
- 41
- 1
- 1
- 4
0
votes
1 answer
ingress_expiry not within expected range error in candid ui. Motoko language, console prompted a breaking change on running dfx deploy
I was following a course tutorial to create a small decentralized bank application using dfinity's internet computer.
the main.mo file is as follows:
import Debug "mo:base/Debug";
import Float "mo:base/Float";
import Time "mo:base/Time";
actor…

Angad Manroy
- 1
- 2
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
How to generate a uuid in form of [u8; 16] in rust dfinity ICP?
I tried this way, but the canister seems to have difficulties serialise the [u8; 16], I also tried to use the Uuid package and the canister failed even when I just use Uuid::preload::*;
#[update]
#[candid_method(update)]
pub async fn…

Ali Husham
- 816
- 10
- 31
0
votes
0 answers
Linux Mint 20.3 segmentation fault when attempting to create a new project using Dfinity's dfx SDK
Please be gentle, I'm very inexperienced with this stuff!
I have a lenovo x200 thinkpad running Linux Mint 20.3; I've had no issues orientating myself with linux mint so far, although I am still very new to linux in general.
I have been attempting…

Doolb
- 1
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…

Niell_ray28
- 11
- 3