Open scheung38 opened 4 months ago
🤖
Thank you for providing the detailed steps to reproduce the issue. The error message "NoneType object is not subscriptable" typically occurs when you're trying to access an item from a NoneType object, which is not possible. This could be due to a variable or object that is expected to be a certain type (like a list or a dictionary), but is actually None
.
Given the steps you've provided, it seems like the error might be occurring when the ChatOpenAI
or SQLAgent
is trying to access an item from an object that is None
. This could be due to a variety of reasons, such as a missing or incorrect OpenAI API Key, an issue with the gpt-4-turbo-preview
model, an incorrect token limit, or an issue with the Database URI.
Unfortunately, I can't see the screenshot you've provided, but here are a few things you can check:
gpt-4-turbo-preview
model is available and working as expected.If you're still experiencing the issue after checking these, it would be helpful if you could provide more information about the error. Specifically, the full error message and stack trace, and any additional information about what you're trying to do when the error occurs.
As for your question about examples from the marketplace, I'm afraid I don't have that information. However, you can check the Langflow Marketplace for available examples and templates. Please note that the availability of examples and templates may vary depending on the current state of the marketplace.
I hope this helps! If you have any more questions or need further clarification, feel free to ask. Dosu
I have the same bug. Did anyone solve this?
Hi @scheung38 ! Have you tried without the +psycopg2?
same bug, without psycopg2
Do we have any solution for the problem? Im facing the exact same issue.
same issue here, using ollama + SQLAgent
Hello, @HShawnSun, Sorry for the delay. What version are you using? Does the error still persist?
I am using the newest downloadable version, and yes, it still persist.
发件人: anovazzi1 @.> 发送时间: 2024年7月1日 15:33 收件人: langflow-ai/langflow @.> 抄送: He SUN (20411847) @.>; Mention @.> 主题: Re: [langflow-ai/langflow] Bug: NoneType object is not subscriptable with ChatOpenAI + SQLAgent (Issue #1427)
Hello, @HShawnSunhttps://github.com/HShawnSun, Sorry for the delay. What version are you using? Does the error still persist?
― Reply to this email directly, view it on GitHubhttps://github.com/langflow-ai/langflow/issues/1427#issuecomment-2200328442, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWEAEGDFZ5O57XL5VK2B2XTZKFSBZAVCNFSM6AAAAABDE2EY3WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGMZDQNBUGI. You are receiving this because you were mentioned.Message ID: @.***>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of The University of Nottingham Ningbo China. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with The University of Nottingham Ningbo China may be monitored as permitted by UK and Chinese legislation.
Thanks for the feedback! I'll take a look and fix it ASAP.
Describe the bug A clear and concise description of what the bug is.
Browser and Version
To Reproduce Steps to reproduce the behavior:
SQLAgent Entered Database URI: postgresql+psycopg2://USER>:<PASSWORD>@<HOST:5432/
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Also are there examples from marketplace to use as starting templates?