Giter Club home page Giter Club logo

Comments (4)

guo-yu avatar guo-yu commented on July 17, 2024

可能是短时间的通信错误,和网络情况有关系的,稍后再试试。
我这边初始化是正常的。

from douban.fm.

lishuaiii avatar lishuaiii commented on July 17, 2024

被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\n
nginx\r\n\r\n\r\n' },
body: '\r\n<title>403 Forbidden</title>\r\n\r\n

403 Forbidden

\r\n
nginx\r\n\r\n\r\n' }

from douban.fm.

lishuaiii avatar lishuaiii commented on July 17, 2024

奇怪,自己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.

guo-yu avatar guo-yu commented on July 17, 2024

这个问题应该已经解决,尝试升级到 0.1.2 版本,如有问题再 reopen issue :)

from douban.fm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.