Skip to content
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

Script error: Browser exception message not providing information type and method #363 #1562

Merged
merged 1 commit into from
May 24, 2021

Conversation

MSNev
Copy link
Collaborator

@MSNev MSNev commented May 7, 2021

No description provided.

@MSNev MSNev added this to the 2.x.x (Next) milestone May 7, 2021
@@ -0,0 +1,24 @@
import { ITypeValidator } from './ITypeValidator';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Effectively copied from AISKU to the shared framework -- I didn't refactor the AISKU tests to use the framework as part of this PR as this is already larger than I'd like.

@@ -7,7 +7,7 @@
"summary": "Run all tests for all packages",
"description": "Runs tests for all projects",
"safeForSimultaneousRushProcesses": false,
"enableParallelism": true,
"enableParallelism": false,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of changing the tests to run via http:// instead of file:// we can only have 1 http server running on the test port.

<link rel="stylesheet" href="../../../../common//Tests//External/qunit-1.23.1.css">
<script src="../../../../common/Tests/Selenium/ExceptionHelper.js"></script>
<!-- <script src="http://sinonjs.org/releases/sinon-2.3.8.js" crossorigin="anonymous"></script> -->
<script src="../../../../common/Tests/External/sinon-7.3.1.js"></script> -->
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use local copies rather than relying on external site.

connect: {
server: {
options: {
port: 9001,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using port 9001 (mainly so it doesn't clash with internal project extensions -- so I can run multiple project tests at the same time)

@@ -4,7 +4,7 @@
import { Envelope as AIEnvelope } from '../../Interfaces/Contracts/Generated/Envelope';
import { Base } from '../../Interfaces/Contracts/Generated/Base';
import { IEnvelope } from '../../Interfaces/Telemetry/IEnvelope';
import { DataSanitizer } from './DataSanitizer';
import { dataSanitizeString } from './DataSanitizer';
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Refactored the DataSanitize static class for minification improvements.

@MSNev MSNev force-pushed the MSNev/UpdateErrorReporting branch from ab216a7 to 30203dc Compare May 7, 2021 19:32
exception = e;
this._ai.trackException({ exception: autoTelemetry });
} catch (e) {
console.log(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is this console.log intentional?

const exceptionDetailsConverted = _ExceptionDetails.CreateFromInterface(this.logger, exceptionDetailsInterface);
Assert.deepEqual(exceptionDetails, exceptionDetailsConverted);
} catch (e) {
console.log(e.stack);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is this intentional?

@MSNev MSNev merged commit 56fc74f into master May 24, 2021
@MSNev MSNev deleted the MSNev/UpdateErrorReporting branch June 25, 2021 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants