Skip to content

Malformed Data from PHP ! #56

@kefahB

Description

@kefahB

Hi @EddyVerbruggen ,

I try to implement your plugin but I receive a malformed data from php ! with fetch module it work as expected

To debug I send a response like this from php :

      $headers = [
            'Content-type' => 'application/json; charset=utf-8',
            'Accept' => 'application/json',
        ];
        $l = ["id", "l", "lol"];
        error_log(json_encode($l));
        $data =  \GuzzleHttp\json_encode($l);
        return new Response(200, $headers, $data);

look it is malformed

CONSOLE LOG file:///app/views/menuManager/menuManagerVM.ts:57:24: (
id,
l,
lol
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions