mgryszko / strava-access-token

Generate Strava API OAuth2 access token for testing
1 stars 1 forks source link

Cannot generate access token: "Server handler (thin,puma,reel,HTTP,webrick) not found. (RuntimeError)" #1

Closed nicokosi closed 3 years ago

nicokosi commented 3 years ago

I cannot generate an access token:

strava-access-token $STRAVA_CLIENT_ID $STRAVA_CLIENT_SECRET
Open http://localhost:8080/ in browser
/usr/local/lib/ruby/gems/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1755:in `detect_rack_handler': Server handler (thin,puma,reel,HTTP,webrick) not found. (RuntimeError)
    from /usr/local/lib/ruby/gems/3.0.0/gems/sinatra-2.1.0/lib/sinatra/base.rb:1493:in `run!'
    from /usr/local/bin/strava-access-token:51:in `<main>'

For information (not sure if useful 😇):

ruby --version
ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin19]
nicokosi commented 3 years ago

Error does not occur when using Ruby 2.7:

$ rbenv local 2.7.2
$ rbenv version
2.7.2 (set by /Users/nicolas/work/strava-access-token/.ruby-version)
$ rbenv exec ruby strava-access-token $STRAVA_CLIENT_ID $STRAVA_CLIENT_SECRET
Open http://localhost:8080/ in browser
[2021-01-26 19:01:28] INFO  WEBrick 1.6.0
[2021-01-26 19:01:28] INFO  ruby 2.7.2 (2020-10-01) [x86_64-darwin19]
== Sinatra (v2.1.0) has taken the stage on 8080 for development with backup from WEBrick
[2021-01-26 19:01:28] INFO  WEBrick::HTTPServer#start: pid=69723 port=8080
mgryszko commented 3 years ago

Hi @nicokosi, thanks for checking that this tiny tool is still working. I understand that the issue is solved - I merged your documentation update.

nicokosi commented 3 years ago

Hi @nicokosi, thanks for checking that this tiny tool is still working. I understand that the issue is solved - I merged your documentation update.

Hi @mgryszko, thanks. 👍 For information, I use strava-access-token for my own tiny tool (toy project): https://github.com/nicokosi/strava-activity-graphs#usage. ❤️