We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const bentData = bent(myUrl, 'POST', 'json', 200); const response = await bentData(myKey, myData); return response;
Error: Incorrect statusCode: 201
I got this error log sometimes. But, the myData is uploaded completely. why do I see this error..?
The text was updated successfully, but these errors were encountered:
The http server is returning the correct response code for a successful upload, a 201, but you’ve told bent to expect a 200 ;)
Change to bent(myURl, ‘POST’, ‘json’, 201) and it should work fine.
bent(myURl, ‘POST’, ‘json’, 201)
Sorry, something went wrong.
The http server is returning the correct response code for a successful upload, a 201, but you’ve told bent to expect a 200 ;) Change to bent(myURl, ‘POST’, ‘json’, 201) and it should work fine.
I fixed it like this.
const bentData = bent(esUrl, esMethod, 'json', 200, 201)
it works well. Thank you so much for quick answering. ^^
No branches or pull requests
const bentData = bent(myUrl, 'POST', 'json', 200);
const response = await bentData(myKey, myData);
return response;
I got this error log sometimes.
But, the myData is uploaded completely.
why do I see this error..?
The text was updated successfully, but these errors were encountered: