dfinity / cancan Goto Github PK
View Code? Open in Web Editor NEWA scalable video sharing service.
Home Page: http://sdk.dfinity.org
License: Apache License 2.0
A scalable video sharing service.
Home Page: http://sdk.dfinity.org
License: Apache License 2.0
The doc site states "BigMap provides a simple, plug-in library for building scalable applications using key-value storage on the Internet Computer. By using the BigMap library as a back-end service, the CanCan sample application can dynamically chunk, serialize, and distribute data to multiple canisters."
It futher stated "Although the BigMap service you see in the CanCan repository is written in Rust"
Where is this BigMap backend service implemented? How is it imported and used? I tried to peruse the code but found nothing. Kindly point me in the right direction. Apologies if this is the wrong place to ask.
Cheers.
I'm able to authenticate myself with ICP, but then the signup page takes forever. What am I missing? I am running at dfx==0.7.0, and I installed Vessel, then ran ./bootstrap.sh. OS is Max OSX, environment is Chrome v90
I get errors when running the script:
$: ./bootstrap.sh
Running bootstrap script...
dfx build
[email protected] deploy /Users/icp/cancan/cancan
npm run start:dfx; dfx deploy
[email protected] start:dfx /Users/icp/cancan/cancan
dfx start --background || exit 0
dfx is already running.
Deploying all canisters.
All canisters have already been created.
Building canisters...
Building frontend...
The post-build step failed for canister 'ryjl3-tyaaa-aaaaa-aaaba-cai' with an embedded error: The command '"npm" "run" "build"' failed with exit status 'exit code: 1'.
Stdout:
[email protected] build /Users/icp/cancan/cancan
craco build
Creating an optimized production build...
Failed to compile.
./src/utils/canister/actor.ts
Cannot find module: 'dfx-generated/CanCan'. Make sure this package is installed.
You can install this package by running: npm install dfx-generated/CanCan.
when run: npm install dfx-generated/CanCan, I get the errors:
$ npm install dfx-generated/CanCan
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://[email protected]/dfx-generated/CanCan.git
npm ERR!
npm ERR! ERROR: Repository not found.
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR!
npm ERR! exited with error code: 128
Hi CanCanians! We're developing a sister project, Photos, which we hope to bring to ICP, and CanCan is a great aspiration. We've just found out about the 4GB limit imposed by WASM on canisters, was wondering if you could give us some pointers on how this issue has been addressed in CanCan?
When attempting to upload a video, I receive the following error in the browser console: Failed to store video. Error: failed to create video
.
This only happens when interacting with the app from the canister frontend vs the webpack dev server.
dfx version: dfx 0.7.0-beta.6
browser: chrome 90.0.4430.85
operating system: macOS 11.2.3
I got this error:
The build step failed for canister 'rrkah-fqaaa-aaaaa-aaaaq-cai' with an embedded error: Failed to invoke the package tool "vessel" "sources"
the error was: No such file or directory (os error 2)
Learning here....why are you using TrieMap
and not HashMap
? Is this for scalability reasons?
BINDIR=$HOME/bin/
mkdir -p $BINDIR
BIN=$BINDIR/vessel
$BIN
results in two forward slashes between $BINDIR
and vessel
I'm a "hobby" developer and don't know if I should open another ticket for this other issue: I ultimately needed to install vessel in the /usr/local/bin
path instead of $HOME
- is that just because I don't have that path being searched for these kinds of packages or something similar?
Are there any tests written for this project? Can't seem to find it within the repo
getUserNameByPrincipal(auth.identity.getPrincipal()).then((userName) => {
if (userName) {
// User exists! Set user and redirect to /feed.
getUserFromCanister(Array.isArray(userName)?userName[userName.length-1]:userName).then((user) => {
setIsCheckingICForUser(false);
auth.setUser(user!);
history.replace("/feed");
});
setIsCheckingICForUser(false);
} else {
// Do nothing. Allow the user to create a userId
setIsCheckingICForUser(false);
}
userName is array ,origin code case error
Hello! I'm trying to run this app, but am met with an error after authenticating through https://identity.ic0.app/#authorize. After signing in, I am redirected to localhost:3000
, when it tries to set me up with a username. It is during that call that this error is returned.
Unhandled Rejection (Error): Fail to verify certificate
pollForResponse
src/polling/index.ts:35
32 | switch (status) {
33 | case RequestStatusResponseStatus.Replied: {
34 | return cert.lookup([...path, blobFromText('reply')]);
> 35 | }
36 | ^ case RequestStatusResponseStatus.Received:
37 | case RequestStatusResponseStatus.Unknown:
38 | case RequestStatusResponseStatus.Processing:
async caller
src/actor.ts:318
async getUserNameByPrincipal
src/utils/canister.ts:42
39 | }
40 |
41 | export async function getUserNameByPrincipal(principal: Principal) {
> 42 | const icUserName = unwrap<string>(
43 | await CanCan.getUserNameByPrincipal(principal)
44 | )!;
45 | return icUserName;
Thanks for any help!
This is more of a question than an issue. How is the state saved through deployments?
Should we call getState
and setState
"manually" before and after every deployment?
I'm guessing if should be implementing the save/restore ourselves if we wanted to do something similar?
https://github.com/dfinity/cancan/blob/main/backend/State.mo#L256-L262
Do i need to set up the internet-identity locally ?
Hi,
Thanks for the great work. I encountered an error while trying to upload a video via the frontend canister deployed on my local node.
I've tested with the UI on the development server and it's works great.
where is idp-service?Page "https://github.com/dfinity/idp-service" has an 404 Not Found Error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.