Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to obtain list related data #209

Open
lxccc812 opened this issue Nov 11, 2024 · 0 comments
Open

Unable to obtain list related data #209

lxccc812 opened this issue Nov 11, 2024 · 0 comments

Comments

@lxccc812
Copy link

  • Operating System: Win11
  • Node version: 20.17.0
  • app-play-scraper version: 0.18.0

Description:

Describe your issue here
Unable to obtain list related data according to the instance.

Example code:

// Put code to reproduce the issue here

var store = require('app-store-scraper')

store
    .list({
        collection: store.collection.TOP_FREE_IPAD,
        category: store.category.GAMES_ACTION,
        num: 2
    })
    .then(console.log)
    .catch(console.log)

Error message:

Put error message here

{
  response: <ref *1> IncomingMessage {
    _events: {
      close: [Array],
      error: [Function (anonymous)],
      data: [Function (anonymous)],
      end: [Array],
      readable: undefined
    },
    _readableState: ReadableState {
      highWaterMark: 16384,
      buffer: [],
      bufferIndex: 0,
      length: 0,
      pipes: [],
      awaitDrainWriters: null,
      [Symbol(kState)]: 194779004
    },
    _maxListeners: undefined,
    socket: null,
    httpVersionMajor: 1,
    httpVersionMinor: 1,
    httpVersion: '1.1',
    complete: true,
    rawHeaders: [
      'Content-Type',
      'text/html',
      'Content-Length',
      '548',
      'X-Apple-Jingle-Correlation-Key',
      'GE7AA5MWOWPZ4LSQJNIKVMIPWY',
      'X-Daiquiri-Instance',
      'daiquiri:12282003:mr47p00it-qujn03120502:7987:24RELEASE235:daiquiri-amp-store-l7shared-ext-001-mr',
      'Expires',
      'Mon, 11 Nov 2024 02:40:47 GMT',
      'Cache-Control',
      'max-age=0, no-cache, no-store',
      'Pragma',
      'no-cache',
      'Date',
      'Mon, 11 Nov 2024 02:40:47 GMT',
      'Vary',
      'X-Apple-Store-Front, Cookie',
      'Vary',
      'X-Apple-Store-Front, Cookie',
      'X-Apple-Partner',
      'origin.0',
      'X-Cache',
      'MISS from jp1.go2https.com',
      'Server',
      'daiquiri/5',
      'Via',
      '1.1 jp1.go2https.com (squid/3.5.21)',
      'Connection',
      'keep-alive',
      'Keep-Alive',
      'timeout=15'
    ],
    rawTrailers: [],
    joinDuplicateHeaders: undefined,
    aborted: false,
    upgrade: false,
    url: '',
    method: null,
    statusCode: 404,
    statusMessage: 'Not Found',
    client: Socket {
      connecting: false,
      _hadError: false,
      _parent: null,
      _host: null,
      _closeAfterHandlingError: false,
      _events: [Object],
      _readableState: [ReadableState],
      _writableState: [WritableState],
      allowHalfOpen: false,
      _maxListeners: undefined,
      _eventsCount: 6,
      _sockname: null,
      _pendingData: null,
      _pendingEncoding: '',
      server: null,
      _server: null,
      timeout: 5000,
      parser: null,
      _httpMessage: null,
      [Symbol(async_id_symbol)]: -1,
      [Symbol(kHandle)]: [TCP],
      [Symbol(lastWriteQueueSize)]: 0,
      [Symbol(timeout)]: Timeout {
        _idleTimeout: 5000,
        _idlePrev: [TimersList],
        _idleNext: [TimersList],
        _idleStart: 953,
        _onTimeout: [Function: bound ],
        _timerArgs: undefined,
        _repeat: null,
        _destroyed: false,
        [Symbol(refed)]: false,
        [Symbol(kHasPrimitive)]: false,
        [Symbol(asyncId)]: 24,
        [Symbol(triggerId)]: 22
      },
      [Symbol(kBuffer)]: null,
      [Symbol(kBufferCb)]: null,
      [Symbol(kBufferGen)]: null,
      [Symbol(shapeMode)]: true,
      [Symbol(kCapture)]: false,
      [Symbol(kSetNoDelay)]: true,
      [Symbol(kSetKeepAlive)]: true,
      [Symbol(kSetKeepAliveInitialDelay)]: 1,
      [Symbol(kBytesRead)]: 0,
      [Symbol(kBytesWritten)]: 0
    },
    _consuming: false,
    _dumped: false,
    req: ClientRequest {
      _events: [Object: null prototype],
      _eventsCount: 5,
      _maxListeners: undefined,
      outputData: [],
      outputSize: 0,
      writable: true,
      destroyed: true,
      _last: true,
      chunkedEncoding: false,
      shouldKeepAlive: true,
      maxRequestsOnConnectionReached: false,
      _defaultKeepAlive: true,
      useChunkedEncodingByDefault: false,
      sendDate: false,
      _removedConnection: false,
      _removedContLen: false,
      _removedTE: false,
      strictContentLength: false,
      _contentLength: 0,
      _hasBody: true,
      _trailer: '',
      finished: true,
      _headerSent: true,
      _closed: true,
      socket: [Socket],
      _header: 'GET http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeipadapplications//genre=7001/limit=2/json?s=143441 HTTP/1.1\r\n' +
        'host: ax.itunes.apple.com\r\n' +
        'Connection: keep-alive\r\n' +
        '\r\n',
      _keepAliveTimeout: 0,
      _onPendingData: [Function: nop],
      agent: [Agent],
      socketPath: undefined,
      method: 'GET',
      maxHeaderSize: undefined,
      insecureHTTPParser: undefined,
      joinDuplicateHeaders: undefined,
      path: 'http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeipadapplications//genre=7001/limit=2/json?s=143441',
      _ended: true,
      res: [Circular *1],
      aborted: false,
      timeoutCb: null,
      upgradeOrConnect: false,
      parser: null,
      maxHeadersCount: null,
      reusedSocket: false,
      host: '127.0.0.1',
      protocol: 'http:',
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false,
      [Symbol(kBytesWritten)]: 0,
      [Symbol(kNeedDrain)]: false,
      [Symbol(corked)]: 0,
      [Symbol(kOutHeaders)]: [Object: null prototype],
      [Symbol(errored)]: null,
      [Symbol(kHighWaterMark)]: 16384,
      [Symbol(kRejectNonStandardBodyWrites)]: false,
      [Symbol(kUniqueHeaders)]: null
    },
    _eventsCount: 4,
    request: Request {
      _events: [Object: null prototype],
      _eventsCount: 5,
      _maxListeners: undefined,
      headers: {},
      method: 'GET',
      callback: [Function (anonymous)],
      readable: true,
      writable: true,
      explicitMethod: true,
      _qs: [Querystring],
      _auth: [Auth],
      _oauth: [OAuth],
      _multipart: [Multipart],
      _redirect: [Redirect],
      _tunnel: [Tunnel],
      setHeader: [Function (anonymous)],
      hasHeader: [Function (anonymous)],
      getHeader: [Function (anonymous)],
      removeHeader: [Function (anonymous)],
      localAddress: undefined,
      pool: {},
      dests: [],
      __isRequestRequest: true,
      _callback: [Function (anonymous)],
      uri: [Url],
      proxy: [Url],
      tunnel: false,
      setHost: true,
      originalCookieHeader: undefined,
      _disableCookies: true,
      _jar: undefined,
      port: '7777',
      host: '127.0.0.1',
      path: 'http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeipadapplications//genre=7001/limit=2/json?s=143441',
      httpModule: [Object],
      agentClass: [Function],
      agent: [Agent],
      _started: true,
      href: 'http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/ws/RSS/topfreeipadapplications//genre=7001/limit=2/json?s=143441',
      req: [ClientRequest],
      ntick: true,
      response: [Circular *1],
      originalHost: 'ax.itunes.apple.com',
      originalHostHeaderName: 'host',
      responseContent: [Circular *1],
      _destdata: true,
      _ended: true,
      _callbackCalled: true,
      [Symbol(shapeMode)]: false,
      [Symbol(kCapture)]: false
    },
    toJSON: [Function: responseToJSON],
    caseless: Caseless { dict: [Object] },
    body: '\n' +
      '<!DOCTYPE html>\n' +
      '<html lang="en">\n' +
      '<head>\n' +
      '    <style>\n' +
      '        body {\n' +
      '            font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;\n' +
      '            font-size: 15px;\n' +
      '            font-weight: 200;\n' +
      '            line-height: 20px;\n' +
      '            color: #4c4c4c;\n' +
      '            text-align: center;\n' +
      '        }\n' +
      '\n' +
      '        .section {\n' +
      '            margin-top: 50px;\n' +
      '        }\n' +
      '    </style>\n' +
      '</head>\n' +
      '<body>\n' +
      '<div class="section">\n' +
      '    <h1>&#63743;</h1>\n' +
      '\n' +
      '    <h3>Not Found</h3>\n' +
      '    <p>The requested page could not be found.</p>\n' +
      '</div>\n' +
      '</body>\n' +
      '</html>\n' +
      '\n',
    [Symbol(shapeMode)]: true,
    [Symbol(kCapture)]: false,
    [Symbol(kHeaders)]: {
      'content-type': 'text/html',
      'content-length': '548',
      'x-apple-jingle-correlation-key': 'GE7AA5MWOWPZ4LSQJNIKVMIPWY',
      'x-daiquiri-instance': 'daiquiri:12282003:mr47p00it-qujn03120502:7987:24RELEASE235:daiquiri-amp-store-l7shared-ext-001-mr',
      expires: 'Mon, 11 Nov 2024 02:40:47 GMT',
      'cache-control': 'max-age=0, no-cache, no-store',
      pragma: 'no-cache',
      date: 'Mon, 11 Nov 2024 02:40:47 GMT',
      vary: 'X-Apple-Store-Front, Cookie, X-Apple-Store-Front, Cookie',
      'x-apple-partner': 'origin.0',
      'x-cache': 'MISS from jp1.go2https.com',
      server: 'daiquiri/5',
      via: '1.1 jp1.go2https.com (squid/3.5.21)',
      connection: 'keep-alive',
      'keep-alive': 'timeout=15'
    },
    [Symbol(kHeadersCount)]: 32,
    [Symbol(kTrailers)]: null,
    [Symbol(kTrailersCount)]: 0
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant