'Client error response [status code] 400


(Hilal) #1

Hi,
I have mysql data field. My data field name is 'islem'. This field deault value is 'Y'. For example:
islem='Y'
islem='YI'
islem='YS'
islem='YDS'
islem='YS'
islem='YD'
islem='YDDDD'
islem='YDDDDS'.. etc

I did nested mapping this field name on sense editor. Because It has to be unique array on my php index codes.

PUT ihaleler/ihale/_mapping
{
  "properties": {
    "islem": {
      "type": "nested"
    } } }

After I indexed this field with php codes. But ı has error:

Fatal error:  Uncaught exception 
'Guzzle\Http\Exception\ClientErrorResponseException' with message 
'Client error response
[status code] 400
[reason phrase] Bad Request
[url] http://localhost:9200/ihaleler/ihale/1030235' in 
/home/admin/web/server.com/public_html/vendor/guzzle/http/Guzzle/Http/Exception/BadResponseException.php:43
Stack
 trace:
#0 
/home/admin/web/server.com/public_html/vendor/guzzle/http/Guzzle/Http/Message/Request.php(145):
 
Guzzle\Http\Exception\BadResponseException::factory(Object(Guzzle\Http\Message\EntityEnclosingRequest),
 Object(Guzzle\Http\Message\Response))
#1 [internal function]: 
Guzzle\Http\Message\Request::onRequestError(Object(Guzzle\Common\Event),
 'request.error', 
Object(Symfony\Component\EventDispatcher\EventDispatcher))
#2 
/home/admin/web/server.com/public_html/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php(164):
 call_user_func(Array, Object(Guzzle\Common\Event), 'request.error', 
Object(Symfony\Component\EventDispatcher\EventDispatcher))
#3 /home/admin/web/ in /home/admin/web/server.com/public_html/vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/GuzzleConnection.php on line 266

What can I do? Please help me.
Thank you.


(Magnus Bäck) #2

You already asked that question here: Client error response [status code] 400

Let's keep everything in one thread.


Client error response [status code] 400
(Mark Walkom) #3

Thanks @magnusbaeck, let's head over to that other one!


(Mark Walkom) #4