tavily-ai / tavily-python

A python wrapper for Tavily search API
https://docs.tavily.com
MIT License
262 stars 42 forks source link

502 Server Error When Using TavilyClient for Search and QnA Functions #8

Closed vaibhavp4 closed 9 months ago

vaibhavp4 commented 9 months ago

Encountering a "502 Server Error: Bad Gateway" when using the TavilyClient for performing search and QnA operations. This issue occurs when making requests to the https://api.tavily.com/search endpoint.

Steps to Reproduce

from tavily import TavilyClient tavily = TavilyClient(api_key="YOUR_API_KEY") tavily.qna_search(query="Where does Messi play right now?")

Error message: requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://api.tavily.com/search

Plan: Researcher API Limit: 111/1000 requests

vaibhavp4 commented 9 months ago

This seems to be working now