Skip to content

Conversation

@jonahsnider
Copy link
Contributor

The fetch API will convert the body parameter to a string before sending the request. For bodies that are JSON, the JSON object will get converted to a string and become [object Object].

This uses JSON.stringify() to convert the object into a JSON string before sending the request.

@jonahsnider
Copy link
Contributor Author

jonahsnider commented Aug 3, 2019

$ sudo apt-get install -qq --yes python3 php5-curl php5-cli
210E: Unable to locate package php5-curl
211E: Package 'php5-cli' has no installation candidate

- sudo apt-get install -qq --yes python3 php5-curl php5-cli

Looks like the same error is still present in the installation of php5-cli, which is why tests are failing.

@sebastianhaas
Copy link

@darrenjennings would you mind running this again if the CI problem is resolved by now?

@darrenjennings
Copy link
Contributor

@sebastianhaas thanks for the note, this was due to #146, which is now fixed. Rerunning and will look shortly

@darrenjennings
Copy link
Contributor

@pizzafox would you mind rebasing onto master so CI will run the tests?

@darrenjennings
Copy link
Contributor

It looks like the test fixtures for fetch will need to be updated

darrenjennings and others added 2 commits October 25, 2019 12:16
@jonahsnider
Copy link
Contributor Author

jonahsnider commented Oct 25, 2019

This broke a bunch of tests (that are flawed right now) that are looking for a JSON object rather than the string version to be the body.

@develohpanda
Copy link
Contributor

Closing this PR in favor of #179

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants