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

HTTP Status Code 411 - Length Required #2

Open
tkurmann opened this issue Jan 31, 2017 · 2 comments
Open

HTTP Status Code 411 - Length Required #2

tkurmann opened this issue Jan 31, 2017 · 2 comments

Comments

@tkurmann
Copy link

HTTP Status Code 411 - Length Required error appears when using bighugelabs.

Change line 58 in main.js to

method: "POST",

and it works again.

@Corwynt
Copy link
Owner

Corwynt commented Feb 1, 2017

For me it is still working and the API documentation states nothing about POST Requests(http://words.bighugelabs.com/api.php).

Does it happen with any selected word?

@tkurmann
Copy link
Author

tkurmann commented Feb 1, 2017

Yes, it happens with every word. I agree that POST may not be the best option, but it is working fine for me on Atom v1.13.1 / ubuntu 16.10. What also works is adding

headers: { 'Content-Length': '0' },
while using GET. It seems my version of request-promise loses the content-length header.

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

No branches or pull requests

2 participants