twitter-api-v2 icon indicating copy to clipboard operation
twitter-api-v2 copied to clipboard

Some Users Services cannot work

Open yama3nomori opened this issue 1 year ago • 2 comments

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 avatar May 24 '23 01:05 yama3nomori