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

access-client CLI should tell users if they're using an unsupported version of node #287

Open
travis opened this issue Dec 13, 2022 · 0 comments

Comments

@travis
Copy link
Member

travis commented Dec 13, 2022

I was using node 16.3.1 and tried to run the CLI - setup worked but whoami and create-space did not:

➜  access-client git:(main) ✗ node ./src/cli/index.js setup
Path: [elided]w3access/main.json
? Input the name for this device: lappy
? Select this agent type: device
Agent is ready to use.
➜  access-client git:(main) ✗ node ./src/cli/index.js whoami
file:///[elided]/w3protocol/packages/access-client/src/agent.js:61
        fetch: options.fetch ?? globalThis.fetch.bind(globalThis),
                                                 ^
TypeError: Cannot read properties of undefined (reading 'bind')
[elided]

➜  access-client git:(main) ✗ node ./src/cli/index.js create-space
file:///[elided]/w3protocol/packages/access-client/src/cli/utils.js:28
    const rsp = await fetch(url + 'version')
                ^
ReferenceError: fetch is not defined

After upgrading to node 19.2 things started working.

I think we should 1) document which versions work and 2) verify we're using a supported version of Node at runtime and let the user down easy if not.

Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 17, 2025
Adds CI workflow to publish console to IPFS via web3.storage and
Cloudflare Pages.

- fixes storacha#291 
- PRs get a comment with the cloudflare dev url and an ipfs gateway url
on.
- merging PR to main updated dnslink for console.web3.storage and
creates a prod deploy for the w3console project in cloudflare pages
which should be configured to update the deployed site at
console.web3.storage

This is an iteration on the way we deploy the website in the
web3.storage repo, see:
https://github.com/web3-storage/web3.storage/blob/c973e7e0b29bc2f1bc6da348cdd2f66b0e00b1a3/.github/workflows/website.yml#L197-L243

License: MIT
Signed-off-by: Oli Evans <[email protected]>
Peeja pushed a commit to storacha/upload-service that referenced this issue Jan 17, 2025
🤖 I have created a release *beep* *boop*
---


## 1.0.0 (2023-03-23)


### ⚠ BREAKING CHANGES

* use new account model
([storacha#400](storacha/w3ui#400))

### Features

* add terms of service page
([storacha#417](storacha/w3ui#417))
([6deb24d](storacha/w3ui@6deb24d))
* adds space-finder autocomplete combobox
([storacha#268](storacha/w3ui#268))
([3dcd647](storacha/w3ui@3dcd647))
* allow users to set page size in W3APIProvider
([storacha#308](storacha/w3ui#308))
([814a293](storacha/w3ui@814a293))
* club tropical w3 auth boxen
([storacha#350](storacha/w3ui#350))
([2266eb2](storacha/w3ui@2266eb2))
* delegate access to spaces
([storacha#293](storacha/w3ui#293))
([441d757](storacha/w3ui@441d757))
* import a space into w3console
([storacha#309](storacha/w3ui#309))
([a69a95b](storacha/w3ui@a69a95b))
* Improve upload component flow
([storacha#285](storacha/w3ui#285))
([ba9a3bf](storacha/w3ui@ba9a3bf))
* publish console to IPFS & Cloudflare from CI
([storacha#287](storacha/w3ui#287))
([e2a833e](storacha/w3ui@e2a833e))
* Storybook story improvements
([storacha#294](storacha/w3ui#294))
([e0de2cc](storacha/w3ui@e0de2cc))
* use new account model
([storacha#400](storacha/w3ui#400))
([66dd20b](storacha/w3ui@66dd20b))
* w3console example app
([storacha#255](storacha/w3ui#255))
([df08029](storacha/w3ui@df08029))


### Bug Fixes

* add _headers ([storacha#418](storacha/w3ui#418))
([4eb1da1](storacha/w3ui@4eb1da1))
* fix w3console styling
([storacha#320](storacha/w3ui#320))
([74a298c](storacha/w3ui@74a298c))
* remove authenticator class when registed
([storacha#352](storacha/w3ui#352))
([3668f3b](storacha/w3ui@3668f3b))
* w3console polish
([storacha#284](storacha/w3ui#284))
([9a67365](storacha/w3ui@9a67365))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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

No branches or pull requests

1 participant