{"action":"created","issue":{"url":"https://api.github.com/repos/houtianze/bypy/issues/368","repository_url":"https://api.github.com/repos/houtianze/bypy","labels_url":"https://api.github.com/repos/houtianze/bypy/issues/368/labels{/name}","comments_url":"https://api.github.com/repos/houtianze/bypy/issues/368/comments","events_url":"https://api.github.com/repos/houtianze/bypy/issues/368/events","html_url":"https://github.com/houtianze/bypy/issues/368","id":231658128,"number":368,"title":"download HTTP 403 error","user":{"login":"dingxm","id":9291008,"avatar_url":"https://avatars3.githubusercontent.com/u/9291008?v=4","gravatar_id":"","url":"https://api.github.com/users/dingxm","html_url":"https://github.com/dingxm","followers_url":"https://api.github.com/users/dingxm/followers","following_url":"https://api.github.com/users/dingxm/following{/other_user}","gists_url":"https://api.github.com/users/dingxm/gists{/gist_id}","starred_url":"https://api.github.com/users/dingxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dingxm/subscriptions","organizations_url":"https://api.github.com/users/dingxm/orgs","repos_url":"https://api.github.com/users/dingxm/repos","events_url":"https://api.github.com/users/dingxm/events{/privacy}","received_events_url":"https://api.github.com/users/dingxm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":33,"created_at":"2017-05-26T15:23:56Z","updated_at":"2017-11-13T21:33:02Z","closed_at":null,"author_association":"NONE","body":"使用\r\nbypy -d -v downfile\r\n下载时，出现：\r\n<D> [08:04:02] Using requests.packages.urllib3 to disable warnings\r\nLoading Hash Cache File '/u/home/d/dingxm/.bypy/bypy.hashcache.json'...\r\nHash Cache File '/u/home/d/dingxm/.bypy/bypy.hashcache.json' not found, no caching\r\n----\r\nVerbose level = 1\r\nDebug level = 1\r\nConfig directory: '/u/home/d/dingxm/.bypy'\r\nToken file: '/u/home/d/dingxm/.bypy/bypy.json'\r\nHash Cache file: '/u/home/d/dingxm/.bypy/bypy.hashcache.json'\r\nApp root path at Baidu Yun '/apps/bypy'\r\nsys.stdin.encoding = UTF-8\r\nsys.stdout.encoding = UTF-8\r\nsys.stderr.encoding = UTF-8\r\n----\r\n\r\n<D> Token loaded:\r\n<D> {u'access_token': u'21.22a00e45cffb55075f2760f9e64cdc0d.2592000.1498367091.3668432818-1572671', u'expires_in': 2592000, u'session_secret': u'6f99f93c865203390a9e209fe4d44d84', u'scope': u'basic netdisk', u'session_key': u'9mnRdvDF7uGbHU0ow2rCQniKyPW1l/moYlr2rqnVA8/9SChoMxUJvpXb71dXiYtoB7tl8dORt3YbTbR3sK99PNhbaUqDM5WG/A==', u'refresh_token': u'22.88c8380d736eab26d126d392a4a05f12.315360000.1811135091.3668432818-1572671'}\r\n<D> Downloading '/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz' as 'Wang_shouhua2_raw_data/1Ca_H7V5MALXX_L4_1.fq.gz'\r\n<D> Getting info of remote file '/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz' for later verification\r\n<D> __get_file_info(): rdir : /apps/bypy/gaotongl | rfile: 1Ca_H7V5MALXX_L4_1.fq.gz\r\n<D> GET https://pcs.baidu.com/rest/2.0/pcs/file\r\n<D> actargs: /apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz\r\n<D> Params: {u'path': u'/apps/bypy/gaotongl', u'order': u'asc', u'method': u'list', u'by': u'name'}\r\n<D> Full URL: https://pcs.baidu.com/rest/2.0/pcs/file?access_token=21.22a00e45cffb55075f2760f9e64cdc0d.2592000.1498367091.3668432818-1572671&path=%2Fapps%2Fbypy%2Fgaotongl&by=name&order=asc&method=list\r\n<D> HTTP Status Code: 200\r\n<D> 200 OK, processing action\r\n<D> List json: {u'list': [{u'isdir': 0, u'ctime': 1483693095, u'fs_id': 970699283327990, u'mtime': 1483693095, u'path': u'/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz', u'md5': u'13be96a1d0734fa3c6785ddb06dbb4c9', u'size': 73675}, {u'isdir': 0, u'ctime': 1483693095, u'fs_id': 207204666447712, u'mtime': 1483693095, u'path': u'/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_2.fq.gz', u'md5': u'11c8449ece0a52d9f2bee93f86c941f7', u'size': 85348}, {u'isdir': 0, u'ctime': 1483777319, u'fs_id': 516514071186922, u'mtime': 1483777319, u'path': u'/apps/bypy/gaotongl/1P_H7V5MALXX_L4_1.fq.gz', u'md5': u'beef459c397fdb0050bc16456aaaac59', u'size': 82144800}], u'request_id': 3385251397861065748}\r\n<D> File info json: {u'isdir': 0, u'ctime': 1483693095, u'fs_id': 970699283327990, u'mtime': 1483693095, u'path': u'/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz', u'md5': u'13be96a1d0734fa3c6785ddb06dbb4c9', u'size': 73675}\r\n<D> Request all goes fine\r\n<D> Checking if we already have the copy locally\r\n<D> GET https://d.pcs.baidu.com/rest/2.0/pcs/file\r\n<D> actargs: (u'/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz', 0, 73675, 1495811044.394337)\r\n<D> Params: {u'path': u'/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz', u'method': u'download'}\r\n<D> Full URL: http://nb.cache.baidupcs.com/file/13be96a1d0734fa3c6785ddb06dbb4c9?bkt=p3-140013be96a1d0734fa3c6785ddb06dbb4c97f8fb2b9000000011fcb&xcode=506ff19ba707f1b632374f5226454b20f975e5c56061932c0b2977702d3e6764&fid=3668432818-1572671-970699283327990&time=1495811045&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-4ZdYxc0auh7Co027tek7F6HsXr0%3D&to=nbc&fm=Yan,B,U,ny&sta_dx=73675&sta_cs=26&sta_ft=gz&sta_ct=5&sta_mt=5&fm2=Yangquan,B,U,ny&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=140013be96a1d0734fa3c6785ddb06dbb4c97f8fb2b9000000011fcb&sl=76480590&expires=8h&rt=pr&r=197286124&mlogid=3385251803513325565&vuk=-&vbdid=-&fin=1Ca_H7V5MALXX_L4_1.fq.gz&slt=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=3385251803513325565&dp-callid=0.1.1&hps=1&csl=80&csign=SifzgOpEehTVCHSIhJGNfccMClU%3D&by=flowserver\r\n<D> HTTP Status Code: 403\r\n<D> Website returned JSON: {u'error_code': 4, u'error_msg': u'No permission to do this operation'}\r\n<E> [08:04:06] Error accessing 'https://d.pcs.baidu.com/rest/2.0/pcs/file'\r\n<E> [08:04:06]\r\n<E> [08:04:06] Function: __downchunks_act\r\n<E> [08:04:06] Website parameters: {u'path': u'/apps/bypy/gaotongl/1Ca_H7V5MALXX_L4_1.fq.gz', u'method': u'download'}\r\n<E> [08:04:06] Full URL: http://nb.cache.baidupcs.com/file/13be96a1d0734fa3c6785ddb06dbb4c9?bkt=p3-140013be96a1d0734fa3c6785ddb06dbb4c97f8fb2b9000000011fcb&xcode=506ff19ba707f1b632374f5226454b20f975e5c56061932c0b2977702d3e6764&fid=3668432818-1572671-970699283327990&time=1495811045&sign=FDTAXGERLBH-DCb740ccc5511e5e8fedcff06b081203-4ZdYxc0auh7Co027tek7F6HsXr0%3D&to=nbc&fm=Yan,B,U,ny&sta_dx=73675&sta_cs=26&sta_ft=gz&sta_ct=5&sta_mt=5&fm2=Yangquan,B,U,ny&newver=1&newfm=1&secfm=1&flow_ver=3&pkey=140013be96a1d0734fa3c6785ddb06dbb4c97f8fb2b9000000011fcb&sl=76480590&expires=8h&rt=pr&r=197286124&mlogid=3385251803513325565&vuk=-&vbdid=-&fin=1Ca_H7V5MALXX_L4_1.fq.gz&slt=pm&uta=0&rtype=1&iv=0&isw=0&dp-logid=3385251803513325565&dp-callid=0.1.1&hps=1&csl=80&csign=SifzgOpEehTVCHSIhJGNfccMClU%3D&by=flowserver\r\n**<E> [08:04:06] HTTP Response Status Code: 403\r\n<E> [08:04:06] Error JSON returned:{u'error_code': 4, u'error_msg': u'No permission to do this operation'}\r\nError code: 4**\r\nError Description: No permission to do this operation\r\n<E> [08:04:06] Website returned: {\"error_code\":4,\"error_msg\":\"No permission to do this operation\"}\r\n<E> [08:04:06] Waiting 10 seconds before retrying...\r\n<E> [08:04:16] Request Try #2 / 5\r\n"},"comment":{"url":"https://api.github.com/repos/houtianze/bypy/issues/comments/344065593","html_url":"https://github.com/houtianze/bypy/issues/368#issuecomment-344065593","issue_url":"https://api.github.com/repos/houtianze/bypy/issues/368","id":344065593,"user":{"login":"htc502","id":1563590,"avatar_url":"https://avatars1.githubusercontent.com/u/1563590?v=4","gravatar_id":"","url":"https://api.github.com/users/htc502","html_url":"https://github.com/htc502","followers_url":"https://api.github.com/users/htc502/followers","following_url":"https://api.github.com/users/htc502/following{/other_user}","gists_url":"https://api.github.com/users/htc502/gists{/gist_id}","starred_url":"https://api.github.com/users/htc502/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htc502/subscriptions","organizations_url":"https://api.github.com/users/htc502/orgs","repos_url":"https://api.github.com/users/htc502/repos","events_url":"https://api.github.com/users/htc502/events{/privacy}","received_events_url":"https://api.github.com/users/htc502/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T21:33:02Z","updated_at":"2017-11-13T21:33:02Z","author_association":"NONE","body":"测试楼上操作无效。。"}}
{"actor":{"display_login":"htc502"}}