command line, Linux, Mac OS X

Error: That port is already in use

kill -9 $(lsof -i TCP:3000 | grep LISTEN | awk ‘{print $2}’)

Advertisements
Loopback, nodejs

Error: maxFileSize exceeded, received 10551117 bytes of field data (max is 10485760)

When you try to upload file bigger that 20MB and if you get the error message “maxFileSize exceeded” then increase the maxFileSize on datasources.json file.

"filestorage": {
    "name": "filestorage",
    "connector": "loopback-component-storage",
    "provider": "amazon",
    "key": "Your aws s3 api key",
    "keyId": "Your aws s3 keyId",
    "maxFileSize": "52428800"
  }