0
通緝我的本地主機上的我的React應用程序測試Twitter OAuth回調。 看到您可以在Twitter應用程序控制臺中使用http://127.0.0.1:8000
,以獲取網站和回調網址字段,以便它與本地主機一起使用。反應Twitter的OAuth回調狀態代碼401
const twitterStream = new Twitter(twitterConfig.TWITTER_CONFIG);
我使用的twitter
NPM和得到以下401個狀態碼錯誤 -
Error: Status Code: 401
at Request.<anonymous> (/Users/me/Projects/project-name/node_modules/twitter/lib/twitter.js:277:28)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestResponse (/Users/me/Projects/pproject-name/node_modules/request/request.js:986:10)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:474:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)
at TLSSocket.socketOnData (_http_client.js:363:20)
at emitOne (events.js:96:13)
at TLSSocket.emit (events.js:188:7)
at readableAddChunk (_stream_readable.js:176:18)
at TLSSocket.Readable.push (_stream_readable.js:134:10)
at TLSWrap.onread (net.js:548:20)
欣賞的幫助。
我已將回調網址更新爲上述內容,並獲得相同的錯誤 – Yasir