nov / apple_id

Sign in with Apple backend library in Ruby
https://rubygems.org/gems/apple_id
MIT License
198 stars 23 forks source link

RuntimeError (No Host Info) #7

Closed bw7432 closed 4 years ago

bw7432 commented 4 years ago

When I call response = client.access_token!, I get RuntimeError (No Host Info). Could someone give me some pointers here?

nov commented 4 years ago

Could you give me reproducible code? Such error shouldn't happen when you're following this pattern. https://github.com/nov/apple_id/wiki/Client

petrbela commented 4 years ago

I believe the client should be instantiated with AppleID::Client.new rather than Rack::OAuth2::Client.new.

I don't seem to be able to fix the wiki; @nov can you correct it pls?

nov commented 4 years ago

Ah, you are right. I've fixed the doc, thanks!