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
  • #1205

Closed
Open
Created Aug 08, 2012 by Administrator@rootOwner

System Hooks not firing

Created by: mrenigma

Hi All,

I have been testing out system hooks as a possible way of linking Gitlab's events to another database on the server but the system hook is not firing.

The system hook works when testing using the "test" button, as well as when I fire the PHP script on its own but does not work when for instance a project is created.

I have used http://requestb.in as well to see if it was my script but the exact same thing occurs, were it only works when clicking the test button.

I read within this forum that you need to use $HTTP_RAW_POST_DATA to receive the JSON string of data and this works well when testing but no results otherwise, the data is received using the following:

$phpInput = file_get_contents("php://input"); $postData = (!empty($phpInput)) ? $phpInput : $HTTP_RAW_POST_DATA;

Is anyone else having this issue with Gitlab 2.7 and is there a possible solution to this?

Many Thanks, MrEnigma

Assignee
Assign to
Time tracking