OS:
_Platform:_
Output of node -v && npm -v && npm ls --prod --depth=0
v8.10.0
5.7.1
Config:
Sentry.config('馃攽').install()
I have following issue:
Tha app fails when tries to set extra data for a user inside user's context object (setUserContext) or directly extra context (setUserContext)
The App doesn't send JavaScript Exception to JS Engine
Error:
2018-03-27 16:19:54.483105+0300 AppName[45067:4432257] [User Defaults] Attempt to set a non-property-list object {
status = Approved;
...
2018-03-27 16:19:54.485246+0300 AppName[45067:4432257] Exception 'Attempt to insert non-property list object {
status = Approved;
...
for key sentry.io.extra' was thrown while invoking setExtra on target RNSentry with params (
{
status = ...
2018-03-27 16:19:54.497 [info][tid:com.facebook.react.JavaScript]
Steps to reproduce:
Sentry.setUserContext({id: ..., extra: {...}}) or Sentry.setExtraContext({...})Actual result:
Expected result:
Hi there, I just edited this for you. Try not to post your DSN on GitHub.
Hey, sorry for the late reply.
Please make sure the data you pass in is JSON compatible containing only primitive types.
I am not able to reproduce this issue for me this is working fine:
Sentry.setUserContext({
email: '[email protected]',
userID: '12341',
username: 'username',
extra: {
is_admin: false
}
});
Please feel free to reopen this issue if you are still having troubles.
Most helpful comment
Hi there, I just edited this for you. Try not to post your DSN on GitHub.