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
I'm not sure if this is an issue with your TypeScript type definitions or with the actual library, but contrary to the examples and error messages you receive, there is no buffer() method on RawHttpResponse or BaseHttpResponse.
import{ZObject}from'zapier-platform-core'// 15.5.1 per package.jsonconstfile=awaitz.request({url: download.item,raw: true,})// src/Hydrators.ts(34,44): error TS2339: Property 'buffer' does not exist on type 'RawHttpResponse'.constbuffer=awaitfile.buffer()// CHOKE
Zapier Platform version
15.5.1
Node.js version
18.19.0
Your Operating System
macOS 14.2.1
npm/yarn version
10.2.3
App ID
198292
More Details
Received this on platform and adjusted my code to use await file.buffer():
While requesting "dev_file" from Our App (0.6.0) we ran into an error: You passed {raw: true} in request() - the response.content property is not available! Try response.body.pipe() for streaming, response.buffer() for a buffer, or response.text() for string.
The text was updated successfully, but these errors were encountered:
Bug Description
I'm not sure if this is an issue with your TypeScript type definitions or with the actual library, but contrary to the examples and error messages you receive, there is no
buffer()
method onRawHttpResponse
orBaseHttpResponse
.The following example is invalid, at least for TS:
Reproduction Steps
Zapier Platform version
15.5.1
Node.js version
18.19.0
Your Operating System
macOS 14.2.1
npm/yarn version
10.2.3
App ID
198292
More Details
Received this on platform and adjusted my code to use
await file.buffer()
:The text was updated successfully, but these errors were encountered: