Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

curl: (52) Empty reply from server #7

Open
tosen1990 opened this issue Dec 13, 2018 · 3 comments
Open

curl: (52) Empty reply from server #7

tosen1990 opened this issue Dec 13, 2018 · 3 comments
Assignees
Labels

Comments

@tosen1990
Copy link

When I run docker-compose up -d successfully,I encounter this warning:npm notice created a lockfile as package-lock.json. You should commit this file.
I'm not sure if it's related to the problem when I run the demo Upload hamlet.txt to HDFS :
curl -u hdfs:password
-F 'file=@data/hamlet.txt'
-X POST http://localhost:3000/api/v1/upload/files?hdfspath=/demo/hamlet.txt
The result shows curl: (52) Empty reply from server.
Before I execute it,I could access http://localhost:3000/ page. After that,I couldn't and the hdfs-api service in docker stops. I'm not familiar with node.js. Anyone can help me with this?

@vsimko
Copy link
Member

vsimko commented Dec 13, 2018

yes, package-lock.json should definitely be under version control.
Even better, use yarn which has a similar file yarn.lock

@tosen1990
Copy link
Author

@vsimko I try to rebuild the image by adding package-lock.json and all the steps process okay.But I still got this kind of error. curl: (52) Empty reply from server

@vsimko
Copy link
Member

vsimko commented Dec 14, 2018

I cannot answer your question in this case. But @wipatrick might.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants