User id is always IP address
See original GitHub issueI’m experimenting with Bugsnag, and loving it so far.
I’m hitting an annoyance, when adding user
metadata to my exception - my user ID is being ignored, and the default IP address is always being used instead.
I’m using the standard user metadata like:
user: {
id: '6',
email: 'test@example.com',
name: 'testy mctestington'
}
Things I’ve tried:
- deleting all of my error events, and logging again
- ensuring that
id
is cast to a string - switching from
bugsnag-2.min.js
tobugsnag-3.min.js
Issue Analytics
- State:
- Created 7 years ago
- Comments:20 (2 by maintainers)
Top Results From Across the Web
Use the user ID instead of IP address for anonymous user ...
1 Answer 1 ... I just added a salt to the IP address hashing, we have no user id to go by for...
Read more >User-ID™ Tie users and groups to your security policies
The user identity, as opposed to an IP address, is an integral component of your security infrastructure. Knowing which who is using each...
Read more >User-ID Overview - Palo Alto Networks
The user identity, as opposed to an IP address, is an integral component of an effective security infrastructure. ... Knowing who is using...
Read more >The IP Address: Your Internet Identity
The IP address is personally identifiable information that is automatically captured by another computer when any communications link is made over the Internet....
Read more >IP2User -- Identifying the Username of an IP Address in ...
The identifier of a user in most cases is the user's organizational username. While events are always logged with the source IP address...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@nihp what platform are you using? React Native? If so, then the automatically captured data for Android and for iOS is probably what you are looking for. In Android, the User ID and Device ID are set to a randomly generated UUID which Bugsnag uses to identify the individual application on a device. In iOS, the Device ID is a hash of device and app specific data. The dSYM UUIDs are not generated by Bugsnag. These will be generated by Apple and are used to uniquely identify the dSYMs needed for your application version.
If you have further questions on this, please write in to support@bugsnag.com.
Oh, this is because the user is not metadata. You need to set the user rather than putting it in metadata. The metadata is a different field on the payload.