Skip to content
Open
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def run(self) -> dict[str, Any]:
)

raise SentryAppIntegratorError(
message=f"Issue occured while trying to contact {self.sentry_app.slug} to link issue",
message=f"Issue occurred while trying to contact {self.sentry_app.slug} to link issue",
webhook_context={"error_type": BAD_RESPONSE_HALT_REASON, **extras},
status_code=500,
)
Expand Down
4 changes: 2 additions & 2 deletions src/sentry/sentry_apps/utils/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __repr__(self) -> str:
return f"{type(self).__name__}: message={self.message} status_code={self.status_code} error_type={self.error_type}"


# Represents a user/client error that occured during a Sentry App process
# Represents a user/client error that occurred during a Sentry App process
class SentryAppError(SentryAppBaseError):
error_type = SentryAppErrorType.CLIENT
status_code = 400
Expand All @@ -71,7 +71,7 @@ class SentryAppSentryError(SentryAppBaseError):
def to_public_dict(self) -> SentryAppPublicErrorBody:
error_id = sentry_sdk.capture_exception(self, level="info")
return {
"detail": f"An issue occured during the integration platform process. Sentry error ID: {error_id}"
"detail": f"An issue occurred during the integration platform process. Sentry error ID: {error_id}"
}

def response_from_exception(self) -> Response:
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/templates/sentry/js-sdk-loader.js.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
(queueIsFunction(item) && item.f.indexOf('capture') > -1) ||
(queueIsFunction(item) && item.f.indexOf('showReportDialog') > -1))) {
// We only want to lazy inject/load the sdk bundle if
// an error or promise rejection occured
// an error or promise rejection occurred
// OR someone called `capture...` on the SDK
injectCDNScriptTag();
}
Expand Down
2 changes: 1 addition & 1 deletion src/sentry/templates/sentry/js-sdk-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ declare const __LOADER__IS_LAZY__: any;
(queueIsFunction(item) && item.f.indexOf('showReportDialog') > -1))
) {
// We only want to lazy inject/load the sdk bundle if
// an error or promise rejection occured
// an error or promise rejection occurred
// OR someone called `capture...` on the SDK
injectCDNScriptTag();
}
Expand Down
2 changes: 1 addition & 1 deletion static/app/views/insights/crons/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export interface CheckIn {
*/
environment: string;
/**
* What was the monitors nextCheckIn value when this check-in occured, this
* What was the monitors nextCheckIn value when this check-in occurred, this
* is when we expected the check-in to happen. May be null for the very first check-in.
*/
expectedTime: string | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function getErrorMessage(
switch (errorType) {
case StatusCheckErrorType.INTEGRATION_ERROR:
return t(
'An error occured with the %s integration. Please ensure the Sentry app is installed, has the required permissions, and that the organization has accepted any updated permissions.',
'An error occurred with the %s integration. Please ensure the Sentry app is installed, has the required permissions, and that the organization has accepted any updated permissions.',
providerName
);
case StatusCheckErrorType.API_ERROR:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function UpgradeNowModal({
<Header>{t('Get to the root cause of an error faster')}</Header>
<p>
{t(
'Enable video-like reproduction of your user sessions so you can see what happened before, during and after an error or performance issue occured.'
'Enable video-like reproduction of your user sessions so you can see what happened before, during and after an error or performance issue occurred.'
)}
</p>
<CTAPanel>
Expand Down
2 changes: 1 addition & 1 deletion tests/sentry/sentry_apps/api/bases/test_sentryapps.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,5 +264,5 @@ def test_handle_sentry_app_sentry_error(self) -> None:

assert response.status_code == 500
assert response.data == {
"detail": f"An issue occured during the integration platform process. Sentry error ID: {None}"
"detail": f"An issue occurred during the integration platform process. Sentry error ID: {None}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_external_issue_doesnt_get_created(self) -> None:
assert response.status_code == 500
assert (
response.content
== b'{"detail":"Issue occured while trying to contact testin to link issue"}'
== b'{"detail":"Issue occurred while trying to contact testin to link issue"}'
)
with assume_test_silo_mode_of(PlatformExternalIssue):
assert not PlatformExternalIssue.objects.all()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ def test_external_issue_creation_fails_with_db_error(

assert response.status_code == 500
assert response.data == {
"detail": f"An issue occured during the integration platform process. Sentry error ID: {None}"
"detail": f"An issue occurred during the integration platform process. Sentry error ID: {None}"
}
mock_update_or_create.assert_called_once()
Loading