Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-1312

Query API returns 500 instead of 404

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress
    • Medium
    • Resolution: Unresolved
    • Honolulu Release
    • Kohn Release
    • MULTICLOUD-K8S
    • None

    Description

      Query API returns 500 instead of 404 when no data can be found for valid query

      ubuntu@host-10-0-220-8:~$ curl -i "http://10.254.185.4:30999/v1/instance/relaxed_brahmagupta/query?ApiVersion=v1&Kind=Deployment&Name=test-vnf-vpg"
      HTTP/1.1 500 Internal Server Error
      Content-Type: text/plain; charset=utf-8
      X-Content-Type-Options: nosniff
      Date: Tue, 16 Mar 2021 22:04:06 GMT
      Content-Length: 288
      
      Querying Resource: Preparing mapper based on GVK: no matches for kind "Deployment" in version "v1"
      {"request":{"rb-name":"","rb-version":"","profile-name":"","release-name":"","cloud-region":"","labels":null,"override-values":null},"ready":false,"resourceCount":0,"resourcesStatus":null}
      ubuntu@host-10-0-220-8:~$
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kbanka Konrad Bańka
            rajewluk Lukasz Rajewski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: