phlegx / redmine_gitlab_hook

This plugin allows you to update your local Git repositories in Redmine when changes have been pushed to GitLab.
MIT License
218 stars 73 forks source link

Error HTTP 404 #51

Closed stefan0704 closed 1 year ago

stefan0704 commented 4 years ago

Hello, so i installed this plugin on my redmine server, but when i make a test on the weebhook, it returns me:

Hook executed successfully but returned HTTP 404 <!DOCTYPE html> Redmine 404 error

Page not found

The page you were trying to access doesn't exist or has been removed.

Back

If you can help me i will apreciate it.

Thanks

mtwango commented 4 years ago

Yeah, having the same problem here. I think it has something to do with API key, since URL without 'key' parameter is giving proper 403. RM version 4.0.6.stable redmine_gitlab_hook 4.0.0

mtwango commented 4 years ago

I was actually pretty stupid. First of all, I was calling it with GET instead of post and then I hadnt enough parameters in POST. I was calling it with repository_name only and not project_id, so calling {redmine_installation_url}/gitlab_hook?key={redmine_repository_API_key}&project_id={redmine_project_identifier}&repository_name={repository_name} solved if ror me.