I am calling the circle.so api using ruby on a rails on a code that I got from postman.
require "uri"
require "net/http"
url = URI("hub.atlas.fm/api/v1/community_members")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["Authorization"] = "phdbM12mVAiEyLF19UjoYdiU"
response = http.request(request)
puts response.read_body
While working perfectly in postman, It does not work on my app, with an error of
ArgumentError in TopicsController#index
not an HTTP URI
How do I solve this?