Skip to content

Non existing URL results in Crash - 500 Internal Server Error #1030

Open
@domibay-hugo

Description

@domibay-hugo

Sending a non existing URL to the server produces an Crash in the Application and results in an Internal Server Error - Status Code 500

$ wget -S -O - https://fastapi.metacpan.org/v1/file/_search?path=Data.pm
--2021-07-08 11:36:53--  https://fastapi.metacpan.org/v1/file/_search?path=Data.pm
Resolviendo fastapi.metacpan.org (fastapi.metacpan.org)... 151.101.134.217, 2a04:4e42:1f::729
Conectando con fastapi.metacpan.org (fastapi.metacpan.org)[151.101.134.217]:443... conectado.
Petición HTTP enviada, esperando respuesta... 
  HTTP/1.1 500 Internal Server Error
  Connection: keep-alive
  Content-Length: 315
  Server: nginx
  Content-Type: application/json; charset=utf-8
  Cache-Control: private
  Fastly-Restarts: 1
  Accept-Ranges: bytes
  Date: Thu, 08 Jul 2021 10:36:53 GMT
  Via: 1.1 varnish
  X-Served-By: cache-mad22053-MAD
  X-Cache: MISS
  X-Cache-Hits: 0
  X-Timer: S1625740614.662722,VS0,VE253
2021-07-08 11:36:53 ERROR 500: Internal Server Error.

in the Browser you can see:

{
   "message" : "[Param] ** Unknown param (index) in (search) request. See docs at: http://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html, called from sub Search::Elasticsearch::Role::Client::Direct::__ANON__ at /home/metacpan/metacpan-api/lib/MetaCPAN/Server/Controller.pm line 122."
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions