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

errors on old node.js version v17.9.1 #303

Open
themighty1 opened this issue Jun 7, 2024 · 1 comment
Open

errors on old node.js version v17.9.1 #303

themighty1 opened this issue Jun 7, 2024 · 1 comment

Comments

@themighty1
Copy link

As I was trying to run
phase2cli auth && phase2cli contribute -c anon-aadhaar-v2-trusted-setup-ceremony

I got an error

/home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/solc/soljson.js:133
    process["on"]("unhandledRejection", function (reason) { throw reason; });
                                                            ^

Error: Unable to find the user currently authenticated with Firebase. Verify that the Firebase application is properly configured and repeat user authentication before trying again.
    at getCurrentFirebaseAuthUser (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/@p0tion/actions/dist/index.mjs:1940:15)
    at checkAuth (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/dist/index.js:1642:18)
    at Command.contribute (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/dist/index.js:3029:99)
    at async Command.parseAsync (/home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/commander/lib/command.js:935:5)

Node.js v17.9.1

After I upgraded to the latest LTS nodejs, the error was gone.

Maybe potion could check the version compatibility during runtime and inform the user?

@ctrlc03
Copy link
Collaborator

ctrlc03 commented Jul 31, 2024

As I was trying to run phase2cli auth && phase2cli contribute -c anon-aadhaar-v2-trusted-setup-ceremony

I got an error

/home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/solc/soljson.js:133
    process["on"]("unhandledRejection", function (reason) { throw reason; });
                                                            ^

Error: Unable to find the user currently authenticated with Firebase. Verify that the Firebase application is properly configured and repeat user authentication before trying again.
    at getCurrentFirebaseAuthUser (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/@p0tion/actions/dist/index.mjs:1940:15)
    at checkAuth (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/dist/index.js:1642:18)
    at Command.contribute (file:///home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/dist/index.js:3029:99)
    at async Command.parseAsync (/home/default2/.nvm/versions/node/v17.9.1/lib/node_modules/@p0tion/phase2cli/node_modules/commander/lib/command.js:935:5)

Node.js v17.9.1

After I upgraded to the latest LTS nodejs, the error was gone.

Maybe potion could check the version compatibility during runtime and inform the user?

this could actually be related to #220 rather than the node version - just not enough time between auth and contributing hence why the user doc was not found, and after some time (time it took to switch node version) it worked

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

2 participants