pull-request-notifier-for-bitbucket icon indicating copy to clipboard operation
pull-request-notifier-for-bitbucket copied to clipboard

Getting "message": "null for uri:" when trying to create a notification using REST API

Open nosherwanijaz opened this issue 5 years ago • 2 comments

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.

nosherwanijaz avatar Apr 17 '19 12:04 nosherwanijaz

Something similar supported here: https://jira.atlassian.com/browse/BSERV-10138

nosherwanijaz avatar Apr 17 '19 12:04 nosherwanijaz

https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/issues/321

tomasbjerre avatar Apr 17 '19 16:04 tomasbjerre