Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/backend/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from quart import jsonify

ERROR_MESSAGE = """The app encountered an error processing your request.
If you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.
If you are an administrator of the app, check the application logs for a full traceback.
Error type: {error_type}
"""
ERROR_MESSAGE_FILTER = """Your message contains content that was flagged by the OpenAI content filter."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"}
{"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"}
{"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'ZeroDivisionError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'ZeroDivisionError'>\n"
}
4 changes: 2 additions & 2 deletions tests/test_cosmosdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ async def mock_upsert_item(container_proxy, item, **kwargs):
)
assert response.status_code == 500
assert (await response.get_json()) == {
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'IndexError'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'IndexError'>\n"
}


Expand Down Expand Up @@ -261,7 +261,7 @@ def mock_query_items(container_proxy, query, **kwargs):
)
assert response.status_code == 500
assert (await response.get_json()) == {
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, view the full error in the logs. See aka.ms/appservice-logs for more information.\nError type: <class 'Exception'>\n"
"error": "The app encountered an error processing your request.\nIf you are an administrator of the app, check the application logs for a full traceback.\nError type: <class 'Exception'>\n"
}


Expand Down
Loading