Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages

Manual Reference Pages  -  SEARCH::ELASTICSEARCH::ERROR (3)

.ds Aq ’


Search::Elasticsearch::Error - Errors thrown by Search::Elasticsearch



version 2.00


Errors thrown by Search::Elasticsearch are error objects, which can include a stack trace and information to help debug problems. An error object consists of the following:

        type  => $type,              # eg Missing
        text  => Error message,
        vars  => {...},              # vars which may help to explain the error
        stack => [...],              # a stack trace

The $Search::Elasticsearch::Error::DEBUG variable can be set to 1 or 2 to increase the verbosity of errors.


The following error classes are defined:
o Search::Elasticsearch::Error::Param

A bad parameter has been passed to a method.

o Search::Elasticsearch::Error::Request

There was some generic error performing your request in Elasticsearch. This error is triggered by HTTP status codes 400 and 500. This class has the following sub-classes:
o Search::Elasticsearch::Error::Unauthorized

Invalid (or no) username/password provided as userinfo for a password protected service. These errors are triggered by the 401 HTTP status code.

o Search::Elasticsearch::Error::Missing

A resource that you requested was not found. These errors are triggered by the 404 HTTP status code.

o Elastisearch::Error::Conflict

Your request could not be performed because of some conflict. For instance, if you try to delete a document with a particular version number, and the document has already changed, it will throw a Conflict error. If it can, it will include the current_version in the error vars. This error is triggered by the 409 HTTP status code.

o Search::Elasticsearch::Error::ContentLength

The request body was longer than the max_content_length.

o Search::Elasticsearch::Error::RequestTimeout

The request took longer than the specified timeout. Currently only applies to the cluster_health request.

o Search::Elasticsearch::Error::Timeout

The request timed out.

o Search::Elasticsearch::Error::Cxn

There was an error connecting to a node in the cluster. This error indicates node failure and will be retried on another node. This error has the following sub-classes:
o Search::Elasticsearch::Error::Unavailable

The current node is unable to handle your request at the moment. Your request will be retried on another node. This error is triggered by the 503 HTTP status code.

o Search::Elasticsearch::Error::SSL

There was a problem validating the SSL certificate. Not all backends support this error type.

o Search::Elasticsearch::Error::Forbidden

Either the cluster was unable to process the request because it is currently blocking, eg there are not enough master nodes to form a cluster, or because the authenticated user is trying to perform an unauthorized action. This error is triggered by the 403 HTTP status code.

o Search::Elasticsearch::Error::Illegal

You have attempted to perform an illegal operation. For instance, you attempted to use a Scroll helper in a different process after forking.

o Search::Elasticsearch::Error::Serializer

There was an error serializing a variable or deserializing a string.

o Elasticsarch::Error::Internal

An internal error occurred - please report this as a bug in this module.


Clinton Gormley <>


This software is Copyright (c) 2015 by Elasticsearch BV.

This is free software, licensed under:

  The Apache License, Version 2.0, January 2004

Search for    or go to Top of page |  Section 3 |  Main Index

perl v5.20.3 SEARCH::ELASTICSEARCH::ERROR (3) 2015-10-28

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.