Skip to content

Conversation

@tustanivsky
Copy link
Collaborator

When fetching Sentry events, the API may return JSON with empty property names causing its conversion to fail and return raw strings instead of parsed objects.

Here's an example non-fatal Unreal event with the following empty properties:

"_meta":{
  "debug_meta":{
    "images":{
      "98":{"debug_id":{"":{"err":["missing_attribute"]}}},
      "99":{"debug_id":{"":{"err":["missing_attribute"]}}}
    }
  }
}

Related to getsentry/sentry-unreal#1127 where this issue originally came up. Unreal SDK currently relies on its custom Get-SentryTestEvent implementation which includes a check for empty property names.

@tustanivsky tustanivsky requested a review from vaind October 29, 2025 17:36
@vaind
Copy link
Collaborator

vaind commented Oct 29, 2025

The problem is in the use of Invoke-RestMethod - I think we should parse manually: #12

@tustanivsky
Copy link
Collaborator Author

Closing this in favor of #12

@vaind vaind deleted the fix/json-empty-props branch October 30, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants