Flutter项目调用WooCommerce REST API无产品显示问题排查求助
Flutter WooCommerce App Not Loading Products - 404 & FormatException on API Requests
Hi everyone, I'm new to Flutter development and I'm modifying a codebase I purchased from CodeCanyon. The app is supposed to fetch product data via the WooCommerce REST API, but when I compile and run it, no products show up on the interface. I checked the run logs and found some related issues, but I haven't been able to resolve them after searching across the web.
Key Error Logs
Here are the critical parts of my run log:
I/flutter (32004): http://everfitstore.com/woobox-api/api/v1/woocommerce/get-dashboard?oauth_consumer_key=ck_2345365e7b82b6055bcbd459724e9c37060147a3&oauth_nonce=miemhbtfox&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1632908629&oauth_token=&oauth_version=1.0&per_page=4&oauth_signature=UZsfy6dmyrSjC4%2FFgdx1n7AtuFs%3D I/flutter (32004): 404 http://everfitstore.com/woobox-api/api/v1/woocommerce/get-dashboard?oauth_consumer_key=ck_2345365e7b82b6055bcbd459724e9c37060147a3&oauth_nonce=miemhbtfox&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1632908629&oauth_token=&oauth_version=1.0&per_page=4&oauth_signature=UZsfy6dmyrSjC4%2FFgdx1n7AtuFs%3D I/flutter (32004): <!DOCTYPE html> ... I/flutter (32004): FormatException: Unexpected character (at character 1) I/flutter (32004): <!DOCTYPE html> I/flutter (32004): ^ I/flutter (32004): 200 http://everfitstore.com/wc/v3/products/categories?oauth_consumer_key=ck_2345365e7b82b6055bcbd459724e9c37060147a3&oauth_nonce=qmdhcusgxm&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1632908629&oauth_token=&oauth_version=1.0&page=1&parent=0&per_page=50&oauth_signature=RCccBRrgdGxEyBUDv0jc%2Ffc7JXs%3D I/flutter (32004): <!DOCTYPE html> ...
Things I've Checked
- I've already added the necessary permissions in
AndroidManifest.xml:<uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
I'm stuck here and would really appreciate any help troubleshooting this issue. Please let me know if you need more code snippets or details, and I'll provide them right away!
内容的提问来源于stack exchange,提问作者Haris Siddiqui
相关产品推荐
相关产品推荐

