From 45774c8ac04ea95dd0d2a549d7ea32d2e891afe5 Mon Sep 17 00:00:00 2001 From: Indy S Date: Sun, 24 Nov 2024 15:58:47 -0600 Subject: [PATCH 1/2] fix: corrent API endpoint, adjust jp usage, and update protocol for localhost. - Updated endpoint path from `foyle.logs.SessionsService/GetSession` to `api/GetSession`. - Added a period after `jq` for proper JSON parsing. - Replaced `https://` with `http://` for localhost to avoid unnecessary SSL complications. --- docs/content/en/docs/operator-manual/troubleshoot_learning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/en/docs/operator-manual/troubleshoot_learning.md b/docs/content/en/docs/operator-manual/troubleshoot_learning.md index 2d64c7d..9e15eb4 100644 --- a/docs/content/en/docs/operator-manual/troubleshoot_learning.md +++ b/docs/content/en/docs/operator-manual/troubleshoot_learning.md @@ -40,7 +40,7 @@ You can use the session ID to track whether learning occured. ```bash CONTEXTID=01J7S3QZMS5F742JFPWZDCTVRG -curl -s -X POST https://localhost:8877/foyle.logs.SessionsService/GetSession -H "Content-Type: application/json" -d "{\"contextId\": \"${CONTEXTID}\"}" | jq. +curl -s -X POST http://localhost:8877/api/GetSession -H "Content-Type: application/json" -d "{\"contextId\": \"${CONTEXTID}\"}" | jq . ``` * If this returns not found then no log was created for this sessions and there is a problem with Log Processing From 7b5e41d0bc9ee05055a000cee79cd1b172d22af6 Mon Sep 17 00:00:00 2001 From: Indy S Date: Sun, 24 Nov 2024 23:28:55 -0600 Subject: [PATCH 2/2] Addressed review comments --- docs/content/en/docs/operator-manual/troubleshoot_learning.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/en/docs/operator-manual/troubleshoot_learning.md b/docs/content/en/docs/operator-manual/troubleshoot_learning.md index 9e15eb4..e433b5d 100644 --- a/docs/content/en/docs/operator-manual/troubleshoot_learning.md +++ b/docs/content/en/docs/operator-manual/troubleshoot_learning.md @@ -40,7 +40,7 @@ You can use the session ID to track whether learning occured. ```bash CONTEXTID=01J7S3QZMS5F742JFPWZDCTVRG -curl -s -X POST http://localhost:8877/api/GetSession -H "Content-Type: application/json" -d "{\"contextId\": \"${CONTEXTID}\"}" | jq . +curl -s -X POST http://localhost:8877/api/foyle.logs.SessionsService/GetSession -H "Content-Type: application/json" -d "{\"contextId\": \"${CONTEXTID}\"}" | jq . ``` * If this returns not found then no log was created for this sessions and there is a problem with Log Processing