Repository navigation
generateAuthLink throwing 404 error #280
zeentraland
started this conversation in
General
Replies: 4 comments 4 replies
|
Facing the same issue. It was working fine a month ago, looks like twitter has changed its URL endpoint. |
0 replies
|
Hi, function getRequestClient() {
return new TwitterApi({
appKey: process.env.CONSUMER_TOKEN!,
appSecret: process.env.CONSUMER_SECRET!,
});
}
const options = await getRequestClient().generateAuthLink('http://127.0.0.1:5000/callback')
console.log(options)shows: {
url: 'https://api.twitter.com/oauth/authenticate?oauth_token=xxx',
oauth_token: 'xxx',
oauth_token_secret: 'xxx',
oauth_callback_confirmed: 'true'
}Try to print the full error to know whats happening. } catch (err) {
console.log(err, err.stack, err.toJSON?.())
} |
0 replies
|
Seems to be related to this issue at the API end |
3 replies
|
The solution so far that worked for me was using a VPN. The server was based in Germany where the error hasn't occurred(yet). |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Trying to generate an auth link for 3 legged OAuth1 login, but getting 404 error everytime
ApiResponseError: Request failed with code 404 at RequestHandlerHelper.createResponseError (E:\twitter-auth-app\twitter-api-v2-user-oauth-flow-example\node_modules\twitter-api-v2\dist\client-mixins\request-handler.helper.js:99:16) at RequestHandlerHelper.onResponseEndHandler (E:\twitter-auth-app\twitter-api-v2-user-oauth-flow-example\node_modules\twitter-api-v2\dist\client-mixins\request-handler.helper.js:248:25) at Gunzip.emit (events.js:315:20) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21) { error: true, type: 'response', code: 404,Simply cloned the https://github.com/alkihis/twitter-api-v2-user-oauth-flow-example repo, and set the consumer keys and getting this error.
Also tried the generateAuthLink method in isolation outside the context of the above example here as shown in the attached image, but still getting the same error.

Any likely reason for this error? @alkihis
All reactions