FormatException: SyntaxError: Unexpected end of JSON input
I am getting this error in my Flutter app during the API integration phase. I have checked the backend APIs through Postman, and they are working fine. But when I integrate it with frontend and then check it gives 404 Not Found, Future<Map<String, dynamic>> registerUser( String username, String email, String password) async { var baseUrl = 'http://localhost:52961/api/v1/user/'; final url = Uri.parse('${baseUrl}register'); _logger .d('Sending request to $url with email: $email, username: $username'); try { var response = await http.post(url, body: jsonEncode({ 'username': username, 'email': ema
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.