pact_broker: Unable to run pact_broker locally on OSX

On macOS Sierra and ruby 2.4, I’m getting

bundler: failed to load command: rackup (/usr/local/bin/rackup)
ArgumentError: wrong number of arguments (given 0, expected 1+)
  /usr/local/lib/ruby/gems/2.4.0/gems/reform-1.2.6/lib/reform/representer.rb:72:in `include'
  /usr/local/lib/ruby/gems/2.4.0/gems/reform-1.2.6/lib/reform/representer.rb:72:in `block in build_inline'
  /usr/local/lib/ruby/gems/2.4.0/gems/reform-1.2.6/lib/reform/representer.rb:71:in `initialize'
  /usr/local/lib/ruby/gems/2.4.0/gems/reform-1.2.6/lib/reform/representer.rb:71:in `new'
  /usr/local/lib/ruby/gems/2.4.0/gems/reform-1.2.6/lib/reform/representer.rb:71:in `build_inline'
  /usr/local/lib/ruby/gems/2.4.0/gems/representable-2.1.8/lib/representable/declarative.rb:79:in `inline_representer_for' 
...
	from /Users/jeff/Documents/Blend/pact_broker/example/config.ru:21:in `new'
	from /Users/jeff/Documents/Blend/pact_broker/example/config.ru:21:in `block in <main>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/builder.rb:55:in `instance_eval'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/builder.rb:55:in `initialize'
	from /Users/jeff/Documents/Blend/pact_broker/example/config.ru:in `new'
	from /Users/jeff/Documents/Blend/pact_broker/example/config.ru:in `<main>'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/builder.rb:49:in `eval'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/builder.rb:49:in `new_from_string'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/builder.rb:40:in `parse_file'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/server.rb:299:in `build_app_and_options_from_config'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/server.rb:208:in `app'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/server.rb:336:in `wrapped_app'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/server.rb:272:in `start'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/lib/rack/server.rb:147:in `start'
	from /usr/local/lib/ruby/gems/2.4.0/gems/rack-1.6.5/bin/rackup:4:in `<top (required)>'
	from /usr/local/bin/rackup:22:in `load'
	from /usr/local/bin/rackup:22:in `<main>'

when I run bundle exec rackup -p 4321 from the example/ directory

  • Tried latest bundler as well as 1.13.0
  • Tried removing all gems and reinstalling

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 22 (17 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks, nevermind I have opened a pact broker account so I’ll check that out instead.

Thanks

On Mon, Nov 19, 2018 at 9:59 PM Beth Skurrie notifications@github.com wrote:

Do you have docker? I’d recommend using the pact broker docker container. I can’t fix your ruby issues remotely, and if you’re not a ruby user, you’ll just be banging your head against a brick wall.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pact-foundation/pact_broker/issues/78#issuecomment-440039747, or mute the thread https://github.com/notifications/unsubscribe-auth/AMNICqliw-gfxFpgrxhIG0vRRiztBySEks5uwxvEgaJpZM4LwWsF .