Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

There are typos in a comment and a log message #11294

Copy link
Copy link
Closed
@kamoljan

Description

@kamoljan
Issue body actions

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/endpoints/getting-started/main.py

Did you change the file? If so, how?

git diff
diff --git a/endpoints/getting-started/main.py b/endpoints/getting-started/main.py
index 5e3077936..db386f1f2 100644
--- a/endpoints/getting-started/main.py
+++ b/endpoints/getting-started/main.py
@@ -53,7 +53,7 @@ def echo():

 # [START endpoints_auth_info_backend]
 def auth_info():
-    """Retrieves the authenication information from Google Cloud Endpoints."""
+    """Retrieves the authentication information from Google Cloud Endpoints."""
     encoded_info = request.headers.get("X-Endpoint-API-UserInfo", None)
     if encoded_info:
         info_json = _base64_decode(encoded_info)
@@ -89,7 +89,7 @@ def auth_info_firebase():
 @app.errorhandler(http_client.INTERNAL_SERVER_ERROR)
 def unexpected_error(e):
     """Handle exceptions by returning swagger-compliant json."""
-    logging.exception("An error occured while processing the request.")
+    logging.exception("An error occurred while processing the request.")
     response = jsonify(
         {"code": http_client.INTERNAL_SERVER_ERROR, "message": f"Exception: {e}"}
     )

Describe the issue

It is two typos in a comment and log message

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.Issues that are directly related to samples.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.