搭建了个 PHPHub5 API 报错了,怎么破?

报错信息以下:

2018-09-09 15:10:34.519069+0800 PHPHub[65879:36479068] ---> Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)" UserInfo={NSLocalizedDescription=Request failed: not found (404), NSUnderlyingError=0x1c004e490 {Error Domain=com.alamofire.error.serialization.response Code=-1016 "Request failed: unacceptable content-type: text/html" UserInfo={NSLocalizedDescription=Request failed: unacceptable content-type: text/html, NSErrorFailingURLKey=http://bbs.xxxx.com/v1/topics?include=category,last_reply_user,user&filters=excellent&per_page=20&page=1, com.alamofire.serialization.response.error.data=<3c68746d 6c3e0d0a 3c686561 643e3c74 69746c65 3e343034 204e6f74 20466f75 6e643c2f 7469746c 653e3c2f 68656164 3e0d0a3c 626f6479 20626763 6f6c6f72 3d227768 69746522 3e0d0a3c 63656e74 65723e3c 68313e34 3034204e 6f742046 6f756e64 3c2f6831 3e3c2f63 656e7465 723e0d0a 3c68723e 3c63656e 7465723e 6e67696e 783c2f63 656e7465 723e0d0a 3c2f626f 64793e0d 0a3c2f68 746d6c3e 0d0a>, com.alamofire.serialization.response.error.response= { URL: http://bbs.xxxx.com/v1/topics?include=category,last_reply_user,user&filters=excellent&per_page=20&page=1 } { Status Code: 404, Headers { Connection = ( "keep-alive" ); "Content-Length" = ( 162 ); "Content-Type" = ( "text/html" ); Date = ( "Sun, 09 Sep 2018 07:10:34 GMT" ); Server = ( nginx ); } }}},

怎么破老铁?

《L05 电商实战》
从零开发一个电商项目,功能包括电商后台、商品 & SKU 管理、购物车、订单管理、支付宝支付、微信支付、订单退款流程、优惠券等
《L02 从零构建论坛系统》
以构建论坛项目 LaraBBS 为线索,展开对 Laravel 框架的全面学习。应用程序架构思路贴近 Laravel 框架的设计哲学。
讨论数量: 1

补充:ios 端报错

5年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!