Acurast / acurast-cli

A cli to interact with the Acurast Cloud
https://acurast.com
7 stars 0 forks source link

Warning on CLI install #41

Open VR-Architect opened 2 months ago

VR-Architect commented 2 months ago

FYI, got this warning about substrate

C:\_Projects\NodejsConsoleApp3\NodejsConsoleApp3>npm install -g @acurast/cli
npm WARN deprecated @substrate/connect@0.8.10: versions below 1.x are no longer maintained

added 211 packages in 27s

51 packages are looking for funding
  run `npm fund` for details

C:\_Projects\NodejsConsoleApp3\NodejsConsoleApp3>
VR-Architect commented 2 months ago

Also got this error when testing the Pinata key they gave me by clicking the copy button and pasting into my command line.

C:_Projects\NodejsConsoleApp3\NodejsConsoleApp3>curl --request GET .acurast--url https://api.pinata.cloud/data/testAuthentication .acurast--header 'accept: application/json' .acurast--header 'authorization: Bearer my_key_was_here' curl: (6) Could not resolve host: .acurast--url {"error":{"reason":"KEYS_MUST_BE_STRINGS","details":"pinata_api_key and pinata_secret_api_key must both be strings"}}curl: (6) Could not resolve host: .acurast--header curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535 curl: (6) Could not resolve host: application curl: (6) Could not resolve host: .acurast--header curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535 curl: (6) Could not resolve host: Bearer curl: (3) URL rejected: Bad hostname

C:_Projects\NodejsConsoleApp3\NodejsConsoleApp3>

AndreasGassmann commented 2 months ago

Thanks you for the report. This is a sub-dependency, I'll see if we can force a newer version in a future update.

Regarding the Pinata key, you don't need that anymore. Just comment both the key and URL out of the .env file (or remove it completely), and it should work.

Eg.

.env

ACURAST_MNEMONIC=abandon abandon about ...
# ACURAST_IPFS_URL=https://api.pinata.cloud
# ACURAST_IPFS_API_KEY=eyJhb...
# ACURAST_RPC=wss://...