Comments (4)
可能是短时间的通信错误,和网络情况有关系的,稍后再试试。
我这边初始化是正常的。
from douban.fm.
被403了
// console.info(result)
{ stat: 403,
response:
{ _readableState:
{ highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: false,
ended: true,
endEmitted: true,
reading: false,
calledRead: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
objectMode: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: false,
domain: null,
_events:
{ end: [Object],
readable: [Function],
close: [Object],
data: [Function] },
_maxListeners: 10,
socket:
{ _connecting: false,
_handle: [Object],
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_maxListeners: 10,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
onend: null,
destroyed: false,
errorEmitted: false,
bytesRead: 334,
_bytesDispatched: 105,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Object],
ondata: null },
connection:
{ _connecting: false,
_handle: [Object],
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_maxListeners: 10,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
onend: null,
destroyed: false,
errorEmitted: false,
bytesRead: 334,
_bytesDispatched: 105,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Object],
ondata: null },
httpVersion: '1.1',
complete: true,
headers:
{ server: 'nginx',
date: 'Fri, 17 Jan 2014 10:45:01 GMT',
'content-type': 'text/html',
'content-length': '162',
connection: 'keep-alive',
'keep-alive': 'timeout=10' },
trailers: {},
_pendings: [],
_pendingIndex: 0,
url: '',
method: null,
statusCode: 403,
client:
{ _connecting: false,
_handle: [Object],
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_maxListeners: 10,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
onend: null,
destroyed: false,
errorEmitted: false,
bytesRead: 334,
_bytesDispatched: 105,
_pendingData: null,
_pendingEncoding: '',
parser: null,
_httpMessage: [Object],
ondata: null },
_consuming: true,
_dumped: false,
httpVersionMajor: 1,
httpVersionMinor: 1,
upgrade: false,
req:
{ domain: null,
_events: [Object],
_maxListeners: 10,
output: [],
outputEncodings: [],
writable: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_hasBody: true,
_trailer: '',
finished: true,
_hangupClose: false,
socket: [Object],
connection: [Object],
agent: [Object],
socketPath: undefined,
method: 'GET',
path: '/j/app/radio/channels',
_headers: [Object],
_headerNames: [Object],
_header: 'GET /j/app/radio/channels HTTP/1.1\r\nhost: douban.fm\r\naccept: application/json\r\nConnection: keep-alive\r\n\r\n',
_headerSent: true,
parser: null,
res: [Circular] },
pipe: [Function],
addListener: [Function],
on: [Function],
pause: [Function],
resume: [Function],
read: [Function],
request:
{ domain: null,
_events: [Object],
_maxListeners: 10,
readable: true,
writable: true,
callback: [Function],
canTunnel: [Object],
method: 'GET',
localAddress: undefined,
pool: {},
dests: [],
__isRequestRequest: true,
_callback: [Function],
uri: [Object],
_redirectsFollowed: 0,
maxRedirects: 10,
followRedirect: true,
followAllRedirects: false,
redirects: [],
headers: [Object],
setHost: true,
originalCookieHeader: undefined,
_disableCookies: true,
_jar: undefined,
port: 80,
host: 'douban.fm',
clientErrorHandler: [Function],
_parserErrorHandler: [Function],
path: '/j/app/radio/channels',
_json: true,
httpModule: [Object],
agentClass: [Object],
agent: [Object],
_started: true,
href: 'http://douban.fm/j/app/radio/channels',
req: [Object],
ntick: true,
response: [Circular],
_destdata: true,
_ended: true,
_callbackCalled: true },
toJSON: [Function: toJSON],
body: '\r\n<title>403 Forbidden</title>\r\n\r\n
403 Forbidden
\r\nnginx\r\n\r\n\r\n' },
body: '\r\n<title>403 Forbidden</title>\r\n\r\n
403 Forbidden
\r\nnginx\r\n\r\n\r\n' }
from douban.fm.
奇怪,自己curl正常
// header
Cache-Control →
Cache-Control
Tells all caching mechanisms from server to client whether they may cache this object. It is measured in seconds
must-revalidate, no-cache, private
Connection →
Connection
Options that are desired for the connection
keep-alive
Content-Length →531
Content-Type →application/json; charset=utf-8
Date →Fri, 17 Jan 2014 10:54:12 GMT
Expires →Sun, 1 Jan 2006 01:00:00 GMT
Keep-Alive →timeout=10
Pragma →no-cache
Server →nginx
X-DAE-Node →hador13
X-Douban-Mobileapp →0
X-Douban-Splittest →movie.schedule-page-sort,thing.thing_page_order,sns.album_tag,movie.new-cinema-section,movie.category-vs-tag,sns.push_notification
content-encoding →gzip
from douban.fm.
这个问题应该已经解决,尝试升级到 0.1.2
版本,如有问题再 reopen issue :)
from douban.fm.
Related Issues (20)
- 树莓派 B+ 获取声卡失败 HOT 3
- 豆瓣 FM 官方歌词 API HOT 3
- 无法登陆账号 HOT 6
- 程序崩溃
- 编译出错。。 HOT 2
- Could node version 0.12.2 work
- 无法安装 HOT 7
- 登录失败,没有提示信息 HOT 1
- Mac os x 安装出错了 [email protected] install: `node-gyp rebuild` HOT 2
- 无法打开
- 尝试用Docker生成镜像,不知道要怎么加载声卡驱动 HOT 4
- 建议将 UI 与控制逻辑解耦 HOT 2
- douban.fm config 登录不了帐号 HOT 2
- Mac 下无法安装,请问支持多少版本的node?
- 安装失败 HOT 1
- GitHub release
- 树莓派运行douban.fm报错
- mac os
- 庆祝退休
- 退休
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from douban.fm.