pull-request-notifier-for-bitbucket
pull-request-notifier-for-bitbucket copied to clipboard
Getting "message": "null for uri:" when trying to create a notification using REST API
When trying to create a new notification using the REST API, I'm getting "message": "null for uri:".
I'm following the readme which says that the notification can be created and modified using the REST API. Using the following curl command:
curl -u admin:admin 'http://localhost:7990/bitbucket/rest/prnfb-admin/1.0/settings/notifications' -H 'Content-Type: application/json; charset=UTF-8' -H 'Accept: application/json, text/javascript, /; q=0.01' --data-binary '{"uuid":"","name":"","projectKey":"","repositorySlug":"","filterString":"","filterRegexp":"","triggers":["COMMENTED"],"injectionUrl":"","injectionUrlRegexp":"","user":"","password":"","proxyUser":"","proxyPassword":"","proxyServer":"","proxyPort":"","url":"http://localhost:80/?abc","method":"GET","postContent":"","headers":[{"name":"","value":""}]}'
I have substituted the username, password, and the bitbucket URL according to my configs but still getting the error.
Something similar supported here: https://jira.atlassian.com/browse/BSERV-10138
https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/321