Issue #3 open

Redmine 500 Internal Server Error.

Anonymous created an issue

Ciao Alessio,

I'm trying to install the hook and I'm getting into some problem. I succesfully installed the plugin, restarted redmine and it currently sees it.

Configured a project and linked to a local clone of a bitbucket repository which just works fine. Manual commits and pushes are showed correctly on redmine.

When I try to manually go to http://www.myserver.it/redmine/bitbucket_hook I receive a 500 error and this is what shows up on my logs

{{{

!ruby

Processing BitbucketHookController#index (for xxx.xxx.xxx.xxx at 2011-09-26 22:36:00) [GET] Parameters: {"action"=>"index", "controller"=>"bitbucket_hook"}

TypeError (can't convert nil into String): json (1.5.1) lib/json/common.rb:148:in initialize' json (1.5.1) lib/json/common.rb:148:innew' json (1.5.1) lib/json/common.rb:148:in parse' vendor/plugins/nolith-redmine-bitbucket/app/controllers/bitbucket_hook_controller.rb:8:inindex' config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /opt/redmine-1.2.1-1/apps/redmine/public/500.html (500 Internal Server Error) }}}

Any clues?

Thank you

Comments (6)

  1. Anonymous

    NVM it works when triggered by the POST...

    Just one thing, It does not fully works because my repo is private. Where do I put in the credentials?

    Thank you

  2. Anonymous

    I think I partially solved it. Now it communicates correctly with bitbucket and sends the command right away. The problem is that it does not update the repo. It just pulls it. Think I might add a line on the code like {{{

    1. !bash

    && hg update }}}.

  3. Citeck LLC

    I'm update the tip, but no results, i receive a 500 Error. My log: TypeError (can't convert nil into String): json (1.7.6) lib/json/common.rb:155:in initialize' json (1.7.6) lib/json/common.rb:155:innew' json (1.7.6) lib/json/common.rb:155:in `parse'

    Any ideas? Thanks!

  4. Log in to comment