fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps
https://fastlane.tools
MIT License
39.47k stars 5.69k forks source link

ConnectAPI::TestFlight::API.get_builds() fails due to include not being supported by API #21104

Open mdgeist opened 1 year ago

mdgeist commented 1 year ago

New Issue Checklist

Issue Description

I was going over the connect api implementation and while testing in Spaceship playground tried using get_builds https://github.com/fastlane/fastlane/blob/3b937c0ef9370b5b18dbdae4c83089af31e540d0/spaceship/lib/spaceship/connect_api/testflight/testflight.rb#L428

When I used it I got the following error:

[13] pry(#<Spaceship::Playground>)> builds = client.get_builds()
Spaceship::UnexpectedResponse: A parameter has an invalid value - 'betaBuildMetrics' is not a valid relationship name

Checking Apple's api spec it looks like you can't have betaBuildMetrics as an include: image https://developer.apple.com/documentation/appstoreconnectapi/read_build_information?changes=latest_minor

Command executed

Did this in the Spaceship playground.

fastlane-bot commented 1 year ago

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env :+1: