error
1Error fetching tweets: ApiResponseError: Request failed with code 403 2 at RequestHandlerHelper.createResponseError (/rbd/pnpm-volume/d9af4806-06c4-4055-abaa-95683c0ef89c/node_modules/twitter-api-v2/dist/cjs/client-mixins/request-handler.helper.js:104:16) 3 at RequestHandlerHelper.onResponseEndHandler (/rbd/pnpm-volume/d9af4806-06c4-4055-abaa-95683c0ef89c/node_modules/twitter-api-v2/dist/cjs/client-mixins/request-handler.helper.js:262:25) 4 at Gunzip.emit (node:events:526:28) 5 at endReadableNT (node:internal/streams/readable:1345:12) 6 at processTicksAndRejections (node:internal/process/task_queues:83:21) { 7 error: true, 8 type: 'response', 9 code: 403, 10 headers: { 11 date: 'Sun, 24 Mar 2024 04:22:10 UTC', 12 perf: '7469935968', 13 server: 'tsa_b', 14 'set-cookie': [ 15 'guest_id=v1%3A171125413004808473; Max-Age=34214400; Expires=Thu, 24 Apr 2025 04:22:10 GMT; Path=/; Domain=.twitter.com; Secure; SameSite=None' 16 ], 17 'api-version': '2.95', 18 'content-type': 'application/json; charset=utf-8', 19 'cache-control': 'no-cache, no-store, max-age=0', 20 'content-length': '328', 21 'x-access-level': 'read', 22 'x-frame-options': 'SAMEORIGIN', 23 'content-encoding': 'gzip', 24 'x-transaction-id': '31ed000a8d001098', 25 'x-xss-protection': '0', 26 'x-rate-limit-limit': '40000', 27 'x-rate-limit-reset': '1711254949', 28 'content-disposition': 'attachment; filename=json.json', 29 'x-content-type-options': 'nosniff', 30 'x-rate-limit-remaining': '39998', 31 'strict-transport-security': 'max-age=631138519', 32 'x-response-time': '13', 33 'x-connection-hash': '27dc75c45ab2f6430c55e036d053de80dd26706b33e085d311414c8dd1154438', 34 connection: 'close' 35 }, 36 rateLimit: { limit: 40000, remaining: 39998, reset: 1711254949 }, 37 data: { 38 client_id: '27837829', 39 detail: 'When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.', 40 registration_url: 'https://developer.twitter.com/en/docs/projects/overview', 41 title: 'Client Forbidden', 42 required_enrollment: 'Appropriate Level of API Access', 43 reason: 'client-not-enrolled', 44 type: 'https://api.twitter.com/2/problems/client-forbidden' 45 } 46} 47[] 48No tweets found.
0 コメント