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

codepush_logout_action.rb: wrong number of arguments (given 1, expected 0) #6

Open
spsaucier-bakkt opened this issue Feb 11, 2021 · 3 comments

Comments

@spsaucier-bakkt
Copy link

spsaucier-bakkt commented Feb 11, 2021

When calling codepush_logout (with no arguments), I get the following error:

/usr/local/lib/ruby/gems/2.7.0/gems/fastlane-plugin-codepush-0.2.1/lib/fastlane/plugin/codepush/actions/codepush_logout_action.rb:7:in `run': \e[31m[!] wrong number of arguments (given 1, expected 0)\e[0m (ArgumentError)

For now, I've removed this call, as it doesn't seem necessary to the flow for most actions.

@Pranit-Harekar
Copy link
Owner

Pranit-Harekar commented Apr 17, 2021

@spsaucier-bakkt codepush_logout doesn't expect any arguments but seems like you have passed one. Refer to sample fastfile

also docs:
https://github.com/Pranit-Harekar/fastlane-plugin-codepush/wiki#2-codepush_logout

@elliotmrodriguez
Copy link

Confirming I am also able to reproduce this behavior. Not passing any args, just calling codepush_logout.

I can see there's no arg:

But the error persists. Also circumvented by just using sh action.

@dungle-groove
Copy link

dungle-groove commented Feb 10, 2023

I needed to add the params as same as the action login and it worked fine. It might be a workaround for now.
Screenshot 2023-02-10 at 20 32 05

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

4 participants