This just started happening today. I've been using the langgraph-api for a couple weeks now.
Great tool btw, really helpful.
I've been using 'langgraph up' (I use poetry, but the issue happens regardless) to test the graphs using the UI (awesome btw). But, starting today, creating a new thread throw a CORS error on the front end (ScreenShot Attached)
And an error in the langgraph-api docker file.
"/api/langgraph_api/api/assistants.py", line 117, in get_assistant_schemas
I CAN execute the graph using the SDK. To confirm, I downloaded the lasted version of this repo and ran it by itself just to see if my code broke the front end, but it was broken here just 10 min ago (for me), and I killed all the docker images and pulled new ones, same error.
I hope its my browser or something, but I tried on another computer. Any ideas?
Also, where is the source for the api folder in here? https://hub.docker.com/r/langchain/langgraph-api ? I looked everywhere and can't find it. This way I can get in there and fix things (and stabilize) before production.
Feel free to ask for more info or have me test stuff. I'd like to get this resolved asap.
Here is more info about the Issue:
Checked other resources
[x] I added a very descriptive title to this issue. (best I could)
[x] I searched the LangChain documentation with the integrated search. (don't have source to api, but searched a lot)
[x] I used the GitHub search to find a similar question and didn't find it.
[x] I am sure that this is a bug in langraph-api rather than my code. (or that front end code, I can't get access too)
[x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
Example Code
langgraph up
Error Message and Stack Trace (if applicable)
2024-06-14 14:45:39 2024-06-14 18:45:39,806:ERROR:langgraph_api.server 500 Error handling request
2024-06-14 14:45:39 Traceback (most recent call last):
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
2024-06-14 14:45:39 await self.app(scope, receive, _send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 93, in __call__
2024-06-14 14:45:39 await self.simple_response(scope, receive, send, request_headers=headers)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 148, in simple_response
2024-06-14 14:45:39 await self.app(scope, receive, send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
2024-06-14 14:45:39 await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
2024-06-14 14:45:39 raise exc
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-06-14 14:45:39 await app(scope, receive, sender)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 756, in __call__
2024-06-14 14:45:39 await self.middleware_stack(scope, receive, send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 776, in app
2024-06-14 14:45:39 await route.handle(scope, receive, send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 297, in handle
2024-06-14 14:45:39 await self.app(scope, receive, send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
2024-06-14 14:45:39 await wrap_app_handling_exceptions(app, request)(scope, receive, send)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
2024-06-14 14:45:39 raise exc
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
2024-06-14 14:45:39 await app(scope, receive, sender)
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 72, in app
2024-06-14 14:45:39 response = await func(request)
2024-06-14 14:45:39 ^^^^^^^^^^^^^^^^^^^
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 278, in app
2024-06-14 14:45:39 raw_response = await run_endpoint_function(
2024-06-14 14:45:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-06-14 14:45:39 File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
2024-06-14 14:45:39 return await dependant.call(**values)
2024-06-14 14:45:39 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-06-14 14:45:39 File "/api/langgraph_api/postgres.py", line 112, in wrapper
2024-06-14 14:45:39 File "/api/langgraph_api/api/assistants.py", line 117, in get_assistant_schemas
2024-06-14 14:45:39 TypeError: type 'LangGraphConfig' is not subscriptable
This just started happening today. I've been using the langgraph-api for a couple weeks now.
Great tool btw, really helpful.
I've been using 'langgraph up' (I use poetry, but the issue happens regardless) to test the graphs using the UI (awesome btw). But, starting today, creating a new thread throw a CORS error on the front end (ScreenShot Attached)
And an error in the langgraph-api docker file.
"/api/langgraph_api/api/assistants.py", line 117, in get_assistant_schemas
I CAN execute the graph using the SDK. To confirm, I downloaded the lasted version of this repo and ran it by itself just to see if my code broke the front end, but it was broken here just 10 min ago (for me), and I killed all the docker images and pulled new ones, same error.
I hope its my browser or something, but I tried on another computer. Any ideas?
Also, where is the source for the api folder in here? https://hub.docker.com/r/langchain/langgraph-api ? I looked everywhere and can't find it. This way I can get in there and fix things (and stabilize) before production.
Feel free to ask for more info or have me test stuff. I'd like to get this resolved asap.
Here is more info about the Issue:
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Front End Error:
langgraph-api docker error