Skip to content

Response always empty #2

Description

@ghuisman19

I tried to get the xml using this API. Server response is NULL.
Guzzle give me this error:

[error] => The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information.
[url] => https://home.textkernel.nl/sourcebox/extract.do?useJsonErrorMsg=true&useHttpErrorCodes=true

I added sink option to the Guzzle client:
$this->client = new Client([
'base_uri' => $this->baseUri,
'sink' => 'C:\Webserver\sink.txt',
'verify' => false,
]);

In C:\Webserver\sink.txt i get a complete XML file with the extracted CV.

Is there a way to fix this problem ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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