Skip to content
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

ValueError: Proxy dictionary is missing required fields. #812

Open
manu2022 opened this issue Nov 19, 2024 · 2 comments
Open

ValueError: Proxy dictionary is missing required fields. #812

manu2022 opened this issue Nov 19, 2024 · 2 comments

Comments

@manu2022
Copy link

from scrapegraphai.utils.proxy_rotation import search_proxy_servers
search_proxy_servers()

graph_config = {
"llm": {
"model": "gpt-4o",
},
"verbose": True,
"max_results": 1,
# "search_engine": "bing",
"headless": False,
"loader_kwargs": {
"proxy": {
"server": "here i put the server",
}
}
}

search_graph = SearchGraph(
prompt=PROMPTS.get("propmt_vvs")["prompt"].format(**data),
config=graph_config,
schema=model,
)
ValueError: Proxy dictionary is missing required fields.

version 1.31.

The thing is that I cannot manually specify the proxy. it says I am missing fields, but I have all the ones in the documentation

@obscuredotsh
Copy link

Hey, same issue. Is this resolved for you ?

Dont know what am I missing

@SwapnilSonker
Copy link

@manu2022 and @obscuredotsh tried addressing your issue, but it seems that you guys have missed to add "username" and "password" in the proxy.

like
"proxy":{ "server": "server name", "username": "user name", "password": "password" }
Other than this if there is any issue, I request @VinciGit00 to provide me with some context about this issue and I will work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants