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

"Missing user ID" when running the Flutter Example #243

Open
1 of 6 tasks
Statyk7 opened this issue Jan 25, 2023 · 0 comments
Open
1 of 6 tasks

"Missing user ID" when running the Flutter Example #243

Statyk7 opened this issue Jan 25, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Statyk7
Copy link

Statyk7 commented Jan 25, 2023

Describe the bug
After setting the API Key and the tokens for the Sample Users, I can run the Flutter Example app and login with either users, and post activities, but when I try to perform a search (icon on the right top corner) I got an exception from UsersAPI when calling get because the id is empty: checkArgument(id.isNotEmpty, 'Missing user ID')

What version of Flutter do you use?
❯ flutter --version
Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 135454af32 (6 weeks ago) • 2022-12-15 07:36:55 -0800
Engine • revision 3316dd8728
Tools • Dart 2.18.6 • DevTools 2.15.0

What package are you using? What version?
Just did a clone from GitHub of this repo.

What platform is it about?

  • Android
  • iOS
  • Web
  • Windows
  • MacOS
  • Linux

a copy of flutter doctor --verbose
`[✓] Flutter (Channel stable, 3.3.10, on macOS 13.1 22C65 darwin-arm, locale en-US)
• Flutter version 3.3.10 on channel stable at /Users/rbaudet/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (6 weeks ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
• DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at /Users/rbaudet/Library/Android/sdk
• Platform android-33, build-tools 33.0.1
• Java binary at: /Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment Zulu19.30+11-CA (build 19.0.1+10)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14C18
• CocoaPods version 1.11.3

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[!] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• 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
✗ Unable to find bundled Java version.
• Try updating or re-installing Android Studio.

[✓] IntelliJ IDEA Community Edition (version 2022.2.4)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 71.2.5
• Dart plugin version 222.4459.16

[✓] VS Code (version 1.74.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.56.0

[✓] Connected device (3 available)
• iPhone 14 Pro (mobile) • 6B44568C-EEE0-4F90-AFA5-22C1C752333B • ios •
com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.1 22C65 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.87

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

! Doctor found issues in 1 category.`

To Reproduce
Steps to reproduce the behavior:
See bug description.

Expected behavior
No exception.

Screenshots
If applicable, add screenshots to help explain your problem.

**Logs **
Run flutter analyze and attach any output of that command below.
If there are any analysis errors, try resolving them before filing this issue.

Paste the output of running flutter doctor -v here.

Additional context
Add any other context about the problem here.

@Statyk7 Statyk7 added the bug Something isn't working label Jan 25, 2023
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

1 participant