Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22706

Fix AWS Rekognition (and Google Vision error)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Not A Bug
    • Affects Version/s: 9.2-SNAPSHOT
    • Fix Version/s: 9.2
    • Component/s: Nuxeo Vision

      Description

      Configured nuxeo vision with :

      org.nuxeo.vision.aws.region=eu-west-1
      org.nuxeo.vision.aws.key=AKIAJ..YZQ
      org.nuxeo.vision.aws.secret=4M7yv...rRSx3/kq..hx
      

      When I add a picture I get the console error:

      18:53:40,757 WARN  [VisionOp] Call to google vision API failed
      com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
      {
        "code" : 403,
        "errors" : [ {
          "domain" : "global",
          "message" : "The request is missing a valid API key.",
          "reason" : "forbidden"
        } ],
        "message" : "The request is missing a valid API key.",
        "status" : "PERMISSION_DENIED"
      }
      	at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:145)
      	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
      	at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
      	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:312)
      	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1049)
      	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:410)
      	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
      	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
      	at org.nuxeo.vision.google.GoogleVisionProvider.execute(GoogleVisionProvider.java:119)
      	at org.nuxeo.vision.core.service.VisionImpl.execute(VisionImpl.java:149)
      	at org.nuxeo.vision.core.service.VisionImpl.execute(VisionImpl.java:111)
      	at org.nuxeo.vision.core.operation.VisionOp.run(VisionOp.java:93)
      	at org.nuxeo.vision.core.operation.VisionOp.run(VisionOp.java:78)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:171)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:176)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:128)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:196)
      	at org.nuxeo.automation.scripting.internals.AutomationMapper.executeOperation(AutomationMapper.java:117)
      	at jdk.nashorn.internal.scripts.Script$Recompilation$22$49756AA$\^eval\_.VisionOp(<eval>:1188)
      	at jdk.nashorn.internal.scripts.Script$Recompilation$19$28AA$\^eval\_.run(<eval>:5)
      	at org.nuxeo.automation.scripting.internals.ScriptingOperationImpl$Runnable$$NashornJavaAdapter.run(Unknown Source)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.nuxeo.automation.scripting.internals.AutomationScriptingServiceImpl$Bridge$1.invoke(AutomationScriptingServiceImpl.java:108)
      	at com.sun.proxy.$Proxy223.run(Unknown Source)
      	at org.nuxeo.automation.scripting.internals.ScriptingOperationImpl.run(ScriptingOperationImpl.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:164)
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:176)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:128)
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:196)
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:119)
      	at org.nuxeo.vision.core.listener.PictureConversionChangedListener.handleEvent(PictureConversionChangedListener.java:71)
      	at org.nuxeo.vision.core.listener.PictureConversionChangedListener.handleEvent(PictureConversionChangedListener.java:45)
      	at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$ListenerWork.work(AsyncEventExecutor.java:218)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:373)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:332)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      18:53:40,771 WARN  [PictureConversionChangedListener] org.nuxeo.ecm.automation.OperationException: Failed to invoke operation javascript.PictureVisionDefaultMapper
      

      And AWS is not used or at least no tags are added

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: