I'm getting interpretation errors on correctly return json because it doesn't have enough white space that the intrpretResponse function is expecting. I don't know why it need so many line breaks to work.

Error invoking the REST service REST Credential Service, operation login: Error interpreting response

The code is line 234 from httpclient.inc:

    $client->rawResponse = $response;
    $split = preg_split('/\r\n\r\n/', $response, 2);

The code needs to be:

    $client->rawResponse = $response;
    $split = preg_split('/\r\n/', $response, 2);

patch is attached.

CommentFileSizeAuthor
http_client-preg_split_bug.patch586 bytesemarchak

Comments

dashohoxha’s picture

Status: Active » Needs review
Related issues: +#2163459: Support proxy agents

This issue is fixed by the patch of the following issue: #2163459: Support proxy agents

dashohoxha’s picture

Status: Needs review » Fixed

@emarchak, can you check whether the last commit has fixed this problem?

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.