shr3jn/fastlane-plugin-huawei_appgallery_connect

crash on upload

Closed this issue · 7 comments

bundler: failed to load command: fastlane (/usr/local/bin/fastlane)
NoMethodError: [!] undefined method `[]' for nil:NilClass
  /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-huawei_appgallery_connect-1.0.15/lib/fastlane/plugin/huawei_appgallery_connect/helper/huawei_appgallery_connect_helper.rb:151:in `upload_app'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-plugin-huawei_appgallery_connect-1.0.15/lib/fastlane/plugin/huawei_appgallery_connect/actions/huawei_appgallery_connect_action.rb:18:in `run'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.176.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
  /Library/Ruby/Gems/2.6.0/gems/fastlane-2.176.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'

@shr3jn is there a possibility you can take a look at this

ok will check this!!

can you post your FastFile?

lane :huawei do
        gradle(
            task: "bundleThemeReaderBook"
        )
        AAB_LOCATION = "#{lane_context[SharedValues::GRADLE_AAB_OUTPUT_PATH]}"
        huawei_appgallery_connect(
            client_id: "<redacted>",
            client_secret: "<redacted>",
            app_id: "<redacted>",
            apk_path: AAB_LOCATION,


            # Optional, Parameter beyond this are optional
            #submit_for_review: false,
            #privacy_policy_url: "https://example.com",
            #changelog_path: "<PATH_TO_CHANGELOG_FILE>",

            # release time to release app on specific date
            #release_time: "2019-12-25T07:05:15+0000",

            # For phase wise release: set these parameters
            #phase_wise_release: true,
            #phase_release_start_time: "2019-12-25T07:05:15+0000",
            #phase_release_end_time: "2019-12-28T07:05:15+0000",
            #phase_release_percent: "10.00",
            #phase_release_description: "<DESCRIPTION>"
        )
    end

have u tried locally by giving a direct file path ?

This was working fine, but it stopped working. Do you think its maybe the file path? FWIW, this file path works for other lanes

not able to reproduce issue. closing for now.