Closed elviin closed 5 years ago
It seems like this issue might be related to code signing :no_entry_sign:
Have you seen our new Code Signing Troubleshooting Guide? It will help you resolve the most common code signing issues :+1:
I had the same issue often in alternation with this issue #12704
I also have observed that pilot's changelog is not updated when this error occurs but the build is in Testflight uploaded and processed. It has started to appear after WWDC, before there was no such error.
I guess it happens when two or more jobs on circle CI are running in parallel.
The binary is successfully uploaded, but not submitted to beta tests.
The issue has started to appear in May already: https://blog.iota.org/trinity-mobile-beta-release-c47e8babdc28
I have contacted Apple and the support responded that:
"As far as I am aware, there is no limit to how many apps you can upload in App Store Connect. Regarding the frequency of the uploads, simply for material reasons there could be a limit, but I couldn’t advise on this as this is speculation. "
I have also contacted CircleCi. Maybe there have some proxy or balancing tool that could cause this. (Update: no it is just Apple related)
It looks like the users of the Testflight app also can see that error, so it comes from Apple's API: https://www.reddit.com/r/TheSilphRoad/comments/8ux7lx/app_download_error_ios/
we also have to open tab Testflight in ITConnect web-interface in order to get new build in Testflight mobile app in iOS
@alexs555 Please report it to Apple. There are some people having issues with the user notifications: the test users are not notified before the developer visits the testflight tab in the browser. Really strange.
@elviin I already did it.
Got an answer:
Engineering has determined that your bug report is a duplicate of another issue and will be closed. The open or closed status of the original report your bug was duplicated to appears in a text box within the bug detail section of the bug reporter user interface. For security and privacy reasons, we don't provide access to the original bug yours was duped to.
Actually, the original bug is still open
I am experiencing this for Spaceship. Attempting to use the clean_testflight_testers. I assume it is having issues getting all testflight users.
@jamesmontemagno Please report it to Apple. Otherwise they will not pay enough attention to this issue. I'm struggling to get from Apple the information why this message comes from their app (Testflight, itunes transporter). They do not acknowledge that because I use tools like Fastlane, Circle.
I tried again this morning and was able to run my query, however when I tried to run it for a second time I got the same thing :( will have to wait until tomorrow.
@jamesmontemagno To me it looks like a random event. Just try it for the third/fourth time. How many builds have you uploaded in your version in the Testflight? How many appstore app profiles are you managing with the apple id account?
We have a few dozen builds. We have about 9000 beta testers though and that is where it was getting caught up at.
@jamesmontemagno I am trying to understand the reasons for the rate limits. If that is related to the number of testers/builds/managed accounts.
It was when I called: Spaceship::TestFlight::Tester.all(app_id: app_id)
I have made a workaround for that, but it is not a proper solution:
I have added the error handling:
begin
pilot(...)
rescue => pilotError
# code that deals with some errors
print "[ERROR]: #{pilotError.message}\n"
print pilotError.backtrace.join("\n\t")
# The following error symptoms are not breaking the upload to the Tesftlight
errorSymptoms = ["HTTP ERROR: 403", "Error 403", "Rate limit has been exceeded for:", "description length:"]
# Does the message contain any of the symptoms?
selected = errorSymptoms.select do |symptom| pilotError.message.include?(symptom) end
if(selected.count.positive?)
# The error is not breaking the build. Notify the testers and try to upload
# the symbols to sentry.
# continue with reporting/symbol uploading etc
end
# The error is severe. Do not try to upload the symbols or to report it
# to the testers.
else
# do something that can run only if there is no error
# continue with reporting/symbol uploading etc
end
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Still an issue
-- Keith Smiley
On Aug 25, 2018, at 10:32, fastlane bot notifications@github.com wrote:
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Experienced this today after fastlane was trying to set the Provisioning Profile, build did not upload to iTunes connect. It is not uncommon for our once daily cron jobs in travis to fail once a week due to this, but it is uncommon a manual build fails for this reason. We do not have tons of beta tester, profiles, concurrent builds <3, etc.
Fastlane version: 2.79.0
/Users/travis/.rvm/gems/ruby-2.4.3/gems/fastlane-2.79.0/spaceship/lib/spaceship/test_flight/client.rb:287:in `handle_response': [31m[!] Rate limit has been exceeded for: testflight|default|APPLE_CONNECT:10464547290 (Spaceship::UnexpectedResponse)
Saw this today with 2.104.0 as well
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Still getting this
Failed due to this reason just today: Rate limit has been exceeded for: testflight|default|APPLE_CONNECT[0m
https://github.com/fastlane/fastlane/issues/12845
ring, ring, is this thing on? I get this like every day when I'm trying to deploy a build to apple.
Every time I run fastlane (2.107.0) right now I run into this error:
[09:56:28]: All required keys, certificates and provisioning profiles are installed 🙌
[09:56:28]: Setting Provisioning Profile type to 'app-store'
[09:56:29]: -------------------
[09:56:29]: --- Step: is_ci ---
[09:56:29]: -------------------
+------------------------------------+---------------------------------------------------+
| Lane Context |
+------------------------------------+---------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios deploy |
| SIGH_PROFILE_TYPE | app-store |
| MATCH_PROVISIONING_PROFILE_MAPPING | {"<redacted>"=>"match AppStore <redacted>"} |
+------------------------------------+---------------------------------------------------+
[09:56:29]: Rate limit has been exceeded for: testflight|default|APPLE_CONNECT:10464547290
+------+----------------------------+-------------+
| fastlane summary |
+------+----------------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------------+-------------+
| 1 | Verifying fastlane version | 0 |
| 2 | default_platform | 0 |
| 3 | is_ci | 0 |
| 4 | match | 2 |
| 5 | is_ci | 0 |
+------+----------------------------+-------------+
[09:56:29]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ Rate limit has been exceeded for: testflight|default|APPLE_CONNECT
https://github.com/fastlane/fastlane/issues/12845 [open] 23 💬
15 hours ago
🔗 You can ⌘ + double-click on links to open them directly in your browser.
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/client.rb:330:in `handle_response': [!] Rate limit has been exceeded for: testflight|default|APPLE_CONNECT:10464547290 (Spaceship::UnexpectedResponse)
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/client.rb:31:in `get_build_trains'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/build_trains.rb:16:in `all'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/build.rb:108:in `all'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/build.rb:119:in `all_processing_builds'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/tunes/application.rb:321:in `all_processing_builds'
from Fastfile:81:in `fetch_latest_build_version'
from Fastfile:97:in `next_version_and_build_number'
from Fastfile:56:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/bin/fastlane:23:in `<top (required)>'
from /Users/bricepollock/.gem/ruby/2.3.0/bin/fastlane:22:in `load'
from /Users/bricepollock/.gem/ruby/2.3.0/bin/fastlane:22:in `<main>'
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Still an issue in latest version
As @elviin said above, this error is coming from Apple's server in a pretty unexpected way as there doesn't seem to be any specific reason to hit the rate limiting. So there is no real way to fix this (yet).
One thing I am not clear about yet, what exactly are the negative results of this happening? @elviin mentioned the testflight release notes not being uploaded, anything else?
@bpollock-vida What is the Fastfile
being executed in https://github.com/fastlane/fastlane/issues/12845#issuecomment-433474967? It seems is_ci
is successful, and then something causes the testflight rate limiting which makes no real sense as there should be no additional action executed, correct?
In the background spaceship
, our library for communication with Apple's servers, is handling the requests to Apple's servers, including the ones for Testflight.
It would be helpful if you could check your spaceship logfiles or even create a Charles session of the traffic when this occurs (Send them to piotrowski@gmail.com and mention this issue if you don't just want to post them publicly here, which makes a lot of sense...)
If we collect some of those log files or Charles sessions, we will be able to understand better what spaceship is doing before you all get this error. This could enable us to maybe identify the culprit and fix it - and at least allow us to implement a better error message.
Hey @janpio I'm glad someone has finally responded.
The affect is my scheduled daily builds on travis can fail 50% of the days of the week some weeks. It also means for a period of time that can exceed 30min I may be unable to deploy with my current script (even locally) and will have to modify my fast file to ignore the offending fastlane operations to unblock.
There is one simple solution that would be to try to implement a retry and backoff, although if this happens regularly over a long window that might not be effective.
The offender that hits the rate limiting is at the top of the backtrace in 'all_processing_builds'.
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/client.rb:330:in `handle_response': [!] Rate limit has been exceeded for: testflight|default|APPLE_CONNECT:10464547290 (Spaceship::UnexpectedResponse)
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/client.rb:31:in `get_build_trains'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/build_trains.rb:16:in `all'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/build.rb:108:in `all'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/test_flight/build.rb:119:in `all_processing_builds'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.107.0/spaceship/lib/spaceship/tunes/application.rb:321:in `all_processing_builds'
from Fastfile:81:in `fetch_latest_build_version'
from Fastfile:97:in `next_version_and_build_number'
Code:
def fetch_latest_build_version
Spaceship::Tunes.login("<redacted>")
app = Spaceship::Tunes::Application.find('<redacted>')
processing_builds = app.all_processing_builds
processed_builds = app.builds
most_recent_build = (processing_builds + processed_builds).sort_by {|build| build.upload_date}.last
latest_version = Versionomy.parse(most_recent_build.train_version)
latest_build_number = latest_testflight_build_number(version: latest_version.to_s)
return latest_version, latest_build_number
end
@bpollock-vida So this fetch_latest_build_version
is executed after is_ci
and then failing? What are you doing with these 2 numbers so it can fail a build? What is the significance of this "a period of time that can exceed 30min"? Is access blocked so long?
There is one simple solution that would be to try to implement a retry and backoff, although if this happens regularly over a long window that might not be effective.
Does anyone know how long the rate limiting is in effect? Because we could catch this response from Testflight and handle it - but the question is how. If the effect stays for ~30 minutes, a retry of course won't work.
Anyone know the significance of the value after APPLE_CONNECT:
?
The most useful thing here really would be spaceship logs or a Charles session, so we can really understand what is causing the rate limiting: https://github.com/fastlane/fastlane/issues/12845#issuecomment-444164180
_So this fetch_latest_build_version is executed after isci and then failing? is_ci is the lane we use for our travis deploys. On execution, we call the fetch_latest_build_version function to get prior build information so we can increment the build and/or version. Apple does not allow duplicate uploads of the same build-version combination so this is a requirement for automatic builds.
What are you doing with these 2 numbers so it can fail a build? If you look at the stack trace and code, it is the 'all_processing_builds' method on the fastlane supplied spaceship 'app' that throws an error that fails the build. It does not appear to be my specific Fastfile.
What is the significance of this "a period of time that can exceed 30min"? Is access blocked so long? This is my anecdotal description of the behavior I've observed. Yes, access can be blocked for a long time.
Because we could catch this response from Testflight and handle it Definitely one thing that can be done is provide better logging in or from Spaceship so we get an actionable error message with more information.
I will try to capture the spaceship logs when experiencing this failure.
I know what actual code is crashing.
But the method all_processing_builds
mentioned there one only appears because the "hey, you can't make more requests because you triggered the rate limiting" response does not output a nice error message yet. I can add this handling in a few minutes - but the only thing I can make it say is "no idea why this happened, but you are rate limited now. try again in half an hour or so.". And that is not helpful at all. So I won't do that before we don't have more information.
That is why I want to know what your lane is doing before it fails for this request. Something has to make your account go over this rate limit on Apple's server.
Spaceship logging with 2.109.x should be pretty extensive, but a Charles Web Proxy session would still be better as it contains a lot more information (logging compete http requests to a flat file unfortunately doesn't scale very well),
Attached the relevant code, however, let me provide a summary:
Since there is very little happening before the spaceship call, it must be match that is querying so much to produce the rate limiting?
We run the 'test' lane on every build, one other thought is if 'scan' somehow is hitting apple servers that would build up a lot more requests than match happening once daily before the build version request. However, I don't see any evidence that is happening.
Test code:
desc "Runs all the tests"
lane :test do
scan(
workspace: "<redacted>.xcworkspace",
scheme: "<redacted>",
devices: ["iPhone 6"],
clean: true,
formatter: "./fastlane/xcpretty_formatter.rb"
)
end
Deploy Code:
# travis calls...
fastlane deploy
# ...our deploy lane:
desc "Build and deploy to both Testflight and Crashlytics"
desc "Also ensures an up to date provisioning profile for crashlytics"
lane :deploy do |options|
version, build_number = next_version_and_build_number(options)
deploy_testflight
deploy_crashlytics
app_version = "v#{version.to_s}-#{build_number}"
add_git_tag(tag: app_version)
push_git_tags
slack(
slack_url: "<redacted>",
message: "Successfully deployed iOS to Testflight and Crashlytics",
channel: "<redacted>",
success: true,
payload: {
'Version' => "v#{version.to_s} (#{build_number})",
"Build Date" => Time.new.to_s,
"Branch" => git_branch
},
default_payloads: [:last_git_commit_hash]
)
end
# Must be logged in with a match profile
# NOTE: On travis we hit the else case in this function
def next_version_and_build_number(options = nil)
if options[:version_number]
next_version = options[:version_number]
next_build_number = (options[:build_number] ? options[:build_number] : 1)
else
ci_match_helper(type: "appstore")
next_version, latest_build_number = fetch_latest_build_version
next_build_number = latest_build_number + 1
if should_bump_version
next_version = next_version.bump(:tiny)
next_build_number = 1
end
end
increment_version_number(version_number: next_version.to_s)
increment_build_number(build_number: next_build_number)
return next_version, next_build_number
end
def ci_match_helper(**params)
if is_ci
match(**params, keychain_name: <redacted>)
end
match(**params)
end
def fetch_latest_build_version
Spaceship::Tunes.login("<redacted>")
app = Spaceship::Tunes::Application.find('<redacted>')
processing_builds = app.all_processing_builds
processed_builds = app.builds
most_recent_build = (processing_builds + processed_builds).sort_by {|build| build.upload_date}.last
latest_version = Versionomy.parse(most_recent_build.train_version)
latest_build_number = latest_testflight_build_number(version: latest_version.to_s)
return latest_version, latest_build_number
end
Thanks. That really doesn't look like anything should trigger any relevant requests here. What is match
doing according to your output? Usually it should be happy with the certificates from the git repo and just install those, right?
scan
doesn't hit any APIs at all, and match
talks to the Apple Developer Portal, not App Store Connect where Testflight lives - so different APIs.
When you hit the rate limiting, you can still run match
afterwards, right?
Only commands that are Testflight related will trigger the error, correct?
We will need to see some spaceship logs to be able to understand what is going on here: https://github.com/fastlane/fastlane/issues/12845#issuecomment-444164180 Both for understanding what is causing this and implementing proper error handling.
Looking at the logging I captured above, it looks like match says everything is cool: [09:56:28]: All required keys, certificates and provisioning profiles are installed 🙌 [09:56:28]: Setting Provisioning Profile type to 'app-store'
When you hit the rate limiting, you can still run match afterwards, right? Only commands that are Testflight related will trigger the error, correct? Yeah its just the getting the build version details where we fail every time.
We are trying to set it up so we can capture these spaceship logs more easily when we see this issue. Will update when we capture them. Unless one of the many others experiencing this issue can help and post theirs. :)
We were able to get spaceship logs today and pursued some investigation. We ruled out that our 'sort_by' function was the causing the problem and narrowed it down to #all_processing_builds and #builds.
There appears to be several challenges:
Spaceship solution:
A work around:
Going from your erroring log, we are talking about ~140 requests in ~2 minutes. Hm, that is certainly a lot, but also not a DDoS. Let's see what all the other people in this issue will report back.
Now to your specific problem:
Unless I am mistaken app.all_processing_builds
is a just a filtered subset of app.builds
:
https://github.com/fastlane/fastlane/blob/cd88359fa9b6772f91a31a290f8f3c790a716dc0/spaceship/lib/spaceship/tunes/application.rb#L320-L322
https://github.com/fastlane/fastlane/blob/cd88359fa9b6772f91a31a290f8f3c790a716dc0/spaceship/lib/spaceship/tunes/application.rb#L350-L354
https://github.com/fastlane/fastlane/blob/cd88359fa9b6772f91a31a290f8f3c790a716dc0/spaceship/lib/spaceship/test_flight/build.rb#L118-L120
https://github.com/fastlane/fastlane/blob/cd88359fa9b6772f91a31a290f8f3c790a716dc0/spaceship/lib/spaceship/test_flight/build.rb#L107-L110
Also, latest
(used as Spaceship::TestFlight::Build.latest(app_id: app_id, platform: platform)
) might be what you actually want in your Fastfile
:
https://github.com/fastlane/fastlane/blob/cd88359fa9b6772f91a31a290f8f3c790a716dc0/spaceship/lib/spaceship/test_flight/build.rb#L127-L129
(But again, this is just from a short look - we should possibly split this discussion in a new issue if we want to continue that.)
Better question: How should we handle this timeout? Now, with a log in hand, I created #13841 to implement proper error handling. But right now I don't really know what we could do about it. Please go to the issue #13841 and post your suggestions!
Code does look like builds returns all unfiltered, going to give that a shot to move from 2N to N calls. Looks like documentation could have helped here to understand how the build functions work.
Still, if I call that method too fast though (3x in 3-4 min), I'll run into the rate limiting. I doubt Spaceship::TestFlight::Build.latest will create less requests.
Is there a way I can catch this error from spaceship? being-rescue doesn't seem to work because Spaceship is another process?
Feel free to submit a PR to spaceship documentation.
Spaceship is normal ruby code used like everything else. Nothing special in there (afaik).
Ah, here is the documentation that says it is all processed builds: https://www.rubydoc.info/gems/spaceship/Spaceship/Tunes/Application
Get all builds that are already processed for all build trains You can either use the return value (array) or pass a block.
That is for spaceship 1.0.0 which is 2 years old: https://rubygems.org/gems/spaceship/versions/1.0.0 Spaceship is not updated as a standalone package any more.
Is there any documentation for spaceship anymore?
Can we expose Spaceship::TestFlight::Client.get_build_trains(
https://github.com/fastlane/fastlane/tree/master/spaceship + https://github.com/fastlane/fastlane/tree/master/spaceship/docs
For your other question, please best open a new issue. I don't want to spam all those poor participants here with further discussion about this - but it is a good thing to solve.
I don't think this is spamming. There has been no solution for this issue yet in this thread.
The only provided methods (all or latest) make 1 request for all trains and then 1 request for each train (N) which can still lead to rate limiting if you run fast lane too quickly (even 10+ minutes apart).
The only true solution I've seen yet is to expose the spaceship function to get all trains (Spaceship::TestFlight::Client.get_build_trains()) without also getting build info for each train (N).
Not everybody here using the same spaceship methods as you are. The discussion here is about how to handle the testflight|default|APPLE_CONNECT
problem in general. One of the underlying problems might be that some methods create a lot of requests and could be built in a different way - if that is the case, please create a new issue for this specific problem in the code.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest fastlane
version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
There is still no solution in latest version. Still getting this error
@DavidWiesner can you provide the same details I have by capturing spaceship logs or code. That way we can see if the same fast lane code is generating this issue for you. My work around was to only call one builds method to reduce the call overhead.
i.e. just calling
processed_builds = app.builds
whereas before I called
processing_builds = app.all_processing_builds
processed_builds = app.builds
I am also getting this error - Message: Rate limit has been exceeded for: itunes-connect|nonauth_url_spamControl|<my_ip_address>
I am trying to get a list of all users and their permissions using Spaceship
all_users = Spaceship::Tunes::Members.all
user = all_users[0] # for example
account_permissions = {}
account_permissions[:name] = teamname
account_permissions[:islive] = !user.not_accepted_invitation
account_permissions[:permissions] = user.roles
account_permissions[:apps] = user.has_all_apps ? ["all"] : user.selected_apps.map { |a| a.name if !a.nil? }
account_permissions[:lastupdated] = Time.now.strftime("%Y-%m-%d")
My code gets the details for first 15 or so users, and fails after with the above error message. Was able to find this information - https://stackoverflow.com/a/41377650/1946418; but not sure how true that is. The number seems too low?
This is my Fastlane's version - fastlane 2.113.0
@scorpion35 You are the first person to report the Rate limit has been exceeded for: itunes-connect|...
error message here - so this is something different than what the original issue is about. Please create a new issue. Thank you.
New Issue Checklist
Issue Description
From time to time I get an error: Rate limit has been exceeded for: testflight|default|APPLE_CONNECT:11807886017
But the application is successfully uploaded to Testflight anyway.
My apple account is used for several appstoreconnect teams and this issues happens almost randomly with different CircleCI builds.
Complete output when running fastlane, including the stack trace and command used
Environment
🚫 fastlane environment 🚫
### Stack | Key | Value | | --------------------------- | ------------------------------------------- | | OS | 10.13.5 | | Ruby | 2.4.1 | | Bundler? | true | | Git | git version 2.15.1 | | Installation Source | ~/.rvm/gems/ruby-2.4.1/bin/fastlane | | Host | Mac OS X 10.13.5 (17F77) | | Ruby Lib Dir | ~/.rvm/rubies/ruby-2.4.1/lib | | OpenSSL Version | OpenSSL 1.1.0g 2 Nov 2017 | | Is contained | false | | Is homebrew | false | | Is installed via Fabric.app | false | | Xcode Path | /Applications/Xcode.app/Contents/Developer/ | | Xcode Version | 9.4 | ### System Locale | Variable | Value | | | -------- | ----------- | - | | LANG | en_US.UTF-8 | ✅ | | LC_ALL | en_US.UTF-8 | ✅ | | LANGUAGE | | | ### fastlane files:`./fastlane/Fastfile`