Allow submitting of user feedback via server-side clients

For example, the raven-python should have a method that lets you submit user feedback.

This would be useful in applications that do not want a hard dependency on sentry and thus already have their own error reporting functionality. When using Sentry this would allow to simply attach the user’s feedback (entered in a dialog provided by our application) to the sentry event instead of sending an email.

Name and email should actually be optional there (maybe in the client-side version too, ideally configurable), as user feedback is valuable even from someone anonymous.

This.

Is it possible with the java client?

I’m trying to do this with a C# application right now, the following code throws a 405 Method not allowed exception though:

    SentrySdk.Init(o =>
    {
        o.Dsn = new Dsn("https://XYZ@sentry.io/XYZ");
        o.Release = "1.0.0.0";
    });
    SentrySdk.ConfigureScope(scope => scope.User = new User {Username = Environment.UserDomainName + "\\" + Environment.UserName});
    SentrySdk.AddBreadcrumb("Initialized Sentry.io");
    
    var id = SentryId.Empty;
    try
    {
        int i = 0;
        int a = i / 0;
    }
    catch (Exception ex)
    {
        id = SentrySdk.CaptureException(ex);
    }

    var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://sentry.io/api/0/projects/XYZ/XYZ/user-feedback/");
    httpWebRequest.ContentType = "application/json";
    httpWebRequest.Method = "POST";
    httpWebRequest.Headers.Add(HttpRequestHeader.Authorization, "XYZ");

    using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))
    {
        string json = "{\"event_id\":\"" + id + "\"," +
                      "\"comments\":\"bla\"," +
                      "\"email\":\"test@test.com\"," +
                      "\"name\":\"somename\"}";

        streamWriter.Write(json);
    }

    var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
    using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))
    {
        var result = streamReader.ReadToEnd();
    }

    SentrySdk.AddBreadcrumb("EOC");

Any Ideas?