EMQX 控制台431错误

环境

  • EMQX 版本:5.5.0
  • 操作系统版本:centos 8

似乎是cookie太长了

order=id%20desc; serverType=nginx; bt_user_info=%7B%22status%22%3Atrue%2C%22msg%22%3A%22%u83B7%u53D6%u6210%u529F%21%22%2C%22data%22%3A%7B%22username%22%3A%22176****1694%22%7D%7D; file_recycle_status=true; firewall_type=safety; network-unitType=KB/s; disk-unitType=KB/s; sites_path=/www/wwwroot; distribution=centos8; soft_remarks=%7B%22list%22%3A%5B%22%u66F4%u6362%u6388%u6743IP%22%2C%225%u5206%u949F%u6781%u901F%u54CD%u5E94%22%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%2C%2230+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%2C%2220+%u4F01%u4E1A%u7248%u4E13%u4EAB%u529F%u80FD%22%2C%221000%u6761%u514D%u8D39%u77ED%u4FE1%uFF08%u5E74%u4ED8%uFF09%22%2C%222%u5F20SSL%u5546%u7528%u8BC1%u4E66%uFF08%u5E74%u4ED8%uFF09%22%2C%22%u4E13%u4EAB%u4F01%u4E1A%u670D%u52A1%u7FA4%uFF08%u5E74%u4ED8%uFF09%22%5D%2C%22pro_list%22%3A%5B%22%u66F4%u6362%u6388%u6743IP%22%2C%22%u5BA2%u670D%u4F18%u5148%u54CD%u5E94%22%2C%2215+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%2C%22%u5546%u7528%u9632%u706B%u5899%u6388%u6743%22%5D%2C%22kfqq%22%3A%223007255432%22%2C%22kf%22%3A%22http%3A//q.url.cn/CDfQPS%3F_type%3Dwpa%26qidian%3Dtrue%22%2C%22qun%22%3A%22%22%2C%22activity_list%22%3A%5B%22%3Cspan%20style%3D%5C%22color%3A%23D98704%3Bpadding-right%3A10px%5C%22%3E618%u7279%u60E0%u6D3B%u52A8%uFF0C6%u67089%u65E5-%206%u670818%u65E5%uFF0C%u6700%u9AD8%u51CF15000%u5143%3C/span%3E%3Ca%20style%3D%5C%22text-decoration%3Anone%3B%5C%22%20href%3D%5C%22https%3A//www.bt.cn/618%5C%22%20rel%3D%5C%22noreferrer%5C%22%20%20target%3D%5C%22_blank%5C%22%20class%3D%5C%22btlink%5C%22%3E%u70B9%u51FB%u7ACB%u5373%u67E5%u770B%3E%3E%3C/a%3E%22%5D%2C%22kf_list%22%3A%5B%7B%22qq%22%3A%223007255432%22%2C%22kf%22%3A%22http%3A//q.url.cn/CDfQPS%3F_type%3Dwpa%26qidian%3Dtrue%22%7D%2C%7B%22qq%22%3A%222927440070%22%2C%22kf%22%3A%22http%3A//wpa.qq.com/msgrd%3Fv%3D3%26uin%3D2927440070%26site%3Dqq%26menu%3Dyes%26from%3Dmessage%26isappinstalled%3D0%22%7D%5D%2C%22wx_list%22%3A%5B%7B%22ps%22%3A%22%u5728%u7EBF%u5BA2%u670D%22%2C%22kf%22%3A%22https%3A//www.bt.cn/new/wechat_customer%22%7D%5D%2C%22vips_list%22%3A%7B%22%u591A%u5BF9%u4E00%u6280%u672F%u652F%u6301%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A0%2C%22vltd%22%3A1%7D%2C%22%u5168%u5E745%u6B21%u5B89%u5168%u6392%u67E5%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A0%2C%22vltd%22%3A1%7D%2C%225%u5206%u949F%u6025%u901F%u54CD%u5E94%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2230+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2220+%u4F01%u4E1A%u7248%u4E13%u4EAB%u529F%u80FD%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%221000%u6761%u514D%u8D39%u77ED%u4FE1%28%u5E74%u4ED8%29%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%222%u5F20SSL%u5546%u7528%u8BC1%u4E66%28%u5E74%u4ED8%29%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22%u4E13%u4EAB%u4F01%u4E1A%u670D%u52A1%u7FA4%28%u5E74%u4ED8%29%22%3A%7B%22pro%22%3A0%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22WAF%u9632%u706B%u5899%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22%u66F4%u6362%u6388%u6743IP%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%22%u5BA2%u670D%u4F18%u5148%u54CD%u5E94%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2215+%u6B3E%u4ED8%u8D39%u63D2%u4EF6%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%2C%2215%u5929%u65E0%u7406%u7531%u9000%u6B3E%22%3A%7B%22pro%22%3A1%2C%22ltd%22%3A1%2C%22vltd%22%3A1%7D%7D%7D; load_type=null; pnull=1; load_page=1; payConfig=%7B%22name%22%3A%22%u5821%u5854%u786C%u76D8%u5206%u6790%u5DE5%u5177%22%2C%22pid%22%3A100000076%2C%22type%22%3A12%2C%22plugin%22%3Atrue%2C%22renew%22%3A-1%2C%22ps%22%3A%22%u7528%u4E8E%u67E5%u770B%u78C1%u76D8%u7A7A%u95F4%u7684%u4F7F%u7528%u60C5%u51B5%u548C%u5404%u4E2A%u76EE%u5F55%u7684%u5927%u5C0F%u3002%u53EF%u4EE5%u5FEB%u901F%u5206%u6790%u54EA%u4E9B%u6587%u4EF6%u6216%u76EE%u5F55%u5360%u7528%u4E86%u5927%u91CF%u7684%u5B58%u50A8%u7A7A%u95F4%uFF0C%u4ECE%u800C%u65B9%u4FBF%u4F60%u8FDB%u884C%u6E05%u7406%u548C%u4F18%u5316%22%2C%22ex1%22%3A%22%22%2C%22totalNum%22%3A31%7D; pay_source=31; logs_type=panelLogs; docker_model=setup; site_model=php; db_page_model=mysql; backup_path=/www/backup; da6952fece0e65be1f42576008048fb8=228425e2-ecfb-4265-a803-7d48ed79452f.nl2AWo7r1gbMQCkDyf29DKBQwwI; 4687210b86ba2cd8aa84dc2f8b916991=f3ae546e-bf33-44d4-851a-f726f76d4357.a_krEZU13WxAJBAaGLUK3-ai5hE; force=0; pro_end=-1; ltd_end=-1; refresh_software_list=; load_search=frp; rank=list; db68ba3f653f3aaef57859a6743b5e06=b4041a79-aba0-41b1-89a2-e4cd47f88a44.Qf3WlspGhCiTMRY0_QKBOb0quXc; memSize=7454; record_paste=null; record_paste_fileType=null; record_paste_type=null; Path=/www/wwwroot/IOT_PLATFORM/web/dist; Hm_lvt_9ba8fc809b5584167a2fb9b31bb3970c=1709292885; token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzA5Mzc5Njg2LCJpYXQiOjE3MDkyOTMyODYsImp0aSI6ImYwZjNjNDMxNThlMTRkNmQ4MWZhNTRmNzZkMGQ2OTAwIiwidXNlcl9pZCI6M30.Q5godUuFFp3GP3PEF7yavlSkOx9tJKq3P4ah7UEPrOI; username=%E8%B6%85%E7%BA%A7%E7%AE%A1%E7%90%86%E5%91%98; csrftoken=qhRnt6nlHJguKTZSe7b8IICBnhDxjgrm; Hm_lpvt_9ba8fc809b5584167a2fb9b31bb3970c=1709297998

Cookie 截图是在 /api/v5/monitor_current 的请求标头中看到的么?
EMQX 前面有没有部署 nginx 或其他代理/反向代理/负载均衡器?
在截图中看到了 serverType=nginx

EMQX 的前后端默认情况下均不会在 HTTP 请求中设置 Cookie:


可以进行尝试:

  • 清除 EMQX Dashboard 站点的缓存后重试
  • 此外也可能是需要更改代理/反向代理/负载均衡器的