Open sydxy4ever opened 2 weeks ago
@sydxy4ever Hello there! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve this issue.
To resolve the "PubMed exception: HTTP Error 400: Bad Request" in Dify version 0.9.1 on a self-hosted Docker setup, consider the following steps:
Query Length: Ensure the query string does not exceed 300 characters, as it is truncated to this length before processing.
URL Encoding: Verify that the query is correctly URL-encoded using urllib.parse.quote(query)
.
Email Parameter: Check that the email
parameter is set correctly in the PubMedAPIWrapper
class, as it is often required by the PubMed API.
Check for Empty Query: Make sure the query is not empty, as the method checks for this and returns a message if the query is missing.
If these checks do not resolve the issue, further investigation into the specific query and HTTP request may be necessary [1].
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.9.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
when i used pubmed search tools, returns "PubMed exception: HTTP Error 400: Bad Request"
✔️ Expected Behavior
No response
❌ Actual Behavior
No response