SiarheiFedartsou / fastlane-plugin-versioning

Extends fastlane versioning actions. Allows to set/get versions without using agvtool and do some other small tricks.
MIT License
511 stars 63 forks source link

get_app_store_version_number returns Unexpected status code from iTunes Search API error #105

Open josej14 opened 2 hours ago

josej14 commented 2 hours ago

Since 10/31/2024 get_app_store_version_number is being rejected with Unexpected status code from iTunes Search API error.

After some debugging I get that apple has moved its API to a secure https URL, so all requests to http://itunes.apple.com/lookup... are being redirected to https://itunes.apple.com/lookup... resolving with a 302 HTTP response.

However, get_app_store_version_number action is not handling this error status to perform a new request to the redirect URL provided on the HTTP response.

LOG: ------------------------------------------ LOG: --- Step: get_app_store_version_number --- LOG: ------------------------------------------ LOG: Response code: 302 LOG: Status code 302 received. Redirecting to new url. LOG: Redirecting to: https://itunes.apple.com/lookup?bundleId=&rand=d3e75c21-3f6b-493d-8670-7a756b588b1f

josej14 commented 2 hours ago

I'll open a PR with a possible workaround for this issue. I'd appreciate feedback from other devs on it. Also, if someone can confirm that you are getting the same error it'd be awesome. Thanks!

josej14 commented 2 hours ago

Opened #106 to fix this issue (cc @SiarheiFedartsou)