UrielCh/proxmox-api

FileRestore: unexpected contentType "application/octet-stream"

DariusRDev opened this issue · 8 comments

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,
                }
);

Problem your tinyrequest Lib doesnt work with streams

undici gonna replace this tiny lib, past a code sample to help me to reproduce the issue. and fix this case.

just migrated to undici fetch, and need some test...

have you another call that returns a stream, I do not have any Proxmox Backup Server available here to test.

Sry i dont now of any other endpoint

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.

you can try V 0.4.2.
you will get back a { ReadableStream } from "stream/web"

let's say that it's fixed.