You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
requests.exceptions.ConnectionError: HTTPConnectionPool(host='8.218.239.54', port=8080): Max retries exceeded with url: /rapidapi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd8b84c8520>: Failed to establish a new connection: [Errno 110] Connection timed out'))
The text was updated successfully, but these errors were encountered:
import requests
import json
url = 'http://0.0.0.0:8005/virtual'
data = {
"category": "Media",
"tool_name": "newapi_for_media",
"api_name": "url",
"tool_input": {'url': 'https://api.socialmedia.com/friend/photos'},
"strip": "",
"toolbench_key": "XXXXXXX"
}
data = {
"category": "Search",
"tool_name": "wiki_search",
"api_name": "wiki_search",
"tool_input": {'q': '老大是谁?'},
"strip": "",
"toolbench_key": "XXXXX"
}
headers = {
'accept': 'application/json',
'Content-Type': 'application/json',
}
Make the POST request
response = requests.post(url, headers=headers, data=json.dumps(data))
print(response.text)
已经有了toolbenchkey , 但是报下属错误:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='8.218.239.54', port=8080): Max retries exceeded with url: /rapidapi (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fd8b84c8520>: Failed to establish a new connection: [Errno 110] Connection timed out'))
The text was updated successfully, but these errors were encountered: