You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just installed semaphore-status via RubyGems a few minutes ago, and after setting my authentication token, I get the following error when running sst:
$ sst
/usr/lib/ruby/2.2.0/open-uri.rb:224:in `open_loop': redirection forbidden: https://semaphoreapp.com/api/v1/projects?auth_token=NOTATOKEN -> http://semaphoreci.com/api/v1/projects?auth_token=NOTATOKEN (RuntimeError)
from /usr/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
from /usr/lib/ruby/2.2.0/open-uri.rb:716:in `open'
from /usr/lib/ruby/2.2.0/open-uri.rb:34:in `open'
from /home/cmh/.gem/ruby/2.2.0/gems/semaphore-status-0.0.2/lib/semaphore-status.rb:14:in `initialize'
from /home/cmh/.gem/ruby/2.2.0/gems/semaphore-status-0.0.2/bin/sst:64:in `new'
from /home/cmh/.gem/ruby/2.2.0/gems/semaphore-status-0.0.2/bin/sst:64:in `get_projects'
from /home/cmh/.gem/ruby/2.2.0/gems/semaphore-status-0.0.2/bin/sst:120:in `<top (required)>'
from /home/cmh/.gem/ruby/2.2.0/bin/sst:23:in `load'
from /home/cmh/.gem/ruby/2.2.0/bin/sst:23:in `<main>'
It appears that open-uri does not appreciate the redirect.
Changing the value of SemaphoreClient::API_URL from https://semaphoreapp.com/api/v1/projects?auth_token= to https://semaphoreci.com/api/v1/projects?auth_token= resolves the issue.
Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I just installed
semaphore-status
via RubyGems a few minutes ago, and after setting my authentication token, I get the following error when runningsst
:It appears that
open-uri
does not appreciate the redirect.Changing the value of
SemaphoreClient::API_URL
fromhttps://semaphoreapp.com/api/v1/projects?auth_token=
tohttps://semaphoreci.com/api/v1/projects?auth_token=
resolves the issue.Thanks!
The text was updated successfully, but these errors were encountered: