Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some minors issues while following README #63

Closed
thaodt opened this issue Sep 27, 2022 · 11 comments · Fixed by #65
Closed

Some minors issues while following README #63

thaodt opened this issue Sep 27, 2022 · 11 comments · Fixed by #65

Comments

@thaodt
Copy link
Contributor

thaodt commented Sep 27, 2022

Hi, I described issues what I met while playing around with rs-wnfs. I know we're WIP, so any issues could happen.

Summary

Problem

  1. typo error in README.md line 193 script/
  2. running script rs-wnfs.sh got permission denied.
  3. Running build rs-wnfs build --all get wasm-opt command not found.
  4. Running example/graph following README.md there, got some errors in console:
    Screenshot_20220926_192438

image

Impact

sh scripts/rs-wnfs.sh setup

::: Make script executable :::

::: Drop a link to it in /usr/local/bin :::
ln: failed to create symbolic link '/usr/local/bin/rs-wnfs': Permission denied

::: Failed to install :::
  1. /usr/local/bin/rs-wnfs: line 124: wasm-opt: command not found

Solution

  1. need to correct typo, it should be scripts/ instead of script/
  2. Upon checking, the script line 237 we made a symlink to /usr/local/bin/ area which is required root privilege. Therefore I recommend using sudo and update README correspondingly.
  3. Im on Manjaro Linux, need to install binaryen by sudo pacman -Sy binaryen.
  4. Upon checking, the 404 requests are fetched under SSL (https). And it seems they were requested 2 times (1 is http and the other is ssl enabled). Im not sure there is a way to disable it on local machine or I'm missing something.

More information

Desktop:

  • OS kernel: 5.15.65-1-MANJARO
  • Browser [e.g. chrome, safari]: Chrome Version 104.0.5112.101 (Official Build) (64-bit) (same thing happened with my Firefox).

I'm pleased to help further to the project (by creating any PRs) if its fine.

@matheus23
Copy link
Member

Thanks for the second set of eyes! 👀

Can you try opening the page with localhost:8080 instead of 127.0.0.1:8080?

@matheus23
Copy link
Member

I'm pleased to help further to the project (by creating any PRs) if its fine.

You're welcome to! :)

@thaodt
Copy link
Contributor Author

thaodt commented Sep 27, 2022

Thanks for the second set of eyes! eyes

Can you try opening the page with localhost:8080 instead of 127.0.0.1:8080?

yay, already tried, still the same issue.

@matheus23
Copy link
Member

Hm. Yeah. I'm not sure what's happening here. Apparently jsdelivr responds with content-type: text/plain for .js files (cached from cloudflare) & x-content-type-options: nosniff, which causes the browser to reject the files as javascript.

I'm unsure how it used to work. Tagging @appcypher for help 👀

@matheus23
Copy link
Member

It's weird. This example is also uploaded to https://calm-thin-barista.fission.app/ and there the jsdelivr works just fine.

@thaodt
Copy link
Contributor Author

thaodt commented Sep 27, 2022

It's weird. This example is also uploaded to https://calm-thin-barista.fission.app/ and there the jsdelivr works just fine.

Hmmm, lemme check further details at night 😄 thank for ur information

@matheus23
Copy link
Member

@zeeshanlakhani concurrently has fixed one of these issues in #64 😅

@zeeshanlakhani
Copy link
Contributor

@matheus23 ah sorry. I should have seen this.

@zeeshanlakhani
Copy link
Contributor

zeeshanlakhani commented Sep 27, 2022

on OSX (Monterey)/Chrome, no perms or wasm-opt issues. However, I also ran into similar js-deliver issues it seems (for the examples/graph app):

Screen Shot 2022-09-27 at 4 22 56 PM

Screen Shot 2022-09-27 at 4 22 41 PM

@thaodt
Copy link
Contributor Author

thaodt commented Sep 28, 2022

It's weird. This example is also uploaded to https://calm-thin-barista.fission.app/ and there the jsdelivr works just fine.

Can you tell more about the deployment process on this? I cannot find it in ci/cd so I guess it is manually deployment. Maybe its different from local machine or we missed something.

@appcypher
Copy link
Member

appcypher commented Sep 28, 2022

Thanks for taking a look at this @thaodt and @zeeshanlakhani.

The 404 errors are from a webpack issue and can be ignored for now. But the main issue is that the example hasn't been updated in a while so it may not be using the correct API.

I will fix that in a new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants