Snazzah / duck-duck-scrape

🔎 Search from DuckDuckGo and utilize its spice APIs in Node
https://duck-duck-scrape.js.org
MIT License
136 stars 18 forks source link

Uncaught Error Error: Failed to get the VQD for query "node.js". #131

Open jmgaooo opened 1 year ago

jmgaooo commented 1 year ago

The response.body of getVQD() method is empty, resulting in an exception thrown by exports.VQD_REGEX.exec(response.body)[1]: Uncaught TypeError TypeError: Cannot read properties of null (reading '1'). How can this issue be resolved?

miloslavnosek commented 9 months ago

Same issue. I can't seem to be able to search for anything at all.

IvoRacious commented 4 months ago

This issue still exist. I have to choose another search-api.

MsVoxxie commented 4 months ago

Likewise, Same issue, Any insight would be appreciated :)

Snazzah commented 4 months ago

I couldn't reproduce the issue, it still works fine. if it doesn't work for some people, probably try providing the response whenever you request https://duckduckgo.com/?q=node.js&ia=web.

IvoRacious commented 4 months ago

Suprisingly, I find that npm:duckduckgo-search@1.0.5 works well and steadily if you are using javascript. Before that I've tried "@langchain/community/tools/duckduckgo_search", npm:duck-duck-scrapeandnpm:duckduckgo-search@1.0.7, which all failed.

ductridev commented 3 months ago

I couldn't reproduce the issue, it still works fine. if it doesn't work for some people, probably try providing the response whenever you request https://duckduckgo.com/?q=node.js&ia=web.

Same issue with me, should I provide you a screenshot of the request you sent?

ductridev commented 3 months ago

@Snazzah I just wonder if the news is responsed empty by DDG cause the error? image image