Skip to content

User feedback is not captured with versions older than 3.2.0 #2180

Closed

Description

@pdyatlov

Environment

How did you install the package? (Git-URL, Assetstore)
add package

Which version of Unity?
6000.0.47f1

Is this happening in Unity (editor) or on a player like Android, iOS, Windows?
Editor + build

Steps to Reproduce

  1. Install sentry package older than 3.2.0 (3.1.0 and lower)
  2. Use SentrySdk.CaptureUserFeedback (instead of CaptureFeedback)

Expected Result

Expected the feedback to be captured even though the API is obsolete

Actual Result

The feedback was not captured

Any logs or screenshots

event id generated fine: d4ef896322344d0fac8dd2b68e84424f

var eventId = SentrySdk.CaptureMessage($"[{userName}] says:");
SentrySdk.CaptureUserFeedback(eventId, $"{header} | {_inputField.text}", "email", userName);

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 29, 2025
  2. bruno-garcia commented on May 30, 2025

    @bruno-garcia
    Member

    does sentry show the error but no feedback linked?

    there's also no feedback if you in the feedback page itself?

    could you share your org slug so I can check the stats for dropped data?

    cc @jamescrosswell @Flash0ver could the addition of the new api have broken the old?

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 30, 2025
  4. pdyatlov commented on May 30, 2025

    @pdyatlov
    Author

    does sentry show the error but no feedback linked?

    No error. The event goes out just fine, but does not appear on my Sentry dashboard

    there's also no feedback if you in the feedback page itself?

    Sending feedback from 3.2.0 and the new API works. When I rollback to 3.1.0 and use CaptureUserFeedback from the same spot in code, it stops working

    could you share your org slug so I can check the stats for dropped data?

    white-ink, 4507232060243968

  5. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 30, 2025
  6. bruno-garcia commented on May 30, 2025

    @bruno-garcia
    Member

    That's odd, looking at:

    There were no changes to CaptureUserFeedback and the tests are still there and passing. I'll test it out locally.

  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 30, 2025
  8. bruno-garcia commented on May 30, 2025

    @bruno-garcia
    Member

    Tested with a CLI on .NET and it worked:

    var eventId = SentrySdk.CaptureMessage("An event that will receive user feedback.");
    SentrySdk.CaptureUserFeedback(eventId, "user@example.com", "It broke.", "The User");
    

    Image

    Image

    Could you share a repro? Not sure what could be going wrong there

  9. pdyatlov commented on May 30, 2025

    @pdyatlov
    Author

    I just double and triple checked with both a build and editor.

    3.1.0, after a feedback is sent (SendUserFeedback)

    Image

    3.2.0, after a feedback is sent (obsolete SendUserFeedback)

    Image

    3.2.0, after a feedback is sent (SendFeedback)

    Anonymous - Steam logged off
    Paul Dy - Steam logged in

    Image

    That's what I call when the game starts, maybe that affects it somehow?

    SentrySdk.Init(options =>
    {
        options.Dsn = "https://40b714a992cbe1e7a9~4268@o4507232060243968.ingest.de.sentry.io/450723~24";
    
        options.SendDefaultPii = true;
        options.AutoSessionTracking = true;
        options.IsGlobalModeEnabled = true;
        options.TracesSampleRate = 0.1f;
    });
    
    SentrySdk.StartSession();
    
  10. 11 remaining items

  11. pdyatlov commented on May 30, 2025

    @pdyatlov
    Author

    I attached it to my original message with the bug report,

    var eventId = SentrySdk.CaptureMessage($"[{userName}] says:");
    SentrySdk.CaptureUserFeedback(eventId, $"{header} | {_inputField.text}", "email", userName);
    
  12. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 30, 2025
  13. bruno-garcia commented on May 30, 2025

    @bruno-garcia
    Member

    I attached it to my original message with the bug report,

    Oh, my bad.

    I can reproduce this now but doesn't seem to be related to the version.
    It seems like we expect the email to be a valid email (at least have a @ and . in my tests).
    And the order of the arguments here are important. Where you have $"{header} | {_inputField.text}" is actually the email field on the old API. And where you have "email", it's the comments.

    // Doesn't work
    // SentrySdk.CaptureUserFeedback(eventId, $"header | _inputField.text", "email", userName);
    
    // But this works
    SentrySdk.CaptureUserFeedback(eventId, "user@example.com", $"header | _inputField.text", userName);
    

    Doesn't matter the version on my tests.

  14. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 30, 2025
  15. pdyatlov commented on May 30, 2025

    @pdyatlov
    Author

    Okay, I see. Thanks for helping me with figuring it out!

    In the new API it's message - email. In the old one it's email - message.
    I was researching the 3.2.2 crash, and had to switch versions back and forth.

    Would be nice to see an error, like "wrong email format"

  16. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on May 30, 2025
  17. bruno-garcia commented on May 30, 2025

    @bruno-garcia
    Member

    yeah we changed the order of the args then and didn't realize this is easy to mix up. A debug message makes sense. cc @jamescrosswell might be a quick win (!contains(@) just a best effort thing

  18. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on May 30, 2025
  19. bruno-garcia commented on Jul 17, 2025

    @bruno-garcia
    Member

    Some updates, we replaced the email validation, so feedback with invalid email wont' be dropped anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions