Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Contacts
  3. Error: Failed to import contacts (500) / PayloadTooLargeError: request entity too large

Error: Failed to import contacts (500) / PayloadTooLargeError: request entity too large

Scheduled Pinned Locked Moved Solved Contacts
3 Posts 2 Posters 68 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • d19dotcaD
    d19dotcaD
    d19dotca
    wrote last edited by d19dotca
    #1

    Hello,

    I believe there is a limitation somewhere (undocumented though) for contact imports. The HTTP response is a 500 because the request entity too large in the payload upon import.

    For context: I have a VCF file with around 1,700 contacts that I was trying to import for testing purposes, and it errored out with Failed to import contacts (500). The VCF file I was using to import was 14.2 MB in size.

    I could not find this documented, but the stack trace generated in the logs was pretty clear this was a size issue overall. Logs below.

    image.jpeg

    Sep 03 22:31:11 ==> Starting contacts
    Sep 03 22:31:12 CardDAV discovery: http://0.0.0.0:3000/.well-known/carddav
    Sep 03 22:31:12 CardDAV server running at http://0.0.0.0:3000
    Sep 03 22:31:12 Users authenticate with their email and app-specific passwords
    Sep 03 22:32:59 at file:///app/code/node_modules/@cloudron/tegel/index.js:262:14
    Sep 03 22:32:59 at Layer.handleRequest (/app/code/node_modules/router/lib/layer.js:152:17)
    Sep 03 22:32:59 at Layer.handleRequest (/app/code/node_modules/router/lib/layer.js:152:17)
    Sep 03 22:32:59 at Route.dispatch (/app/code/node_modules/router/lib/route.js:117:3) {
    Sep 03 22:32:59 at getRawBody (/app/code/node_modules/@cloudron/tegel/node_modules/raw-body/index.js:116:12)
    Sep 03 22:32:59 at next (/app/code/node_modules/router/lib/route.js:157:13)
    Sep 03 22:32:59 at next (/app/code/node_modules/router/lib/route.js:157:13)
    Sep 03 22:32:59 at read (/app/code/node_modules/@cloudron/tegel/node_modules/body-parser/lib/read.js:113:3)
    Sep 03 22:32:59 at readStream (/app/code/node_modules/@cloudron/tegel/node_modules/raw-body/index.js:163:17)
    Sep 03 22:32:59 at textParser (/app/code/node_modules/@cloudron/tegel/node_modules/body-parser/lib/types/text.js:34:5)
    Sep 03 22:32:59 error: PayloadTooLargeError: request entity too large
    Sep 03 22:32:59 expected: 14165817,
    Sep 03 22:32:59 length: 14165817,
    Sep 03 22:32:59 limit: 10485760,
    Sep 03 22:32:59 path: '/api/addressbooks/5fa3c363/import',
    Sep 03 22:32:59 status: 500,
    Sep 03 22:32:59 type: 'entity.too.large'
    Sep 03 22:32:59 {
    Sep 03 22:32:59 }
    Sep 03 22:32:59 }
    Sep 03 22:34:29 at file:///app/code/node_modules/@cloudron/tegel/index.js:262:14
    Sep 03 22:34:29 at Layer.handleRequest (/app/code/node_modules/router/lib/layer.js:152:17)
    Sep 03 22:34:29 at Layer.handleRequest (/app/code/node_modules/router/lib/layer.js:152:17)
    Sep 03 22:34:29 at Route.dispatch (/app/code/node_modules/router/lib/route.js:117:3) {
    Sep 03 22:34:29 at getRawBody (/app/code/node_modules/@cloudron/tegel/node_modules/raw-body/index.js:116:12)
    Sep 03 22:34:29 at next (/app/code/node_modules/router/lib/route.js:157:13)
    Sep 03 22:34:29 at next (/app/code/node_modules/router/lib/route.js:157:13)
    Sep 03 22:34:29 at read (/app/code/node_modules/@cloudron/tegel/node_modules/body-parser/lib/read.js:113:3)
    Sep 03 22:34:29 at readStream (/app/code/node_modules/@cloudron/tegel/node_modules/raw-body/index.js:163:17)
    Sep 03 22:34:29 at textParser (/app/code/node_modules/@cloudron/tegel/node_modules/body-parser/lib/types/text.js:34:5)
    Sep 03 22:34:29 error: PayloadTooLargeError: request entity too large
    Sep 03 22:34:29 expected: 14165817,
    Sep 03 22:34:29 length: 14165817,
    Sep 03 22:34:29 limit: 10485760,
    Sep 03 22:34:29 path: '/api/addressbooks/5fa3c363/import',
    Sep 03 22:34:29 status: 500,
    Sep 03 22:34:29 type: 'entity.too.large'
    Sep 03 22:34:29 {
    Sep 03 22:34:29 }
    Sep 03 22:34:29 }
    

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0
    • nebulonN
      nebulonN
      nebulon
      Staff
      wrote last edited by
      #2

      Thanks for the report, indeed this is capped at 10mb for now, but I will make a release shortly to bump it up to 100mb

      1 Reply Last reply
      2
      • nebulonN nebulon marked this topic as a question
      • nebulonN
        nebulonN
        nebulon
        Staff
        wrote last edited by
        #3

        This should be fixed with latest contact app release.

        1 Reply Last reply
        1
        • nebulonN nebulon has marked this topic as solved

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Bookmarks
        • Search