Comments (10)
My code closely resembles yours.
## Initialize the latest_internal_build_number with a default value of 0
latest_internal_build_number = 0
## Attempt to fetch the internal test build numbers. If target track is not created, then an error appeared.
begin
latest_internal_build_numbers = google_play_track_version_codes(
package_name: ENV['BUNDLE_ID'],
track: "internal"
)
# Update the latest version number if successfully retrieved
latest_internal_build_number = latest_internal_build_numbers.max unless latest_internal_build_numbers.empty?
rescue StandardError => e
puts "An error occurred: #{e.message} while fetching the latest internal build number"
end
options[:latest_internal_build_number] = latest_internal_build_number.to_s
As you mentioned, the fundamental solution should be to fix client.rb.
from fastlane.
@trinitiwowka I saw another PR almost related to this one, still awaiting review. The best possible solution for now is to try catching a StandardError as @ivan901229 mentioned and continue.
def self.latest_build_number
tracks = ["internal", "alpha", "beta", "production"]
version_codes = []
tracks.each do |track|
begin
vc = google_play_track_version_codes(track: track)
rescue
puts "No track found for " + track
else
version_codes.concat(vc)
end
end
version_codes.max
end
from fastlane.
Constant problems with this code to determine the version.
If such a "track" is not created, then an error appeared.
I found solution with this code, and it worked:
lane :get_google_play_track_version_codes do |options|
track_version_codes = [0]
begin
track_version_codes = google_play_track_version_codes(
package_name: options[:package_name],
track: options[:track],
json_key: options[:json_key],
)
rescue => gptvcError
if (gptvcError.class != Google::Apis::ClientError || gptvcError.status_code != 404)
raise gptvcError
end
end
track_version_codes
end
But now the error is completely different. and it is reproduced in both 2.213.0 and 2.214.0
from fastlane.
this worked for me:
lane :get_google_play_track_version_codes do |options|
track_version_codes = []
track_version_codes
end
from fastlane.
But my solution worked perfectly for almost a year. and a couple broke in all my projects a few days ago.
from fastlane.
I found solution. In this line
fastlane/supply/lib/supply/client.rb
Line 477 in 871eb67
just add
releases = result.releases || []
return releases.flat_map(&:version_codes) || []
from fastlane.
I'm encountering the same issue as well and currently using a begin-rescue-end block to handle error.
from fastlane.
I'm encountering the same issue as well and currently using a begin-rescue-end block to handle error.
can you show example please?
from fastlane.
@joshdholtz Hey guys, any progress on this?
from fastlane.
Hi I have this problem and it happens when the track version is configured like this:
When requesting beta in this situation you get the error above.
I've verified this in last version: 2.216.0
from fastlane.
Related Issues (20)
- display_name value is not working as expected if i add special character reference inside it.
- bundled ox breaks bundle console
- Code Signing of iOS IPA is very unreliable on GitLab CI/CD HOT 2
- [spaceship] fails when user doesn't have a team on App Store Connect HOT 1
- Missing ffi library in tests on Ruby 3.1 on Windows HOT 1
- "fastlane snapshot reset_simulators" no longer deletes simulators HOT 1
- fastlane does not like GCS buckets with manually created folders HOT 3
- [iOS] deliver action error | altool - Unable to upload archive | Failed to generate JWT token HOT 2
- Can't upload screenshot by deliver: An exception occurred for locale: en-US. Check the screenshot requirements here HOT 3
- Failed to open TCP connection to www.googleapis.com:443 HOT 1
- Unexpected token when using appstore connect api key as json file
- Deliver fails to create a new app version on App Store Connect HOT 26
- testflight Action Fails with Error -1010 on CI/Jenkins After Updating to Xcode 15 HOT 1
- REOPEN - Create_app_online services not working
- Fastlane match failing to create profile for OneSignalNotificationServiceExtension
- Assistance Needed with Jira Action Method Error in Fastlane HOT 2
- Keyword argument default value doesn't seem to work HOT 3
- SPACESHIP_2FA_SMS_DEFAULT_PHONE_NUMBER not recognizing phone numbers with codes +371, +372, +48
- Weird error in test output since #21677
- git log -50 --pretty=oneline --abbrev-commit shows only 1 commit message instead of 50 on GitHub Action
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastlane.