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

First-time user: AlgoliaUnreachableHostException "Unreachable hosts" #531

Closed
saper opened this issue Jun 22, 2021 · 1 comment
Closed

First-time user: AlgoliaUnreachableHostException "Unreachable hosts" #531

saper opened this issue Jun 22, 2021 · 1 comment

Comments

@saper
Copy link

saper commented Jun 22, 2021

  • Algolia Client Version: 2.5.0
  • Language Version: Python 3.8

Description

Fresh signup (1st day of the trial), I tried to upload 12805518 byte RSS file into Algolia -
getting exception:

algoliasearch.exceptions.AlgoliaUnreachableHostException: Unreachable hosts

Steps To Reproduce

A client:

from algoliasearch.search_client import SearchClient
import feedparser

def generate_id(obj):
	obj["objectID"] = obj["link"]
	return obj
	

client = SearchClient.create("XXXYAAAAAA", "11232132132132131231231232131231")
index = client.init_index("index-name1")
index.save_objects([
	generate_id(i)
	for i in feedparser.parse("12megabyte.xml")["entries"]
])

I have hot-patched the code to produce some diagnostics and it says:

RETRY Response(None, ('Connection aborted.', timeout('The write operation timed out')), "None")
RETRY Response(None, ('Connection aborted.', timeout('The write operation timed out')), "None")
RETRY Response(None, ('Connection aborted.', timeout('The write operation timed out')), "None")
RETRY Response(None, ('Connection aborted.', timeout('The write operation timed out')), "None")

and also:

algoliasearch.exceptions.AlgoliaUnreachableHostException: ('Unreachable hosts: %s', 'XXXYAAAAAA.algolia.net XXXYAAAAAA-1.algolianet.com XXXYAAAAAA-2.algolianet.com XXXYAAAAAA-3.algolianet.com')

Running this locally on my machine in my lab network (unlike algolia/algoliasearch-client-javascript#1193 I have no outgoing network disabled), the all named hosts are prefectly reachable and open connections on port 443.

@saper
Copy link
Author

saper commented Jun 22, 2021

To paraphrase:

It's not the network. There is a no way it's the network. It was the network

A firewall rule prevented large file upload. Sorry for noise.

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

1 participant