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.

v7 collectUserIP missing?

See original GitHub issue

I’m upgrading to v7 and I’m getting a type error on collectUserIP

import Bugsnag from '@bugsnag/js';
import BugsnagPluginReact from '@bugsnag/plugin-react';
Bugsnag.start({
  appType: 'client',
  appVersion: GIT_SHA,
  apiKey: BUGSNAG_KEY,
  autoDetectErrors: true,
  releaseStage: ENVIRONMENT,
  enabledReleaseStages: ['prod', 'qa', 'active'],
  collectUserIp: false,
  redactedKeys: [/token/i, /password/i, /name/i, /email/i, /phone/i],
  plugins: [new BugsnagPluginReact(React)],
});
Argument of type '{ appType: string; appVersion: string; apiKey: string; autoDetectErrors: true; releaseStage: string; enabledReleaseStages: string[]; collectUserIp: boolean; redactedKeys: RegExp[]; plugins: BugsnagPluginReact[]; }' is not assignable to parameter of type 'string | Config'.
  Object literal may only specify known properties, and 'collectUserIp' does not exist in type 'Config'.ts(2345)

The Definition for config appears to be at node_modules/@bugsnag/browser/dist/types/bugsnag-core/common.d.ts

Was collectUserIP removed as an option? if so is there a suggested way to migrate?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
derduhercommented, May 12, 2020

Thank you!

1reaction
phillipsamcommented, May 11, 2020

@derduher thanks! Looks like we have missed an update in our changes for v7. This should be start instead of init: https://github.com/bugsnag/bugsnag-js/blob/47fbd9ed3d9aaf2c03ad61dd0289f536ea25341e/packages/js/types.d.ts#L5 We will look at getting this fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bugsnag-js/CHANGELOG.md at next - GitHub
Fix missing configuration.user and manually resumed session info in unhandled errors. bugsnag-cocoa#1215; Disable automatic session tracking ...
Read more >
@bugsnag/delivery-node: Versions | Openbase
Fix a regression where OOM events were missing session information. ... (expo-cli): Ensure version detection logic for @bugsnag/expo works after v7.0.0 #865 ...
Read more >
@bugsnag/js 7.10.5 on Node.js Yarn - NewReleases.io
New release @bugsnag/js version 7.10.5 v7.10.5 on Node.js Yarn. ... User ID now defaults to device.id if no user is set (when collectUserIp=false...
Read more >
Falcon Sandbox v8.30 © Hybrid Analysis
Endpoint Request URL 23.253.194.100:80 GET 23.253.194.100/ 23.253.194.100:80 (www.americanpest.net) GET www.americanpest.net/
Read more >
bugsnag Changelog - PyUp.io
(react-native) Fixed missing files when installing react-native ... User ID now defaults to `device.id` if no user is set (when `collectUserIp=false`) ...
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