Closed nicovigil1 closed 4 years ago
Error: Failure: Cloudflare: Unknown arguments ([object Object]). Did you mean to pass an options object? (on API request to PUT accounts/:accountId/storage/kv/namespaces/:namespaceId/bulk)
Failure: Cloudflare: Unknown arguments ([object Object]). Did you mean to pass an options object? (on API request to PUT accounts/:accountId/storage/kv/namespaces/:namespaceId/bulk)
Code: await cf.enterpriseZoneWorkersKV.addMulti(accountID, namespaceID, kv, {base64: true});
await cf.enterpriseZoneWorkersKV.addMulti(accountID, namespaceID, kv, {base64: true});
The KV is in the structure
{ key: 'key' (string) value: 'value' (typeof Buffer) }
solved it - Apparently you need to add { buffer: true } to each record
{ buffer: true }
{ key: 'key' (string) value: 'value' (typeof Buffer) buffer: true (boolean) }
Error:
Failure: Cloudflare: Unknown arguments ([object Object]). Did you mean to pass an options object? (on API request to PUT accounts/:accountId/storage/kv/namespaces/:namespaceId/bulk)
Code:
await cf.enterpriseZoneWorkersKV.addMulti(accountID, namespaceID, kv, {base64: true});
The KV is in the structure