I have some code
<https://github.com/domainaware/parsedmarc/blob/master/parsedmarc/elastic.py#L306>
that saves data to Elasticsearch. It runs fine in Python 3.5.2 (cpython),
but raises an exception when running on pypy 3 6.0.0 (Python 3.5.3). Any
ideas why?

File "/opt/venvs/parsedmarc/site-packages/parsedmarc/elastic.py", line
366, in save_forensic_report_to_elasticsearch
  forensic_doc.save()File
"/opt/venvs/parsedmarc/site-packages/elasticsearch_dsl/document.py",
line 394, in save
  index=self._get_index(index),File
"/opt/venvs/parsedmarc/site-packages/elasticsearch_dsl/document.py",
line 138, in _get_index
  raise ValidationException('You cannot write to a wildcard index.')
elasticsearch_dsl.exceptions.ValidationException: You cannot write to
a wildcard index

I also asked Stack Overflow. You can answer there for internet points. :)

https://stackoverflow.com/questions/51368293/why-does-elasticsearch-raise-
elasticsearch-dsl-exceptions-validationexception-y
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
https://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to