helallao / perplexity-ai

Unofficial API Wrapper for Perplexity.ai + Account Generator
https://perplexity.ai
MIT License
285 stars 50 forks source link

Error while hosting #3

Closed bacladjan-corp closed 1 year ago

bacladjan-corp commented 1 year ago

I wanted to send a bot with this api to the server, but it gives an error: HTTPSConnectionPool(host='www.perplexity.ai', port=443): Max retries exceeded with url: /search/dc2e0bc5-4518-49a4-9a9c-2af9a1e10523 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 403 Forbidden')))

can you tell me how to fix it please?

helallao commented 1 year ago

Looks like you're trying to use your cookies on another ip address, which only works on ip address that you used to bypass cloudflare's captcha.