Skip to content

Feature Request - More Error Reporting for Error "Object Not Found Matching Id" #4209

Closed

Description

@indeediansbrett

Describe the solution you'd like
In JavascriptObjectRespitory there's an error thrown that says "Object Not Found Matching Id: objectId". We get this error on our Datadog logs, but have no idea what .net app that it came from or whom to contact regarding the issue. Is there any way to add additional context to the error? It would appear the user of this library is unregistering an object before it should be unregistered.

return new TryCallMethodResult(false, result, "Object Not Found Matching Id:" + objectId);

Describe alternatives you've considered
This is what we get on our end in Datadog, so really have next to little information to go off of:

Uncaught "Object Not Found Matching Id:6"
No stack, consider using an instance of Error

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. amaitland commented on Aug 16, 2022

    @amaitland
    Member

    You could easily add the method name and param count to the error message. Your welcome to submit a Pull Request.

  2. added
    Good First Issue
    on Aug 16, 2022
  3. indeediansbrett commented on Aug 16, 2022

    @indeediansbrett
    Author

    Is there anything else we can add? Basically have people running our website inside their .net app, but we have no idea what .net app is running it. So we have zero traceability on how to prevent users from experiencing an error.

  4. added this to the 105.3.x milestone on Aug 21, 2022
  5. amaitland commented on Aug 21, 2022

    @amaitland
    Member

    Providing details of the host application may have unforeseen security implications. For now adding method name and param count should help developers track errors.

    I'd suggest trying to obtain a call stack for the error from your logging tool.

  6. added a commit that references this issue on Mar 21, 2024
    2ead423
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

    Good First Issuefeature-requestup-for-grabs

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions