weixin_39992665
weixin_39992665
2020-12-01 20:41

Not finding a YouTube Video

When i'm typing /play test it telling me "No video was found with a matching title" when im typing /play with a url it telling me "Status code: 429"

console after type: Error: Status code: 429 at ClientRequest. (/home/runner/evobot/node_modules/ytdl-core/node_modules/miniget/dist/index.js:150:31) at Object.onceWrapper (events.js:422:26) at ClientRequest.emit (events.js:315:20) at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:596:27) at HTTPParser.parserOnHeadersComplete (_http_common.js:119:17) at TLSSocket.socketOnData (_http_client.js:469:22) at TLSSocket.emit (events.js:315:20) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:271:9)

when im typing /play {soundcloud url} it send me this in discord message: There was an error playing that Soundcloud track.

and this in console: Error: Request failed with status code 401 at createError (/home/runner/evobot/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/runner/evobot/node_modules/axios/lib/core/settle.js:17:12) at IncomingMessage.handleStreamEnd (/home/runner/evobot/node_modules/axios/lib/adapters/http.js:244:11) at IncomingMessage.emit (events.js:327:22) at endReadableNT (_stream_readable.js:1220:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) { config: { url: 'https://api-v2.soundcloud.com/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e', method: 'get', headers: { Accept: 'application/json, text/plain, /', 'User-Agent': 'axios/0.20.0' }, transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, withCredentials: true, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], data: undefined }, request: ClientRequest { _events: [Object: null prototype] { socket: [Function], abort: [Function], aborted: [Function], connect: [Function], error: [Function], timeout: [Function], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: true, _SNICallback: null, servername: 'api-v2.soundcloud.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'api-v2.soundcloud.com', _readableState: [ReadableState], readable: true, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(asyncId)]: 220, [Symbol(kHandle)]: [TLSWrap], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object] }, connection: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, secureConnecting: true, _SNICallback: null, servername: 'api-v2.soundcloud.com', alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object: null prototype], _eventsCount: 10, connecting: false, _hadError: false, _parent: null, _host: 'api-v2.soundcloud.com', _readableState: [ReadableState], readable: true, _maxListeners: undefined, _writableState: [WritableState], writable: false, allowHalfOpen: false, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: [TLSWrap], _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], [Symbol(res)]: [TLSWrap], [Symbol(verified)]: true, [Symbol(pendingSession)]: null, [Symbol(asyncId)]: 220, [Symbol(kHandle)]: [TLSWrap], [Symbol(kSetNoDelay)]: false, [Symbol(lastWriteQueueSize)]: 0, [Symbol(timeout)]: null, [Symbol(kBuffer)]: null, [Symbol(kBufferCb)]: null, [Symbol(kBufferGen)]: null, [Symbol(kCapture)]: false, [Symbol(kBytesRead)]: 0, [Symbol(kBytesWritten)]: 0, [Symbol(connect-options)]: [Object] }, _header: 'GET /resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /\r\n' + 'User-Agent: axios/0.20.0\r\n' + 'Host: api-v2.soundcloud.com\r\n' + 'Connection: close\r\n' + '\r\n', _onPendingData: [Function: noopPendingOutput], agent: Agent { _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, maxCachedSessions: 100, _sessionCache: [Object], [Symbol(kCapture)]: false }, socketPath: undefined, method: 'GET', insecureHTTPParser: undefined, path: '/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e', _ended: true, res: IncomingMessage { _readableState: [ReadableState], readable: false, _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, socket: [TLSSocket], connection: [TLSSocket], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: [Object], rawHeaders: [Array], trailers: {}, rawTrailers: [], aborted: false, upgrade: false, url: '', method: null, statusCode: 401, statusMessage: 'Unauthorized', client: [TLSSocket], _consuming: false, _dumped: false, req: [Circular], responseUrl: 'https://api-v2.soundcloud.com/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e', redirects: [], [Symbol(kCapture)]: false }, aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, _redirectable: Writable { _writableState: [WritableState], writable: true, _events: [Object: null prototype], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _ended: true, _ending: true, _redirectCount: 0, _redirects: [], _requestBodyLength: 0, _requestBodyBuffers: [], _onNativeResponse: [Function], _currentRequest: [Circular], _currentUrl: 'https://api-v2.soundcloud.com/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e', [Symbol(kCapture)]: false }, [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] { accept: [Array], 'user-agent': [Array], host: [Array] } }, response: { status: 401, statusText: 'Unauthorized', headers: { 'content-length': '0', connection: 'close', date: 'Fri, 23 Oct 2020 20:14:03 GMT', 'x-robots-tag': 'noindex', 'cache-control': 'private, max-age=0', 'referrer-policy': 'no-referrer', 'x-frame-options': 'DENY', 'x-content-type-options': 'nosniff', 'strict-transport-security': 'max-age=63072000', server: 'am/2', vary: 'Origin', 'x-cache': 'Error from cloudfront', via: '1.1 5abf555ecde423a9739d9e60881c683f.cloudfront.net (CloudFront)', 'x-amz-cf-pop': 'ORD50-C1', 'x-amz-cf-id': 'ZL9_hiFIUjdi0-Z3RgSxferTs5dfyKJIbyr8I15ZlTLb5kXHaCR2gg==' }, config: { url: 'https://api-v2.soundcloud.com/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e', method: 'get', headers: [Object], transformRequest: [Array], transformResponse: [Array], timeout: 0, withCredentials: true, adapter: [Function: httpAdapter], xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], data: undefined }, request: ClientRequest { _events: [Object: null prototype], _eventsCount: 7, _maxListeners: undefined, outputData: [], outputSize: 0, writable: true, _last: true, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: false, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: 0, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [TLSSocket], connection: [TLSSocket], _header: 'GET /resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e HTTP/1.1\r\n' + 'Accept: application/json, text/plain, /\r\n' + 'User-Agent: axios/0.20.0\r\n' + 'Host: api-v2.soundcloud.com\r\n' + 'Connection: close\r\n' + '\r\n', _onPendingData: [Function: noopPendingOutput], agent: [Agent], socketPath: undefined, method: 'GET', insecureHTTPParser: undefined, path: '/resolve?url=https%3A%2F%2Fsoundcloud.com%2Fshay-buaron%2Fkobi-peretz&client_id=bda4ada8694db06efcac9cf97b872b3e', _ended: true, res: [IncomingMessage], aborted: false, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, reusedSocket: false, _redirectable: [Writable], [Symbol(kCapture)]: false, [Symbol(kNeedDrain)]: false, [Symbol(corked)]: 0, [Symbol(kOutHeaders)]: [Object: null prototype] }, data: '' }, isAxiosError: true, toJSON: [Function: toJSON] }

该提问来源于开源项目:eritislami/evobot

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

5条回答

  • weixin_39588104 weixin_39588104 5月前

    yo uh i got the same problem the only thing u need to do is to search ur soundcloud client id (https://github.com/zackradisic/node-soundcloud-downloader#client-id) and update it in ur config.json personally it works for me

    Well... It's is not working for me...

    点赞 评论 复制链接分享
  • weixin_39614637 weixin_39614637 5月前

    429 / 401 errors are from your api keys, but anyways i changed it to show real errors in message now

    点赞 评论 复制链接分享
  • weixin_39610468 weixin_39610468 5月前

    yo uh i got the same problem the only thing u need to do is to search ur soundcloud client id (https://github.com/zackradisic/node-soundcloud-downloader#client-id) and update it in ur config.json personally it works for me

    点赞 评论 复制链接分享
  • weixin_39992665 weixin_39992665 5月前

    yo uh i got the same problem the only thing u need to do is to search ur soundcloud client id (https://github.com/zackradisic/node-soundcloud-downloader#client-id) and update it in ur config.json personally it works for me

    thank you so much ! wow it also fixed my youtube!

    点赞 评论 复制链接分享
  • weixin_39942191 weixin_39942191 5月前

    If this is fixed please close since I'm having similar issues and that did not resolve my issue.

    点赞 评论 复制链接分享

相关推荐