1 Reply Latest reply on Feb 3, 2014 11:27 AM by Aslak Knutsen

    "awestruct -d" shows blank page when .github_auth file is not given in arquillian.github.com project

    Takayuki Konishi Newbie

      I think github.rb should fail when auth_file is not given and output the usage.

      Current error message is not so straightforward:

       

      $ awestruct -d
      Using profile: development
      Generating site: http://localhost:4242
      Fetching https://api.github.com/orgs/arquillian/repos
      While processing file
      
      An error occurred: 401 Unauthorized
      
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/1.9.1/net/http.rb:746:in `start'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
      /Users/taka/sources/github/leathersole/arquillian.github.com/_ext/restclient_extensions.rb:49:in `execute'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/rest-client-1.6.7/lib/restclient.rb:68:in `get'
      /Users/taka/sources/github/leathersole/arquillian.github.com/_ext/repository.rb:146:in `block in execute'
      /Users/taka/sources/github/leathersole/arquillian.github.com/_ext/repository.rb:139:in `each'
      /Users/taka/sources/github/leathersole/arquillian.github.com/_ext/repository.rb:139:in `execute'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/pipeline.rb:37:in `block in execute_extensions'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/pipeline.rb:36:in `each'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/pipeline.rb:36:in `execute_extensions'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/pipeline.rb:32:in `execute'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/engine.rb:235:in `execute_pipeline'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/engine.rb:66:in `run'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/cli/generate.rb:21:in `run'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/cli/invoker.rb:104:in `invoke_generate'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/lib/awestruct/cli/invoker.rb:47:in `invoke!'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/gems/awestruct-0.5.4.rc3/bin/awestruct:9:in `<top (required)>'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/bin/awestruct:23:in `load'
      /Users/taka/.rbenv/versions/1.9.3-p484/lib/ruby/gems/1.9.1/bin/awestruct:23:in `<main>'
      
      

       

      Even if  the message shown, I can access to localhost:4242. It's just a blank page.