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

Some Users Services cannot work #668

Open
yama3nomori opened this issue May 24, 2023 · 2 comments
Open

Some Users Services cannot work #668

yama3nomori opened this issue May 24, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yama3nomori
Copy link

1. Current bug behavior

Some Users Services cannot get response: lookFollowings, lookfollowers, lookMutingUsers, etc.
Tweets Services is no problem. So list can get.

2. Expected behavior

I'm expecting to get above list.

3. Steps to reproduce

step 1

``
v2.TwitterApi twitter = v2.TwitterApi(
bearerToken: 'MyAccessToken',
retryConfig: v2.RetryConfig(
maxAttempts: 5,
onExecute: (event) => print(
'Retry after ${event.intervalInSeconds} seconds... '
'[${event.retryCount} times]',
),
),

//! The default timeout is 10 seconds.
timeout: Duration(seconds: 20),

);
if (widget.api != 'search' && widget.api != 'etc') {
tweetApi(widget.api, count, '', '');
}
}
}
``

step 2

try { var response = await twitter.users.lookupMutingUsers( userId: 'MyUserId', maxResults: 5, ); debugPrint(response.toString()); // NULL } on v2.UnauthorizedException catch (e) { debugPrint('unauthorized'); } catch(e) { debugPrint(e.body); }

4. Flutter doctor output

Output of: flutter doctor -v

[√] Flutter (Channel stable, 3.7.10, on Microsoft Windows [Version 10.0.22621.1702], locale ja-JP)
• Flutter version 3.7.10 on channel stable at C:\Android\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 4b12645012 (7 weeks ago), 2023-04-03 17:46:48 -0700
• Engine revision ec975089ac
• Dart version 2.19.6
• DevTools version 2.20.1

[X] Windows Version (Unable to confirm if installed Windows version is 10 or greater)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at C:\Android\sdk
• Platform android-33, build-tools 33.0.1
• ANDROID_HOME = C:\Android\sdk
• Java binary at: C:\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.

[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components

[√] Android Studio (version 2022.1)
• Android Studio at C:\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)

[√] VS Code (version 1.78.2)
• VS Code at C:\Users\nyama\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.56.0

[√] Connected device (4 available)
• S1 (mobile) • MS3GLP6711409145 • android-arm64 • Android 9 (API 28)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1702]
• Chrome (web) • chrome • web-javascript • Google Chrome 113.0.5672.127
• Edge (web) • edge • web-javascript • Microsoft Edge 113.0.1774.50

[√] HTTP Host Availability
• All required HTTP hosts are available

! Doctor found issues in 2 categories.

5. More environment information

  • twitter_api_v2 version: 4.9.4

6. Log information

Enter log information in this code block
I/flutter ( 5556): null
@yama3nomori yama3nomori added the bug Something isn't working label May 24, 2023
@github-actions
Copy link

Thanks for your contribution! :)

@myConsciousness
Copy link
Member

What is your API usage plan?

Since most of the Twitter API endpoints have been paid for, you will need to subscribe to a paid plan to run any endpoints other than your profile information and tweeting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants