You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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&amp;oauth_nonce=qmdhcusgxm&amp;oauth_signature_method=HMAC-SHA1&amp;oauth_timestamp=1632908629&amp;oauth_token=&amp;oauth_version=1.0&amp;page=1&amp;parent=0&amp;per_page=50&amp;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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.30 15:47:31