Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #1177

Closed
Open
Created Jul 31, 2012 by Administrator@rootOwner

HTTP 500 due to NoMethodError on .clj file

Created by: mattwillsher

When browsing to http://192.168.0.24/scotam-data-api/master/tree/src/scotam/data_api/db.clj we get the following error in the production.log and the code isn't displayed as expected:

Started GET "/scotam-data-api/master/logs_tree/src/scotam/data_api/db.clj?_=1343738601473" for 127.0.0.1 at 2012-07-31 13:43:20 +0100
Processing by RefsController#logs_tree as JS
  Parameters: {"_"=>"1343738601473", "project_id"=>"scotam-data-api", "id"=>"master", "path"=>"src/scotam/data_api/db.clj"}
Completed 500 Internal Server Error in 23ms

NoMethodError (undefined method `contents' for #<Grit::Blob "dbb860e8c07b758f18b2882875d34b33d75a8b29">):
  app/models/tree.rb:5:in `contents'
  app/controllers/refs_controller.rb:50:in `logs_tree'
Assignee
Assign to
Time tracking