Comments (6)
I can confirm. I tried everything, but could not make .field() work. I could post data only with .send().
from chai-http.
Hey @Doogiemuc thanks for the issue. Thanks @C00bra for confirming
Do either of you have the time to work on a PR fixing the documentation? Contributors get a permanent place in our hall of fame.
from chai-http.
I hit this issue also. I don't believe the documentation/README is updated with use send({ obj: property})
instead of .field()
for POST
.
@keithamus should there even be a .field() method for PUT
on forms? I don't believe HTML forms support PUT
.
from chai-http.
Same issue here #165
Thanks a lot for not documenting it. I wasted 1 hour to understand that plugin's README is just a fantasy that has nothing to do with reality
.send()
by the way doesn't work either
from chai-http.
@wzup As mentioned in the other thread, please check out #97 (comment); I think it may relate to the issue you're running into.
I get that you're frustrated but please understand that this is a 100% community-driven project that relies on people like yourself discovering issues or things that frustrate them and then submitting a PR to fix them so that future people don't run into the same issue. The original creator of this plugin hasn't been around since like 2013. I've never used this plugin myself but check in from time-to-time to help troubleshoot an issue or review a PR.
from chai-http.
This actually does seem to be supported now. I came across this thread googling some other issue - I'm able to use the .field()
method just fine. Maybe this issue can be closed?
from chai-http.
Related Issues (20)
- Cannot read property 'headers' of undefined at Assertion.<anonymous> HOT 14
- Security Vulnerability: Update superagent Version to Fix! HOT 2
- Is there a way to share cookies between multiple agents?
- How do i POST xml request in chai? HOT 1
- Recommended way to extend the request class?
- Chai-http [POST] does not allow to send an Array on bodyParameters (API Testing & Javascript) HOT 1
- Superagent-proxy integration Failed
- Bump Chai-Http version to get package updates HOT 10
- Property 'request' does not exist on type 'Response'.ts (2339) HOT 3
- Issue with MongoDB ObjectId in tested function?
- Assertion error expending cookie
- [possibly bug] aws-sdk and multer-s3 with chai-http agent promise not resolved HOT 1
- Issues and PRs are piling. Are maintainers needed? HOT 1
- How to send gzip compressed body
- publish to npm actual version HOT 2
- Found CVE-2022-29622 in one of your dependent library- superagent
- How to send multiple json in post request using supertest
- Vulnerability in cookiejar CVE-2022-25901 HOT 1
- (Property 'calledWith' does not exist on type 'Assertion') error as soon as I add chai-http to my project HOT 5
- How to use chai-http and chai 5? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chai-http.