V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
工单节点使用指南
• 请用平和的语言准确描述你所遇到的问题
• 厂商的技术支持和你一样也是有喜怒哀乐的普通人类,尊重是相互的
• 如果是关于 V2EX 本身的问题反馈,请使用 反馈 节点
banditv2ex
V2EX  ›  全球工单系统

12315 品牌列表接口报错

  •  
  •   banditv2ex · 2019-05-28 14:31:17 +08:00 · 2003 次点击
    这是一个创建于 2005 天前的主题,其中的信息可能已经有所发展或是发生改变。

    请问一下有没有 12315 的同学,你们的投诉->品牌列表接口报错了

    请求内容( session 部分做了修改)

    POST /commonsearch/brandlist HTTP/1.1
    Host: www.12315.cn
    Connection: keep-alive
    Content-Length: 23
    Accept: application/json, text/javascript, */*; q=0.01
    Origin: http://www.12315.cn
    X-Requested-With: XMLHttpRequest
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Referer: http://www.12315.cn/cuser/portal/tscase/information
    Accept-Encoding: gzip, deflate
    Accept-Language: zh-CN,zh;q=0.9,en;q=0.8,tr;q=0.7,zh-TW;q=0.6,ja;q=0.5,ar;q=0.4,pt;q=0.3,fr;q=0.2
    Cookie: huaweielbsession=c408c6e01354ac418dcad84341a47; UM_distinctid=160baaaf7a9-02052e86524f58-37647e03-1fa400-16afd0baab05b1; CNZZDATA11484989=136028-1559021042-null; JSESSIONID=4C28A3D5D9EB049FE5E1197AB
    
    

    返回内容(这是个 json 请求,返回的是 text)

    <!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1"><title>403 Forbidden</title><style type="text/css">body{margin:5% auto 0 auto;padding:0 18px}.P{margin:0 22%}.O{margin-top:20px}.N{margin-top:10px}.M{margin:10px 0 30px 0}.L{margin-bottom:60px}.K{font-size:25px;color:#F90}.J{font-size:14px}.I{font-size:20px}.H{font-size:18px}.G{font-size:16px}.F{width:230px;float:left}.E{margin-top:5px}.D{margin:8px 0 0 -20px}.C{color:#3CF;cursor:pointer}.B{color:#909090;margin-top:15px}.A{line-height:30px}.hide_me{display:none}</style></head><body><div id="p" class="P"><div class="K">403</div><div class="O I">Forbidden</div><p class="J A L">Error Times: Tue, 28 May 2019 06:24:48 GMT<br><span class="F">IP: 113.104.245.67</span>Node information:fjqzdx245:6<br>URL: http://www.12315.cn/commonsearch/brandlist<br><span class="hide_me">Please contact our support: <A HREF="mailto:"></A><br></span>Check: <span class="C G" onclick="s(0,0)">Details</span></p><div class="K">403</div><div class="O I">Forbidden</div><p class="J A">出错时间: Tue, 28 May 2019 06:24:48 GMT<br><span class="F">用户 IP: 113.104.245.67</span>节点信息:fjqzdx245:6<br>URL: http://www.12315.cn/commonsearch/brandlist<br><span class="hide_me">如需支持请联系我们: <A HREF="mailto:"></A><br></span>查看报错详情: <span class="C G" href="#" onclick="s(1,0)">详细信息</span></p></div><div id="d" class="hide_me P H"><div class="K" id="B0"></div><p class="O I" id="B1"></p><div class="O"><div id="B2"></div><pre class="B G">http://www.12315.cn/commonsearch/brandlist</pre></div><div class="M"><span id="B3"></span><ul class="E"><li class="D G" id="B4"></li></ul></div><p class="M" id="B5"></p><a class="N C" id="B6" href="#" onclick="s(0,1)"></a></div><script type="text/javascript">var R=["ERROR","错误", "The Requested URL could not be retrieved","您所请求的网址(URL)无法获取", "While trying to retrieve the URL:","当尝试读取下面的网址( URL )时:", "The following error was encountered:","发生了下列错误:", "Invalid Request","无效的请求", "The access control configuration prevents your request at this time.<p></p>Please contact your service provider if you feel this is incorrect.","访问控制拒绝了你的请求,联系服务商以修正该问题。", "return","返回"];function e(i){return document.getElementById(i);}function n(i,t){e(i).innerHTML=t;}function d(i,t){e(i).style.display=(t?'block':'none');}function s(z,e){d('p',e);d('d',!e);if(!e){for(;e<7;e++) n("B"+e,R[e*2+z]);}}</script></body></html>
    
    2 条回复    2019-05-28 15:14:58 +08:00
    banditv2ex
        1
    banditv2ex  
    OP
       2019-05-28 14:35:58 +08:00
    目前好多接口都是 403,不知道是因为我打开的姿势不对还是官网在做维护。
    ihciah
        2
    ihciah  
       2019-05-28 15:14:58 +08:00   ❤️ 1
    我以前在的中学有个举报箱,写着“举报箱”的贴纸直接糊死了箱门。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1358 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 17:34 · PVG 01:34 · LAX 09:34 · JFK 12:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.