question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User id is always IP address

See original GitHub issue

I’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 to bugsnag-3.min.js

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:20 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
phillipsamcommented, Oct 11, 2019

@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.

1reaction
GrahamCampbellcommented, Aug 8, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found