首页新闻找找看学习计划

.net core 2.0 mvc 414 http error

0
[待解决问题]

以POST方式提交,内容如下:

{"code":"200","data":{"user_id":16,"designer_head_img":"http://192.168.1.100/files/img/20180318/201803182155176526.jpg","designer_name":"Dick设计师","designer_field":"扁平简约,报名培训,企业招聘","designer_follow":false,"designer_remark":"非认证设计师作品","product":{"id":345,"user_id":16,"buy_user_id":0,"parent_product_id":0,"product_type":3,"product_tags":"","title":"化身恐怖分子,一起轰炸城市","cover_img":"http://192.168.1.100/files/img/20180207/201802071511075095.png","description":"策划:轰炸机队从城市上空呼啸而过,投下的却是一个个大梨/大礼?嘣!原来袭击这个城市的幕后黑手是品牌好“礼”。适用于开业活动、节日促销、换季促销等场景。 <br/>视觉:卡通风格; <br/>应用:最后一页的主题文字、品牌logo可替换,“点击领取”的按钮可添加任意链接。","url":"http://192.168.1.100/html5/20180115gift%E5%A5%BD%E5%A4%A7%E7%9A%84%E7%A4%BC/index.html","price":0.01,"check_status":2,"show":false,"praise_count":0,"collection_count":0,"comment_count":0,"browse_count":1,"sale_count":0,"commend":false,"importance":0,"share_img":"http://192.168.1.100:8028/files/img/20180207/201802071511138119.png","share_title":"化身恐怖分子,一起轰炸城市","share_description":"“咦?这炸弹看着有点眼熟啊!”","create_datetime":"2018-05-31 20:17:00","update_datetime":"2018-05-31 20:17:00","publish_datetime":"2018-02-07 14:10:52","commend_datetime":"1900-01-01 00:00:00","product_json":"","font_area":0,"video_area":0,"image_area":0,"animation_area":0,"other_area":0},"product_view":[],"scene_tag":{"product_TypeName":"场景H5","titleList":[{"tagTitle":"用途","valueList":[{"tagValueId":67,"tagValueName":"企业招聘"},{"tagValueId":68,"tagValueName":"企业宣传"},{"tagValueId":69,"tagValueName":"会议邀请"},{"tagValueId":70,"tagValueName":"产品介绍"},{"tagValueId":71,"tagValueName":"自媒体"},{"tagValueId":72,"tagValueName":"报名培训"},{"tagValueId":73,"tagValueName":"品牌推广"},{"tagValueId":74,"tagValueName":"节日推广"},{"tagValueId":75,"tagValueName":"数据报告"},{"tagValueId":76,"tagValueName":"事件祝福"},{"tagValueId":77,"tagValueName":"新品发布"},{"tagValueId":78,"tagValueName":"周年庆"},{"tagValueId":79,"tagValueName":"活动推广"},{"tagValueId":80,"tagValueName":"其他场景"}]},{"tagTitle":"行业","valueList":[{"tagValueId":95,"tagValueName":"餐饮/食品"},{"tagValueId":96,"tagValueName":"汽车"},{"tagValueId":97,"tagValueName":"服饰/时尚"},{"tagValueId":98,"tagValueName":"文化/娱乐"},{"tagValueId":99,"tagValueName":"婚庆"},{"tagValueId":100,"tagValueName":"母婴"},{"tagValueId":101,"tagValueName":"其他行业"}]},{"tagTitle":"热点","valueList":[{"tagValueId":109,"tagValueName":"24节气"},{"tagValueId":110,"tagValueName":"情人节"},{"tagValueId":111,"tagValueName":"七夕"},{"tagValueId":112,"tagValueName":"中秋节"},{"tagValueId":113,"tagValueName":"圣诞节"},{"tagValueId":114,"tagValueName":"春节"},{"tagValueId":115,"tagValueName":"其他"}]},{"tagTitle":"风格","valueList":[{"tagValueId":121,"tagValueName":"中国风"},{"tagValueId":122,"tagValueName":"商务科技"},{"tagValueId":123,"tagValueName":"扁平简约"},{"tagValueId":124,"tagValueName":"清新文艺"},{"tagValueId":125,"tagValueName":"卡通手绘"},{"tagValueId":126,"tagValueName":"时尚炫酷"}]}]},"page_tag":{"product_TypeName":"一页H5","titleList":[{"tagTitle":"用途","valueList":[{"tagValueId":81,"tagValueName":"企业招聘"},{"tagValueId":82,"tagValueName":"企业宣传"},{"tagValueId":83,"tagValueName":"会议邀请"},{"tagValueId":84,"tagValueName":"产品介绍"},{"tagValueId":85,"tagValueName":"自媒体"},{"tagValueId":86,"tagValueName":"报名培训"},{"tagValueId":87,"tagValueName":"品牌推广"},{"tagValueId":88,"tagValueName":"节日推广"},{"tagValueId":89,"tagValueName":"数据报告"},{"tagValueId":90,"tagValueName":"事件祝福"},{"tagValueId":91,"tagValueName":"新品发布"},{"tagValueId":92,"tagValueName":"周年庆"},{"tagValueId":93,"tagValueName":"活动推广"},{"tagValueId":94,"tagValueName":"其他场景"}]},{"tagTitle":"行业","valueList":[{"tagValueId":102,"tagValueName":"餐饮/食品"},{"tagValueId":103,"tagValueName":"汽车"},{"tagValueId":104,"tagValueName":"服饰/时尚"},{"tagValueId":105,"tagValueName":"文化/娱乐"},{"tagValueId":106,"tagValueName":"婚庆"},{"tagValueId":107,"tagValueName":"母婴"},{"tagValueId":108,"tagValueName":"其他行业"}]},{"tagTitle":"技术","valueList":[{"tagValueId":116,"tagValueName":"人脸识别"},{"tagValueId":117,"tagValueName":"VR"},{"tagValueId":118,"tagValueName":"全景"},{"tagValueId":119,"tagValueName":"语音识别"},{"tagValueId":120,"tagValueName":"其他"}]},{"tagTitle":"风格","valueList":[{"tagValueId":127,"tagValueName":"中国风"},{"tagValueId":128,"tagValueName":"商务科技"},{"tagValueId":129,"tagValueName":"扁平简约"},{"tagValueId":130,"tagValueName":"清新文艺"},{"tagValueId":131,"tagValueName":"卡通手绘"},{"tagValueId":132,"tagValueName":"时尚炫酷"}]}]},"video_tag":{"product_TypeName":"视频H5","titleList":[{"tagTitle":"用途","valueList":[{"tagValueId":209,"tagValueName":"企业招聘"},{"tagValueId":210,"tagValueName":"企业宣传"},{"tagValueId":211,"tagValueName":"会议邀请"},{"tagValueId":212,"tagValueName":"产品介绍"},{"tagValueId":213,"tagValueName":"自媒体"},{"tagValueId":214,"tagValueName":"报名培训"},{"tagValueId":215,"tagValueName":"品牌推广"},{"tagValueId":216,"tagValueName":"节日推广"},{"tagValueId":217,"tagValueName":"数据报告"},{"tagValueId":218,"tagValueName":"事件祝福"},{"tagValueId":219,"tagValueName":"新品发布"},{"tagValueId":220,"tagValueName":"周年庆"},{"tagValueId":221,"tagValueName":"其他场景"}]},{"tagTitle":"尺寸","valueList":[{"tagValueId":222,"tagValueName":"横屏"},{"tagValueId":223,"tagValueName":"竖屏"}]},{"tagTitle":"时长","valueList":[{"tagValueId":224,"tagValueName":"10秒以下"},{"tagValueId":225,"tagValueName":"10-20秒"},{"tagValueId":226,"tagValueName":"20-30秒"}]},{"tagTitle":"风格","valueList":[{"tagValueId":227,"tagValueName":"中国风"},{"tagValueId":228,"tagValueName":"商务科技"},{"tagValueId":229,"tagValueName":"扁平简约"},{"tagValueId":230,"tagValueName":"清新文艺"},{"tagValueId":231,"tagValueName":"卡通手绘"},{"tagValueId":232,"tagValueName":"时尚炫酷"}]}]},"user_product":null},"message":"查询成功","remark":""}
jobroon的主页 jobroon | 菜鸟二级 | 园豆:205
提问于:2018-06-02 13:58
< >
分享
所有回答(1)
1

http状态码414 错误是指请求的网址太长了,一般长度是 2048 或 4096 个字符.超过这个长度您需要对服务器做一下修改了。但是提问中您并没有讲造成414的错误信息,直接给了请求成功的json

T&&小白 | 园豆:1434 (小虾三级) | 2018-06-03 08:42

你好,我现在就是通过POST方式提交这个JSON到后台时报414错误的

支持(0) 反对(0) jobroon | 园豆:205 (菜鸟二级) | 2018-06-05 18:35

@jobroon: 检查一下post提交的Content-Typeapplication/json而不是application/x-www-form-urlencoded吗?

支持(0) 反对(0) T&&小白 | 园豆:1434 (小虾三级) | 2018-06-05 19:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册