Git Product home page Git Product logo

cancan's People

Contributors

alwin-stockinger avatar dprats avatar ericswanson-dfinity avatar ggreif avatar kritzcreek avatar matthewhammer avatar msecret avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cancan's Issues

Upload video issue

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.

Cannot find module: 'dfx-generated/CanCan'

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

extra forward slash in vessel-install.sh

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?

Unhandled Rejection (Error): Fail to verify certificate

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!

username is array

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

Video upload: Error: failed to create video

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

Where is the BigMap implemented?

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.

Error when running `dfx build`

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)

Can see nothing but only black screen

Can see nothing but only black screen, no other actions can do. just follow the steps with ReadMe.

dfx version: dfx 0.7.0
browser: chrome 90.0.4430.212
operating system: macOS 10.15.7
image

image

image

Question about file size limit

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?

Signing up hangs at "Signing In" Forever

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.