dropbox-api-command
dropbox-api-command copied to clipboard
HTML dump overwhelms console upon error
$ dropbox-api put data.GoPro/2017-01-23T07.25.11.000000Z.m4v dropbox:/
2017-02-06T19:57:50 [WebService::Dropbox] [ERROR] https://content.dropboxapi.com/2/files/upload {"mode":"overwrite","path":"/2017-01-23T07.25.11.000000Z.m4v"} -> [413] <!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Dropbox - 4xx</title>
<link href="https://www.dropbox.com/static/css/error.css" rel="stylesheet" type="text/css"/>
<link rel="shortcut icon" href="//www.dropbox.com/static/images/favicon-tarak.ico"/>
</head>
<body>
<div class="figure">
<img src="https://www.dropbox.com/static/images/psychobox.png" alt="Error: 4xx"/>
</div>
<div id="errorbox">
...
That's unnecessary and makes it hard to use when my console floods with HTML and JavaScript gibberish.
I think that this treatment was cured. https://github.com/s-aska/dropbox-api-command/issues/33