github / github/platform-samples

Errors during running find-inactive-members.rb and no output

Đang mở
#303 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Shell
Star
2.2k
Fork
1.9k
Merge trung bình
7 ngày 19 giờ
Pull request đã merge (30 ngày)
1

Mô tả

I try to run the ruby script find-inactive-members.rb, but I get no output at all !
When I debug the ruby script I can see several errors.
Checking the syntax is OK

I also want to know what is the right syntax for the --date parameter?

ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
gem env version
2.7.6

I am running on windows wsl ubuntu 18.04.4 LTS (Bionic Beaver)

When I run ruby -v -d find-inactive-members.rb -cv -o kadaster-it -d 03/12/2020
I see the following output:

ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems.rb:1397 - cannot load such file -- rubygems/defaults/ruby
find-inactive-members.rb:85: warning: assigned but unused variable - email
find-inactive-members.rb:230: warning: mismatched indentations at 'end' with 'def' at 191
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().pos=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().sync=
^
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- octokit
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().scheme=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().host=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().port=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().path=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().scheme=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().host=
^
Exception `SyntaxError' at /usr/lib/ruby/2.5.0/forwardable/impl.rb:6 - : syntax error, unexpected end-of-input
().port=
^
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- idn
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- idn
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- idn
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- idn
Application client/secret?
Authentication Token? true
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- yajl
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- yajl
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59 - cannot load such file -- multi_json
Exception `LoadError' at /usr/local/lib/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:137 - cannot load such file -- multi_json
Using Ext extension for JSON.
I, [2020-03-13T14:22:10.797362 #5942] INFO -- request: GET https://api.github.com/user
I, [2020-03-13T14:22:10.797645 #5942] INFO -- request: Accept: "application/vnd.github.v3+json"
User-Agent: "Octokit Ruby Gem 4.17.0"
Content-Type: "application/json"
Authorization: "token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
I, [2020-03-13T14:22:11.358629 #5942] INFO -- response: Status 200
I, [2020-03-13T14:22:11.359097 #5942] INFO -- response: date: "Fri, 13 Mar 2020 13:22:09 GMT"
content-type: "application/json; charset=utf-8"
transfer-encoding: "chunked"
connection: "close"
server: "GitHub.com"
status: "200 OK"
x-ratelimit-limit: "5000"
x-ratelimit-remaining: "4994"
x-ratelimit-reset: "1584107606"
cache-control: "private, max-age=60, s-maxage=60"
vary: "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding, Accept, X-Requested-With"
etag: "W/\"1ba9f7f769f4ec84d8167b574fc80a6e\""
last-modified: "Tue, 10 Mar 2020 10:52:49 GMT"
x-oauth-scopes: "admin:enterprise, admin:org, admin:public_key, delete_repo, gist, notifications, read:packages, repo, user, write:packages"
x-accepted-oauth-scopes: ""
x-github-media-type: "github.v3; format=json"
access-control-expose-headers: "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"
access-control-allow-origin: "*"
strict-transport-security: "max-age=31536000; includeSubdomains; preload"
x-frame-options: "deny"
x-content-type-options: "nosniff"
x-xss-protection: "1; mode=block"
referrer-policy: "origin-when-cross-origin, strict-origin-when-cross-origin"
content-security-policy: "default-src 'none'"
x-github-request-id: "3F28:6581:2D6FCE8:3575709:5E6B8900"
Scopes: admin:enterprise,admin:org,admin:public_key,delete_repo,gist,notifications,read:packages,repo,user,write:packages
I, [2020-03-13T14:22:11.373147 #5942] INFO -- request: GET https://api.github.com/rate_limit
I, [2020-03-13T14:22:11.373349 #5942] INFO -- request: Accept: "application/vnd.github.v3+json"
User-Agent: "Octokit Ruby Gem 4.17.0"
Content-Type: "application/json"
Authorization: "token xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
I, [2020-03-13T14:22:11.860253 #5942] INFO -- response: Status 200
I, [2020-03-13T14:22:11.860849 #5942] INFO -- response: date: "Fri, 13 Mar 2020 13:22:09 GMT"
content-type: "application/json; charset=utf-8"
transfer-encoding: "chunked"
connection: "close"
server: "GitHub.com"
status: "200 OK"
x-ratelimit-limit: "5000"
x-ratelimit-remaining: "4994"
x-ratelimit-reset: "1584107606"
cache-control: "no-cache"
x-oauth-scopes: "admin:enterprise, admin:org, admin:public_key, delete_repo, gist, notifications, read:packages, repo, user, write:packages"
x-accepted-oauth-scopes: ""
x-github-media-type: "github.v3; format=json"
access-control-expose-headers: "ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset"
access-control-allow-origin: "*"
strict-transport-security: "max-age=31536000; includeSubdomains; preload"
x-frame-options: "deny"
x-content-type-options: "nosniff"
x-xss-protection: "1; mode=block"
referrer-policy: "origin-when-cross-origin, strict-origin-when-cross-origin"
content-security-policy: "default-src 'none'"
vary: "Accept-Encoding, Accept, X-Requested-With"
x-github-request-id: "DD47:2AC70:192F26E:1D87A8C:5E6B8901"
Rate limit: 4994/5000

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.