Seaweedfs filer give me response in html form instead of json

62 views
Skip to first unread message

Azhar Malik

unread,
Nov 23, 2016, 3:26:31 AM11/23/16
to Seaweed File System
Hi,

I am using seaweedfs for file storage and it works very well but I have a small issue which is seaweedfs filer giving a response in HTML form instead of JSON. I have two development machines and it works on one machine as I expected and it works on 2nd machine but giving a response in HTML which is difficult to parse.

How can i fix this issue?

Chris Lu

unread,
Nov 23, 2016, 3:51:39 AM11/23/16
to Seaweed File System
Need to see your request and response .
--
You received this message because you are subscribed to the Google Groups "Seaweed File System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seaweedfs+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Azhar Malik

unread,
Nov 23, 2016, 4:15:23 AM11/23/16
to Seaweed File System
Request:

HTTPoison.get("http://localhost:8888/shigan-rjm/snapshots/", [], hackney: hackney)

Response:

<!DOCTYPE html>\n<html>\n<head>\n\t<title>SeaweedFS Filer</title>\n\t<link rel=\"icon\" href=\"http://7viirv.com1.z0.glb.clouddn.com/seaweed_favicon.png\" sizes=\"32x32\" />\n\t<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css\">\n</head>\n<body>\n\t<div class=\"container\">\n\t\t<div class=\"page-header\">\n\t\t\t<h1>\n\t\t\t\t<img src=\"http://7viirv.com1.z0.glb.clouddn.com/seaweed50x50.png\"></img>\n\t\t\t\tSeaweedFS Filer\n\t\t\t</h1>\n\t\t</div>\n\t\t<div class=\"row\">\n\t\t\t/shigan-rjm/snapshots/\n\t\t</div>\n\n\t\t<div class=\"row\">\n\t\t\t<ul>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<li>\n\t\t\t\t\t<a href=\t\t/shigan-rjm/snapshots/recordings/ >\n\t\t\t\t\t\trecordings\n\t\t\t\t\t</a>\n\t\t\t\t</li>\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t</ul>\n\t\t</div>\n\n\n\t</div>\n</body>\n</html>\n

Chris Lu

unread,
Nov 23, 2016, 9:52:24 AM11/23/16
to Seaweed File System
It looks you are trying to read a folder "/shigan-rjm/snapshots/". So this is expected.

Chris

To unsubscribe from this group and stop receiving emails from it, send an email to seaweedfs+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages