Slim Application Error

The application could not run because of the following error:

Details

Type: Prismic\Exception\RequestFailureException
Code: 400
Message: The GET request to the repository vicwebsite2019.cdn.prismic.io resulted in a 400 Bad Request error. Complete URL: https://vicwebsite2019.cdn.prismic.io/api/v2/documents/search?page=1&pageSize=20&ref=X5K4DhEAACMAARrI&lang=industrial-and-logistics-automation
File: /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/Exception/RequestFailureException.php
Line: 52

Trace

#0 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/Exception/RequestFailureException.php(25): Prismic\Exception\RequestFailureException::fromGuzzleRequestException()
#1 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/SearchForm.php(359): Prismic\Exception\RequestFailureException::fromGuzzleException()
#2 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/SearchForm.php(251): Prismic\SearchForm->submitRaw()
#3 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/Api.php(437): Prismic\SearchForm->submit()
#4 /var/www/rl2020.vitronic.com/app/controller/Controller.php(915): Prismic\Api->query()
#5 /var/www/rl2020.vitronic.com/app/app.php(127): Controller->fetchByUID()
#6 [internal function]: Closure->{closure}()
#7 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func()
#8 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke()
#9 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()
#10 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack()
#11 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/App.php(516): Slim\Route->run()
#12 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke()
#13 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/App.php(407): Slim\App->callMiddlewareStack()
#14 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/App.php(315): Slim\App->process()
#15 /var/www/rl2020.vitronic.com/public/index.php(103): Slim\App->run()
#16 {main}

Previous exception

Type: GuzzleHttp\Exception\ClientException
Code: 400
Message: Client error: `GET https://vicwebsite2019.cdn.prismic.io/api/v2/documents/search?page=1&pageSize=20&ref=X5K4DhEAACMAARrI&lang=industrial-and-logistics-automation` resulted in a `400 Bad Request` response: {"message":"Some(industrial-and-logistics-automation) isn't a valid language id"}
File: /var/www/rl2020.vitronic.com/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php
Line: 113

Trace

#0 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/guzzle/src/Middleware.php(66): GuzzleHttp\Exception\RequestException::create()
#1 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp\{closure}()
#2 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler()
#3 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}()
#4 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\TaskQueue->run()
#5 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#7 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 /var/www/rl2020.vitronic.com/vendor/guzzlehttp/guzzle/src/Client.php(131): GuzzleHttp\Promise\Promise->wait()
#10 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/SearchForm.php(357): GuzzleHttp\Client->request()
#11 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/SearchForm.php(251): Prismic\SearchForm->submitRaw()
#12 /var/www/rl2020.vitronic.com/vendor/prismic/php-sdk/src/Prismic/Api.php(437): Prismic\SearchForm->submit()
#13 /var/www/rl2020.vitronic.com/app/controller/Controller.php(915): Prismic\Api->query()
#14 /var/www/rl2020.vitronic.com/app/app.php(127): Controller->fetchByUID()
#15 [internal function]: Closure->{closure}()
#16 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/Handlers/Strategies/RequestResponse.php(41): call_user_func()
#17 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/Route.php(356): Slim\Handlers\Strategies\RequestResponse->__invoke()
#18 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\Route->__invoke()
#19 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/Route.php(334): Slim\Route->callMiddlewareStack()
#20 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/App.php(516): Slim\Route->run()
#21 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/MiddlewareAwareTrait.php(117): Slim\App->__invoke()
#22 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/App.php(407): Slim\App->callMiddlewareStack()
#23 /var/www/rl2020.vitronic.com/vendor/slim/slim/Slim/App.php(315): Slim\App->process()
#24 /var/www/rl2020.vitronic.com/public/index.php(103): Slim\App->run()
#25 {main}