Azure-docs: Error Encrypting Data

Created on 1 Apr 2020  Â·  9Comments  Â·  Source: MicrosoftDocs/azure-docs

When i tried to save a project in the sample labeling tool, i gets an error "Error encrypting data - Cannot read property 'importKey' of undefined. May i know what am i missing?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 cognitive-servicesvc cxp forms-recognizesubsvc product-question triaged

All 9 comments

@kennethckh Could you please confirm if you have used the security token in your project settings? If yes, Is it possible to create a new token and check if the save action is successfull? It would be great if you can also try to create a new dummy project and check if the same action works on the new project.

yes, in fact i tried both ways, creating new tokens, and also new project. both ways gave me the same error. the container image i pulled from "mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool"

@kennethckh Could you try restarting your docker service on your machine and then run the container again and follow the steps? I have tried to replicate the issue but the steps in the document worked fine for me.

I have tried to remove everything from my azure and setup again from the start.

  1. Create a resource group
  2. Create a storage container (added CORS setting as describe in the document and generated a SAS)
  3. Create a cognitive service (form recognizer preview and noted down the URL and Key)
  4. Create a container service and pull the image from "mcr.microsoft.com/azure-cognitive-services/custom-form/labeltool"

when i create a new project, using the SAS URL for the connector and form recognizer URL and key, i still get the same error "Error encrypting data - Cannot read property 'importKey' of undefined"

Please advice. Thank you.

@kennethckh Could you please try to check the same with a different browser? I have and it works fine with chrome version 80.0.3987.149 (Official Build) (64-bit) as the error could be browser related.

If possible can you try this on a different machine or a new installation of a browser?

Yes, I have upgraded my chrome browser to run the same version 80.0.3987.149 (Official Build) (64-bit) as yours. However, i still have the same error. But you are right about being browser related. I tried it on FireFox and i didnt get this error.

@kennethckh Glad that this works for you. I think with chrome you are facing some issue related to the browser, we will pass this on to our team so it can be handled better in the future.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag @RohitMungi-MSFT in your reply.

I confirm that using Firefox works, using Chromium (edge) does not

I have the same error, but it doesn't work for me using FireFox

Was this page helpful?
0 / 5 - 0 ratings

Related issues

behnam89 picture behnam89  Â·  3Comments

monteledwards picture monteledwards  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments