You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2019. It is now read-only.
The rawBody property of the request - it is present when I run the function deployed to the cloud, but not when I run the function locally using "firebase serve --only functions". I have tried to install @latest of both firebase-tools and firebase.
I ran into this issue as well (following these docs) and at least as of 1.0.0-beta.4 I have code working in both production and the emulator with the following workaround:
Replace the call to busboy.end(req.rawBody) with...
if (req.rawBody) {
busboy.end(req.rawBody);
}
else {
req.pipe(busboy);
}
It pipes the request body in the emulator, where req.rawBody doesn't exist, and uses the documented behavior in production.
The rawBody property of the request - it is present when I run the function deployed to the cloud, but not when I run the function locally using "firebase serve --only functions". I have tried to install @latest of both firebase-tools and firebase.
Environment details
Steps to reproduce
The text was updated successfully, but these errors were encountered: