Fairly new to Flutter and have encountered an issue. I am trying to get the emulator (for both iOS and Android) of my app to connect to an API that is running on my local machine. I had it working up until I upgraded flutter null-safety and have not been able to get it back since. Any suggestions on how I can fix the error I am getting?
Flutter error - Invalid argument(s): No host specified in URI nullapi/auth/login/
565 Views Asked by Frank Castle At
3
There are 3 best solutions below
Related Questions in ANDROID
- Creating global Class holder
- Flutter + Dart: Editing name of a tab shows up a black screen
- android-pdf-viewer Received status code 401 from server: Unauthorized
- Sdk 34 WRITE_EXTERNAL_STORAGE not working
- ussd reader in Recket Native module
- Incorrect display of LinearGradientBrush in IOS
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- I can't make TextInput to auto expand properly in Android
- Creating multiple instances of a class with different initializing values in Flutter
- How to create a lottie animation
- making android analyze with coverity sast tool
- Flutter plugin development android src not opening after opening example
- I initialize my ViewModel in the Activity with several fragments as tabs, but the fragments(tabs) return null for the updated livedata
- Node.js Server + Socket.IO + Android Mobile Applicatoin XHR Polling Error...?
- How I can use the shared preferences class?
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in FLUTTER
- Flutter + Dart: Editing name of a tab shows up a black screen
- The Binary Version Of its metadata is 1.8.0, expected Version is 1.6.0 build error
- Way to get CustomPainter to track face in Camera Flutter MLKit
- flutter Null check error: did not show file and line number
- Creating multiple instances of a class with different initializing values in Flutter
- I want to paste stickers into to my TextField and to show the stickers beside the emojis
- Flutter plugin development android src not opening after opening example
- Module not found when building flutter app for IOS
- How to make barrier area interactive in flutter modal bottom sheet
- Can an RPC result be included in a Supabase select function in Flutter for Data Modeling?
- Why do I need to wait to reaccess to Firestore database even though it has already done before?
- Flutter web app on Windows -how to support mouse drag for horizontal and vertical scrolling as well as using mouse wheel
- I wrote this time displaying FLUTTER app, How can I improve it?
- Appwrite and / or Spring Boot Backend
- Flutter two_dimensional_scrollables Web app Chrome - cannot get horizontal scroll to work?
Related Questions in DART-NULL-SAFETY
- future: FirebaseAuth.instance.currentUser(), throws an error, need alternatives
- The return type of getter 'description' is 'String?' which isn't a subtype of the type 'String' of its setter 'description'
- Accessing nested property in AsyncSnapshot
- How i can make logo grid in flutter that scroll infinity
- Attribute application@label value=(tst) from (unknown) in flutter
- why I got the error in DateTime _selectedDate;?
- Exception caught by widgets library - Null check operator used on a null value
- Is it possible to make user select either of the named arguments in flutter?
- Pass 'Null' to a list. Null Safety
- Error : _TypeError (type 'Null' is not a subtype of type 'String')
- flutter navigation pop to different screen
- A value of type 'Null' can't be assigned to a parameter of type 'Widget Function()' in a const constructor
- This expression has type 'void' and can't be used. await widget.model.chargingStationDist.add(
- Getting a red squiggly line when I return null with a message 'Null isn't a string'
- how to view Docx file in flutter?
Related Questions in NULL-SAFETY
- Is it possible to use Eclipse JDT static analysis for null annotations when compiling from the command line?
- how to migrate flutter mid-level existing project null safety?
- Even though I used late for filed in flutter, a null safety error is occurring
- Null check operator used on a null value error on login form
- Java: Effect of @NonNull function returning null
- Handling Null Safety Error When Accessing 'state' in Flutter Riverpod
- Error after updating flutter to 3.10.4 The following dependencies do not satisfy the required version:
- The app was working fine and after the latest update to flutter it is giving this error
- how to resolve Error: Library doesn't support null safety. // @dart = 2.9
- Flutter pub get error due to Dark SDK version or flutter_launcher_name
- Dart variable is clearly not null but Dart thinks it can be potentially null
- Why do I get this error: _CastError (Null check operator used on a null value)
- type 'Null' is not a subtype of type 'num' of 'other'
- What has the difference between declaring a variable with var and int do with the Null Safety?
- the property 'uid' cant be unconditionally accessed because the receiver can be null
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The error is clear about that - you are trying to access the URI without a host. The line with the URI path looks like
nullapi/auth/login/I assume it should not start fromnull.The part of the code you provided us with in question is not clear regarding the error because the error clearly appears when you try to call
api/auth/login/but there is nothing regarding this call in the code you provided.The issue is that your
apiURLis null. At which point it becomes null - that I don't know - the code in question is not enough to figure it out. I would suggest you debug the whole data flow - from parsing to the actual call, and, I am sure of it, you will be able to find the issue.