Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common: arrays don't serialize properly in post #757

Open
josephjclark opened this issue Sep 24, 2024 · 0 comments
Open

common: arrays don't serialize properly in post #757

josephjclark opened this issue Sep 24, 2024 · 0 comments
Assignees

Comments

@josephjclark
Copy link
Collaborator

Check this:

post('www', { body: ['x'] })

This will throw an error like:

Serializing the body works.

What's happening is that in the common request helper, we're trying to decide whether to serialize an incoming thing to a JSON string. And if the thing is an array then we basically fail because we don't recognise it.

There's a couple of tests in the code against Iterators and I can't remember why. Are they trying to detect steams or generators or something weird?

@josephjclark josephjclark self-assigned this Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant