Skip to content

Question: HTTP Error (400): 'offset' not supported #10

Closed
@mainul2k2

Description

@mainul2k2

HI,
Thanks for the awesome plugin.

i am using below two lines to return all printers in my controller file.

$printers = Printing::printers();
return $printers;

It does not show anything.

Then i find rawlink/laravel-printing/src/printing.php file where i pass the $e. Then i get the error [{"statusCode":"400","message":"HTTP Error (400): 'offset' not supported"}]

public function printers(): Collection
{
    try {
        $printers = $this->driver->printers();
    } catch (\Throwable $e) {
        $printers = collect([$e]);
    }
    $this->resetDriver();
    return $printers;
}

Am i doing something wrong?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions