Connecting to any of the IGDB endpoints via RUBY

Hey all, I’m trying to connect to any of the endpoints in RUBY for IGDB(https://api-docs.igdb.com/#endpoints), but I keep getting the same error, despite having keys:
Traceback (most recent call last):
9: from Test2.rb:8:in <main>' 8: from C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:1483:in request’
7: from C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:932:in start' 6: from C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:943:in do_start’
5: from C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:958:in connect' 4: from C:/Ruby27-x64/lib/ruby/2.7.0/timeout.rb:105:in timeout’
3: from C:/Ruby27-x64/lib/ruby/2.7.0/timeout.rb:95:in block in timeout' 2: from C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:960:in block in connect’
1: from C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:960:in open' C:/Ruby27-x64/lib/ruby/2.7.0/net/http.rb:960:in initialize’: getaddrinfo: No such host is known. (SocketError)
Thanks in advance.