-
Notifications
You must be signed in to change notification settings - Fork 16.2k
Pass uploadToServer
option to windows crash reporter
#9053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
1add065
to
681e4d2
Compare
lib/common/api/crash-reporter.js
Outdated
throw new Error('submitURL is a required option to crashReporter.start') | ||
} else { | ||
// use a dummy upload URL | ||
submitURL = 'http://dummy/upload/url' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, so if you call start with uploadToServer
with false
and no submitURL
and then later call setUploadToServer(true)
and then get a crash, you'll see your machine make a request to this URL right?
Would an empty submit URL be possible to use instead? Or does that cause issues somewhere else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
later call setUploadToServer(true) and then get a crash, you'll see your machine make a request to this URL right
Yes, I considered using http://localhost
but it is possible that the user has a local http server.
681e4d2
to
67d92ef
Compare
67d92ef
to
460fb9c
Compare
Thanks for adding support for this @tarruda 👍 🏁 |
Just got a flaky looking failure here on AppVeyor:
https://ci.appveyor.com/project/electron-bot/electron/build/244/job/rp59bmb2epvvbh52#L1518 Perhaps we should use |
The file is deleted is to ensure the crash dump is created(and not uploaded), my guess is that the crash reporter was still writing to the file when In any case, I think it is better to not depend on |
Note that
get/setUploadToServer
is not implemented because the CustomInfo structure is only set whenstart
is called, so to change the value ofuploadToServer
the user needs to callstart
again(which is how it already works for most options).