-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't working.Something isn't working.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Description
apify-client-js/src/interceptors.ts
Line 34 in 5093b8f
function serializeRequest(config: ApifyRequestConfig): ApifyRequestConfig { |
apify-client-js/src/interceptors.ts
Lines 49 to 50 in 5093b8f
if (type === 'application/json' && typeof config.data === 'object') { | |
config.data = stringifyWithFunctions(config.data); |
apify-client-js/src/interceptors.ts
Lines 68 to 72 in 5093b8f
function stringifyWithFunctions(obj: JsonObject) { | |
return JSON.stringify(obj, (_key, value) => { | |
return typeof value === 'function' ? value.toString() : value; | |
}); | |
} |
I was wondering why I was receiving {"type":"Buffer","data":[...]}
instead of actual data...
This breaks .call(buffer, { contentType: 'application/json' })
.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working.Something isn't working.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.