salesforce/refocus

error when uploading lens

jaisingh opened this issue · 5 comments

Getting the following error when following directions on uploading a lens:

https://salesforce.github.io/refocus/docs/01-quickstart.html , Step 4

  "errors": [
    {
      "message": "request entity too large",
      "source": "",
      "value": "",
      "type": "Error",
      "description": ""
    }
  ]
}```

Hi Jai! How big is the lens library you're trying to upload?

The default payload limit is defined in config.js
defaultPayloadLimit = '200MB';
but you can override it with payloadLimit environment variable.

its the MultiTable.zip listed as part of the directions.

Hmmm. The current version there is only 226 KB. Are you testing this in a local dev env on Heroku or some other environment?

If you're using Postman, make sure there are no request headers (other than "Authorization", if you have token enforcement enabled).