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

Error fetching following profiles #35

Open
SajjadKiani opened this issue Dec 31, 2024 · 0 comments
Open

Error fetching following profiles #35

SajjadKiani opened this issue Dec 31, 2024 · 0 comments

Comments

@SajjadKiani
Copy link

Error fetching following profiles

i try to fetch fetch user followings using scraper.fetchProfileFollowers() bug get this error:

return new ApiError(response, data, `Response status: ${response.status}`);
           ^

ApiError: Response status: 404
    at ApiError.fromResponse (file:///home/saji/eye-ai-agent/node_modules/agent-twitter-client/dist/node/esm/index.mjs:35:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async requestApi (file:///home/saji/eye-ai-agent/node_modules/agent-twitter-client/dist/node/esm/index.mjs:109:12)
    at async getFollowersTimeline (file:///home/saji/eye-ai-agent/node_modules/agent-twitter-client/dist/node/esm/index.mjs:1516:15)
    at async fetchProfileFollowers (file:///home/saji/eye-ai-agent/node_modules/agent-twitter-client/dist/node/esm/index.mjs:1451:20)
    at async file:///home/saji/eye-ai-agent/index.js:23:23 {
  response: Response {
    [Symbol(state)]: {
      aborted: false,
      rangeRequested: false,
      timingAllowPassed: true,
      requestIncludesCredentials: true,
      type: 'default',
      status: 404,
      timingInfo: {
        startTime: 3259.312931,
        redirectStartTime: 0,
        redirectEndTime: 0,
        postRedirectStartTime: 3259.312931,
        finalServiceWorkerStartTime: 0,
        finalNetworkResponseStartTime: 3605.680247,
        finalNetworkRequestStartTime: 3259.636234,
        endTime: 3606.672621,
        encodedBodySize: 0,
        decodedBodySize: 0,
        finalConnectionTimingInfo: {
          domainLookupStartTime: 3259.312931,
          domainLookupEndTime: 3259.312931,
          connectionStartTime: 3259.312931,
          connectionEndTime: 3259.312931,
          secureConnectionStartTime: 3259.312931,
          ALPNNegotiatedProtocol: undefined
        }
      },
      cacheState: '',
      statusText: 'Not Found',
      headersList: HeadersList {
        cookies: null,
        [Symbol(headers map)]: Map(12) {
          'date' => { name: 'date', value: 'Tue, 31 Dec 2024 19:03:59 UTC' },
          'perf' => { name: 'perf', value: '7402827104' },
          'server' => { name: 'server', value: 'tsa_b' },
          'cache-control' => {
            name: 'cache-control',
            value: 'no-cache, no-store, max-age=0'
          },
          'content-length' => { name: 'content-length', value: '0' },
          'x-transaction-id' => { name: 'x-transaction-id', value: '1f44266d52e5649b' },
          'x-rate-limit-limit' => { name: 'x-rate-limit-limit', value: '50' },
          'x-rate-limit-reset' => { name: 'x-rate-limit-reset', value: '1735672739' },
          'x-rate-limit-remaining' => { name: 'x-rate-limit-remaining', value: '49' },
          'strict-transport-security' => {
            name: 'strict-transport-security',
            value: 'max-age=631138519'
          },
          'x-response-time' => { name: 'x-response-time', value: '5' },
          'x-connection-hash' => {
            name: 'x-connection-hash',
          }
        },
        [Symbol(headers map sorted)]: null
      },
      urlList: [ URL {} ],
      body: {
        stream: ReadableStream {
          [Symbol(kType)]: 'ReadableStream',
          [Symbol(kState)]: [Object: null prototype] {
            disturbed: true,
            reader: [ReadableStreamDefaultReader],
            state: 'closed',
            storedError: undefined,
            transfer: [Object: null prototype],
            controller: [ReadableByteStreamController]
          },
          [Symbol(nodejs.webstream.isClosedPromise)]: {
            promise: [Promise],
            resolve: [Function (anonymous)],
            reject: [Function (anonymous)]
          },
          [Symbol(nodejs.webstream.controllerErrorFunction)]: [Function (anonymous)]
        },
        source: null,
        length: null
      }
    },
    [Symbol(headers)]: Headers {}
  },
  data: undefined
}

Node.js v20.17.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