Keeps going in a loop #2

Closed
opened 2026-02-16 08:16:53 -05:00 by yindo · 2 comments
Owner

Originally created by @pcuci on GitHub (Feb 23, 2025).

When starting a new thread (using azure openai gpt-4o) it doesn't wait for my follow-up message and keeps requerying the first in an endless loop.

Looking forward to play with this more when it stabilizes!

Image

Image

2025-02-23T20:01:56.922720Z [info     ] POST /threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream 200 1505ms [langgraph_api.server] api_variant=local_dev latency_ms=1505 method=POST path=/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string= req_header={'host': 'api', 'accept-encoding': 'gzip, deflate, zstd', 'connection': 'keep-alive', 'user-agent': 'langgraph-sdk-py/0.1.53', 'content-length': '184', 'content-type': 'application/json', 'accept': 'text/event-stream', 'cache-control': 'no-store'} res_header={'location': '/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/1eff2210-8054-61df-8173-3b5604b7e478/stream', 'cache-control': 'no-store', 'connection': 'keep-alive', 'x-accel-buffering': 'no', 'content-type': 'text/event-stream; charset=utf-8'} route=/threads/{thread_id}/runs/stream status=200
2025-02-23T20:01:56.923096Z [info     ] HTTP Request: POST http://api/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream "HTTP/1.1 200 OK" [httpx] api_variant=local_dev
2025-02-23T20:01:56.924875Z [info     ] GET /conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message 200 1509ms [langgraph_api.server] api_variant=local_dev latency_ms=1509 method=GET path=/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string=msg=hello,%20how%20are%20you req_header={'host': '127.0.0.1:2024', 'connection': 'keep-alive', 'sec-ch-ua-platform': '"Windows"', 'cache-control': 'no-cache', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 'accept': 'text/event-stream', 'sec-ch-ua': '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"', 'dnt': '1', 'sec-ch-ua-mobile': '?0', 'sec-fetch-site': 'same-origin', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'referer': 'http://127.0.0.1:2024/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7,es-ES;q=0.6,es;q=0.5,ro-RO;q=0.4,ro;q=0.3,de-DE;q=0.2,de;q=0.1'} res_header={'cache-control': 'no-cache', 'connection': 'keep-alive', 'content-type': 'text/event-stream; charset=utf-8'} route=None status=200
2025-02-23T20:01:59.943481Z [info     ] Created run                    [langgraph_storage.ops] api_variant=local_dev run_id=1eff2210-ab7c-618c-b1ff-ee2daf44ec0f thread_id=020cff3a-005d-47f5-80a3-9c609f48ed39
2025-02-23T20:02:00.924512Z [info     ] Starting background run        [langgraph_api.queue] api_variant=local_dev run_attempt=1 run_created_at=2025-02-23T20:01:59.943441+00:00 run_id=1eff2210-ab7c-618c-b1ff-ee2daf44ec0f run_queue_ms=980 run_started_at=2025-02-23T20:02:00.924190+00:00
2025-02-23T20:02:01.071162Z [info     ] HTTP Request: POST https://orbituseast28074342961.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-08-01-preview "HTTP/1.1 200 OK" [httpx] api_variant=local_dev
2025-02-23T20:02:01.334796Z [info     ] Background run succeeded       [langgraph_api.queue] api_variant=local_dev run_attempt=1 run_created_at=2025-02-23T20:01:59.943441+00:00 run_ended_at=2025-02-23T20:02:01.334667+00:00 run_exec_ms=410 run_id=1eff2210-ab7c-618c-b1ff-ee2daf44ec0f run_started_at=2025-02-23T20:02:00.924190+00:00
2025-02-23T20:02:01.335562Z [info     ] HTTP Request: POST http://api/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream "HTTP/1.1 200 OK" [httpx] api_variant=local_dev
2025-02-23T20:02:01.335644Z [info     ] POST /threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream 200 1393ms [langgraph_api.server] api_variant=local_dev latency_ms=1393 method=POST path=/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string= req_header={'host': 'api', 'accept-encoding': 'gzip, deflate, zstd', 'connection': 'keep-alive', 'user-agent': 'langgraph-sdk-py/0.1.53', 'content-length': '184', 'content-type': 'application/json', 'accept': 'text/event-stream', 'cache-control': 'no-store'} res_header={'location': '/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/1eff2210-ab7c-618c-b1ff-ee2daf44ec0f/stream', 'cache-control': 'no-store', 'connection': 'keep-alive', 'x-accel-buffering': 'no', 'content-type': 'text/event-stream; charset=utf-8'} route=/threads/{thread_id}/runs/stream status=200
2025-02-23T20:02:01.338117Z [info     ] GET /conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message 200 1396ms [langgraph_api.server] api_variant=local_dev latency_ms=1396 method=GET path=/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string=msg=hello,%20how%20are%20you req_header={'host': '127.0.0.1:2024', 'connection': 'keep-alive', 'sec-ch-ua-platform': '"Windows"', 'cache-control': 'no-cache', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 'accept': 'text/event-stream', 'sec-ch-ua': '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"', 'dnt': '1', 'sec-ch-ua-mobile': '?0', 'sec-fetch-site': 'same-origin', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'referer': 'http://127.0.0.1:2024/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7,es-ES;q=0.6,es;q=0.5,ro-RO;q=0.4,ro;q=0.3,de-DE;q=0.2,de;q=0.1'} res_header={'cache-control': 'no-cache', 'connection': 'keep-alive', 'content-type': 'text/event-stream; charset=utf-8'} route=None status=200
Originally created by @pcuci on GitHub (Feb 23, 2025). When starting a new thread (using azure openai gpt-4o) it doesn't wait for my follow-up message and keeps requerying the first in an endless loop. Looking forward to play with this more when it stabilizes! ![Image](https://github.com/user-attachments/assets/0d587c84-c462-4da9-9392-3f5e49ad6a76) ![Image](https://github.com/user-attachments/assets/fc4e1087-fb38-45f0-b06c-bcb9d7d67ce5) ``` 2025-02-23T20:01:56.922720Z [info ] POST /threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream 200 1505ms [langgraph_api.server] api_variant=local_dev latency_ms=1505 method=POST path=/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string= req_header={'host': 'api', 'accept-encoding': 'gzip, deflate, zstd', 'connection': 'keep-alive', 'user-agent': 'langgraph-sdk-py/0.1.53', 'content-length': '184', 'content-type': 'application/json', 'accept': 'text/event-stream', 'cache-control': 'no-store'} res_header={'location': '/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/1eff2210-8054-61df-8173-3b5604b7e478/stream', 'cache-control': 'no-store', 'connection': 'keep-alive', 'x-accel-buffering': 'no', 'content-type': 'text/event-stream; charset=utf-8'} route=/threads/{thread_id}/runs/stream status=200 2025-02-23T20:01:56.923096Z [info ] HTTP Request: POST http://api/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream "HTTP/1.1 200 OK" [httpx] api_variant=local_dev 2025-02-23T20:01:56.924875Z [info ] GET /conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message 200 1509ms [langgraph_api.server] api_variant=local_dev latency_ms=1509 method=GET path=/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string=msg=hello,%20how%20are%20you req_header={'host': '127.0.0.1:2024', 'connection': 'keep-alive', 'sec-ch-ua-platform': '"Windows"', 'cache-control': 'no-cache', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 'accept': 'text/event-stream', 'sec-ch-ua': '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"', 'dnt': '1', 'sec-ch-ua-mobile': '?0', 'sec-fetch-site': 'same-origin', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'referer': 'http://127.0.0.1:2024/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7,es-ES;q=0.6,es;q=0.5,ro-RO;q=0.4,ro;q=0.3,de-DE;q=0.2,de;q=0.1'} res_header={'cache-control': 'no-cache', 'connection': 'keep-alive', 'content-type': 'text/event-stream; charset=utf-8'} route=None status=200 2025-02-23T20:01:59.943481Z [info ] Created run [langgraph_storage.ops] api_variant=local_dev run_id=1eff2210-ab7c-618c-b1ff-ee2daf44ec0f thread_id=020cff3a-005d-47f5-80a3-9c609f48ed39 2025-02-23T20:02:00.924512Z [info ] Starting background run [langgraph_api.queue] api_variant=local_dev run_attempt=1 run_created_at=2025-02-23T20:01:59.943441+00:00 run_id=1eff2210-ab7c-618c-b1ff-ee2daf44ec0f run_queue_ms=980 run_started_at=2025-02-23T20:02:00.924190+00:00 2025-02-23T20:02:01.071162Z [info ] HTTP Request: POST https://orbituseast28074342961.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-08-01-preview "HTTP/1.1 200 OK" [httpx] api_variant=local_dev 2025-02-23T20:02:01.334796Z [info ] Background run succeeded [langgraph_api.queue] api_variant=local_dev run_attempt=1 run_created_at=2025-02-23T20:01:59.943441+00:00 run_ended_at=2025-02-23T20:02:01.334667+00:00 run_exec_ms=410 run_id=1eff2210-ab7c-618c-b1ff-ee2daf44ec0f run_started_at=2025-02-23T20:02:00.924190+00:00 2025-02-23T20:02:01.335562Z [info ] HTTP Request: POST http://api/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream "HTTP/1.1 200 OK" [httpx] api_variant=local_dev 2025-02-23T20:02:01.335644Z [info ] POST /threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream 200 1393ms [langgraph_api.server] api_variant=local_dev latency_ms=1393 method=POST path=/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/stream path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string= req_header={'host': 'api', 'accept-encoding': 'gzip, deflate, zstd', 'connection': 'keep-alive', 'user-agent': 'langgraph-sdk-py/0.1.53', 'content-length': '184', 'content-type': 'application/json', 'accept': 'text/event-stream', 'cache-control': 'no-store'} res_header={'location': '/threads/020cff3a-005d-47f5-80a3-9c609f48ed39/runs/1eff2210-ab7c-618c-b1ff-ee2daf44ec0f/stream', 'cache-control': 'no-store', 'connection': 'keep-alive', 'x-accel-buffering': 'no', 'content-type': 'text/event-stream; charset=utf-8'} route=/threads/{thread_id}/runs/stream status=200 2025-02-23T20:02:01.338117Z [info ] GET /conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message 200 1396ms [langgraph_api.server] api_variant=local_dev latency_ms=1396 method=GET path=/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39/get-message path_params={'thread_id': '020cff3a-005d-47f5-80a3-9c609f48ed39'} proto=1.1 query_string=msg=hello,%20how%20are%20you req_header={'host': '127.0.0.1:2024', 'connection': 'keep-alive', 'sec-ch-ua-platform': '"Windows"', 'cache-control': 'no-cache', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36', 'accept': 'text/event-stream', 'sec-ch-ua': '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"', 'dnt': '1', 'sec-ch-ua-mobile': '?0', 'sec-fetch-site': 'same-origin', 'sec-fetch-mode': 'cors', 'sec-fetch-dest': 'empty', 'referer': 'http://127.0.0.1:2024/conversations/020cff3a-005d-47f5-80a3-9c609f48ed39', 'accept-encoding': 'gzip, deflate, br, zstd', 'accept-language': 'en-US,en;q=0.9,fr-CA;q=0.8,fr;q=0.7,es-ES;q=0.6,es;q=0.5,ro-RO;q=0.4,ro;q=0.3,de-DE;q=0.2,de;q=0.1'} res_header={'cache-control': 'no-cache', 'connection': 'keep-alive', 'content-type': 'text/event-stream; charset=utf-8'} route=None status=200 ```
yindo closed this issue 2026-02-16 08:16:53 -05:00
Author
Owner

@hinthornw commented on GitHub (Feb 25, 2025):

Indeed - bad app copy-pasting on my part from FastHTML docs. Gonna try to get this fixed today.

@hinthornw commented on GitHub (Feb 25, 2025): Indeed - bad app copy-pasting on my part from FastHTML docs. Gonna try to get this fixed today.
Author
Owner

@hinthornw commented on GitHub (Mar 11, 2025):

Should be fixed now!

@hinthornw commented on GitHub (Mar 11, 2025): Should be fixed now!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph-fullstack-python#2