Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31787

Low level error exposed on rest api

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.5.11
    • Platform > REST API v2
    • None

    Description

      On Posting following request to /api/ezp/V2/user/sessions

      I get following Response.

      {
          "ErrorMessage": {
              "_media-type": "application\/vnd.ez.api.ErrorMessage+json",
              "errorCode": 500,
              "errorMessage": "Internal Server Error",
              "errorDescription": "Type error: Argument 1 passed to eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher::parse() must be of the type array, string given, called in \/opt\/arithnea\/src\/ezplatform-ee-2.5-lts-arithnea\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/Dispatcher.php on line 113"
      }
      
      
      
      
        
      

      Expected exception:

      { "ErrorMessage": { "_media-type": "application\/vnd.ez.api.ErrorMessage+json", 
      "errorCode": 400, 
      "errorMessage": "Bad Request",
      "errorDescription": "Please provide username and password in json body"
      }
      }
      

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            pebo pebo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: