firebase-tools: Firebase emulator error "Unexpected end of multipart data"

[REQUIRED] Environment info

7.0.2

macOS

[REQUIRED] Test case

Create cloud function as https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/functions/http/index.js

exports.uploadFile = (req, res) => { please see in the example link above };

run firebase serve

[REQUIRED] Steps to reproduce

Create cloud function as https://github.com/GoogleCloudPlatform/nodejs-docs-samples/blob/master/functions/http/index.js

exports.uploadFile = (req, res) => { please see in the example link above };

run firebase serve

Call the function via HTTP POST with Content-Type multipart/form-data

[REQUIRED] Expected behavior

Run cloud function and response

[REQUIRED] Actual behavior

events.js:174 throw er; // Unhandled ‘error’ event ^

Error: Unexpected end of multipart data at /Users/jarruspong/Downloads/Dev/concordian-api/node_modules/dicer/lib/Dicer.js:62:28 at process._tickCallback (internal/process/next_tick.js:61:11) Emitted ‘error’ event at: at Busboy.emit (/Users/jarruspong/Downloads/Dev/concordian-api/node_modules/busboy/lib/main.js:38:33) at Dicer.<anonymous> (/Users/jarruspong/Downloads/Dev/concordian-api/node_modules/busboy/lib/types/multipart.js:281:9) at Dicer.emit (events.js:198:13) at Dicer.emit (/Users/jarruspong/Downloads/Dev/concordian-api/node_modules/dicer/lib/Dicer.js:80:35) at /Users/jarruspong/Downloads/Dev/concordian-api/node_modules/dicer/lib/Dicer.js:62:14 at process._tickCallback (internal/process/next_tick.js:61:11)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 22 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Same issue with firebase-tools 11.18.0

@Salman9000 that fix will be released in version 7.1.0

@Salman9000 it will likely be today but we don’t offer release timelines. Please subscribe to releases on Github to get notifications.