Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-81

Fix invalid input handling for Custom Image

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: NXP-10.3
    • Component/s: ML Custom Model
    • Tags:
    • Sprint:
      nxAI Sprint 10.3.7
    • Story Points:
      3

      Description

      When calling the custom model with invalid params it returns a http 500.

      Input

      {"instances":[{"ecm:path":"/default-domain/workspaces/workit/super","dc:title":"super"}]}

      Output

      172.17.0.1 - - [29/Aug/2018:13:39:10 +0000] "POST /predict HTTP/1.1" 500 291 "-" "Apache-HttpClient/4.5.3 (Java/1.8.0_181)"
      start
      [2018-08-29 13:39:57,235] ERROR in app: Exception on /predict [POST]
      Traceback (most recent call last):
        File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 2292, in wsgi_app
          response = self.full_dispatch_request()
        File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1815, in full_dispatch_request
          rv = self.handle_user_exception(e)
        File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1718, in handle_user_exception
          reraise(exc_type, exc_value, tb)
        File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1813, in full_dispatch_request
          rv = self.dispatch_request()
        File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1799, in dispatch_request
          return self.view_functions[rule.endpoint](**req.view_args)
        File "/opt/lib/nxAI/serving/webApp.py", line 114, in predict
          results = map(gRpcClient.get_results, instances)
        File "/opt/lib/nxAI/serving/predictionServiceTFServing.py", line 48, in get_results
          prediction = result_future.result()
        File "/usr/local/lib/python2.7/dist-packages/grpc/_channel.py", line 276, in result
          raise self
      _Rendezvous: <_Rendezvous of RPC that terminated with:
      	status = StatusCode.INVALID_ARGUMENT
      	details = "input size does not match signature: 2!=1 len([ecm:path,dc:title]) != len([question])"
      	debug_error_string = "{"created":"@1535549997.234565185","description":"Error received from peer","file":"src/core/lib/surface/call.cc","file_line":1095,"grpc_message":"input size does not match signature: 2!=1 len([ecm:path,dc:title]) != len([question])","grpc_status":3}"
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h