Open kassi opened 6 months ago
I've got the same issue. Crashes here
Net::HTTP.start(uri.host, uri.port, net_http_options) do |http
As I see it, the problem is that uri.host
== api.appstoreconnect.apple.com
which may relate to absence of http//
like here https://stackoverflow.com/questions/67367905/not-an-http-uri
But if I change this line to a valid https://api.appstoreconnect.apple.com
string it still crashes with Failed to open TCP connection to https://api.appstoreconnect.apple.com/v1/apps: (getaddrinfo: nodename nor servname provided, or not known)
so I guess it's more complicated error than I described)
👋 Thanks for reporting this. I was able to reproduce this using 0.38.0 from rubygems.org. It seems to be working as expected when using git main
:
require 'bundler/inline'
gemfile do
source 'https://rubygems.org'
gem 'app_store_connect', github: 'kyledecot/app_store_connect@main'
end
require 'app_store_connect'
AppStoreConnect.config = {
issuer_id: ENV["XCC_ISSUER_ID"],
key_id: ENV["XCC_PRIVATE_KEY_ID"],
private_key: ENV["XCC_PRIVATE_KEY"]
}
client = AppStoreConnect::Client.new
pp client.apps
Let me know if this fixes your issue and if so I'll release a new version of the gem.
Specified in Gemfile and updated, but still facing same issue.
Describe the bug Followed the
README.md
and of course filled in env variables. The call (and every other method I call on
client
) results inExpected behavior Code should list all apps and not break.
Desktop (please complete the following information):
Additional context I tried to debug until
generic_request.rb
and the uri that is passed is an instance ofURI::Generic
. I added the following intogeneric_request.rb
at line 17:and the result is
which is somehow strange and I wonder how this will ever work.
I appreciate every clue on what's going on here.