-
Notifications
You must be signed in to change notification settings - Fork 8.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validation error for HttpRequestNodeData method Input #11877
Comments
Hey @yx900210! 👋 I'm here to help you with any bugs, questions, or contributions you have for the Dify project. I'm a bot designed to assist you while you wait for a human maintainer. Let's squash those bugs together! The validation error you're encountering is due to the case sensitivity of the HTTP method input in the To resolve this issue, you can modify the input to ensure that the HTTP method is in lowercase before it is passed to the If modifying the input is not feasible, you might need to adjust the code in the Dify platform to handle uppercase inputs by converting them to lowercase before validation. However, this would require changes to the codebase, which should be done with caution and proper testing. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
The image is broken. |
我也遇到了这个问题。我使用fastapi结合pydantic开发了一个脚本,服务启动以后,通过linux服务器上部署的dify的HTTP请求节点去访问接口就会有这个问题,但是我本地Win11系统通过桌面端docker部署的dify,去访问这个接口就没有这个问题。我的win11系统上dify版本是0.11.0。两台服务器dify版本分别是0.11.0和0.14.0。 |
fixed |
can you offer your dsl? |
我找到一个解决的办法了,通过curl方式导入api,里面的请求方式动手改成小写就行 |
but the lower is default, how did you use |
通过你这个方法改变之后我的问题变成了“Reached maximum retries (0) for URL http://...” |
没有呢,这个看来是你调用的API问题了,换个别的API试试
…------------------ 原始邮件 ------------------
发件人: "Ye ***@***.***>;
发送时间: 2025年1月6日(星期一) 中午11:06
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [langgenius/dify] validation error for HttpRequestNodeData method Input (Issue #11877)
n frontend we can not use other requn 前端我们不能使用其他要求
我找到一个解决的办法了,通过curl方式导入api,里面的请求方式动手改成小写就行
通过你这个方法改变之后我的问题变成了“Reached maximum retries (0) for URL http://...”
并且在重启了服务之后还是这个问题,请问是否遇到过吗
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks will take a look |
* commit 'c236f05f4b575884b42fc45819ad71b05a22115c': (135 commits) chore: bump version to 0.15.0 (langgenius#12297) refactor: enhance API token validation with session locking and last used timestamp update (langgenius#12426) Fix newline characters in tables during document parsing (langgenius#12112) fix:deepseek tool call not working correctly (langgenius#12437) add fish-speech-1.5 from siliconflow (langgenius#12425) chore(docker/.env.example): Add TOP_K_MAX_VALUE to the `.env.example`… (langgenius#12422) refactor: use tiktoken for token calculation (langgenius#12416) fix: [PromptEditorHeightResizeWrap] Bug langgenius#12410 (langgenius#12406) Fixes langgenius#12414: Add cheaper model and long context model for Qwen2.5-72B-Instruct from siliconflow (langgenius#12415) Support TTS and Speech2Text for Model Provider GPUStack (langgenius#12381) mark deprecated models in siliconflow langgenius#12399 (langgenius#12405) fix: http method can be upper case and lower case close langgenius#11877 (langgenius#12401) fix: enhance chunk list management with new invalidation keys and imp… (langgenius#12396) [Fix] revert sagemaker llm to support model hub (langgenius#12378) sandbox doesn't provide auto disable log (langgenius#12388) feat: support config top max value by env (langgenius#12375) chore: chat app textarea auto focus (langgenius#12366) feat: support configuration of refresh token expiration by environment variable (langgenius#12335) fix: resolve issue with the opening statement generated by the `AutomaticRes` component failing to sync between states. (langgenius#12349) Fix the issue where `TextGeneration` component does not correctly clear input data. (langgenius#12351) ... # Conflicts: # api/core/helper/code_executor/code_executor.py # api/poetry.lock
Self Checks
Dify version
0.14.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
When I use an HTTP request tool, the request type is fixed as an uppercase type, which does not match the API I need to call.
✔️ Expected Behavior
successful running
❌ Actual Behavior
1 validation error for HttpRequestNodeData method Input should be 'get', 'post', 'put', 'patch', 'delete' or 'head' [type=literal_error, input_value='GET', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/literal_error
The text was updated successfully, but these errors were encountered: