FileRestore: unexpected contentType "application/octet-stream"
DariusRDev opened this issue · 8 comments
DariusRDev commented
This Request is needed to download a file from the file Restore
let result = await proxmox.nodes
.$("node02-prox")
.storage.$("prox-back-02")
["file-restore"].download.$get({
volume: backup.volid,
filepath: .path,
}
);
DariusRDev commented
Problem your tinyrequest Lib doesnt work with streams
UrielCh commented
undici gonna replace this tiny lib, past a code sample to help me to reproduce the issue. and fix this case.
UrielCh commented
just migrated to undici fetch, and need some test...
UrielCh commented
have you another call that returns a stream, I do not have any Proxmox Backup Server available here to test.
DariusRDev commented
Sry i dont now of any other endpoint
UrielCh commented
okey.
can I set up a Proxmox Backup Server
inside a Proxmox and reference it from the Proxmox it runs on? that should be a valid test environment.
UrielCh commented
you can try V 0.4.2.
you will get back a { ReadableStream } from "stream/web"
UrielCh commented
let's say that it's fixed.