open in Android Studio (dan dicoba juga dgn VS Code)
Get Dependencies
Run debug (dgn emulator dan Device)
Muncul Error yang sama:
exception = {DioError} DioError [DioErrorType.DEFAULT]: FormatException: Unexpected character (at character 1)\n<!DOCTYPE html>\n^\n
this = {Dio}
cancelToken = null
options = {RequestOptions}
responseBody = {ResponseBody}
e = {FormatException} FormatException: Unexpected character (at character 1)\n<!DOCTYPE html>\n^\n
err = {DioError} DioError [DioErrorType.DEFAULT]: FormatException: Unexpected character (at character 1)\n<!DOCTYPE html>\n^\n
Flutter Doctor:
S D:\MyDocuments\flutterApps\resepmau_mvp_flutter-retrofit> flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel beta, v1.12.13+hotfix.6, on Microsoft Windows [Version 10.0.18363.720], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 3.6)
[√] VS Code (version 1.43.2)
[√] Connected device (2 available)
• No issues found!
Step reproduce:
Flutter Doctor:
API: https://resep-mau.herokuapp.com/api It work like a charm, both web and api (tested with postman)