Http 400 --- The request sent by the client was syntactically incorrect

简介:


Http 400 --- The request sent by the client was syntactically incorrect


        问题描述

        "The request sent by the client was syntactically incorrect",意思是:客户端发送的请求是语法错误。


        问题重现


        原因及解决方法

        其实这次错误写篇博客是完全没有意义的,因为笔者在下图中的两个参数写得不一致导致的,改成一样的就能解决这个问题。


        写这篇博客我更多的是想说最近在测试的时候发现有些页面数据不稳定,有时候没有问题,有时候会报这个错误。经过测试发现竟然是ajax同步和异步执行造成的。先大概说说吧,之后会写详细的文章说明。


页面加载的时候会触发多个同一级别ajax,而这些又是异步提交的,由于执行的时间不稳定,会导致有的先执行完成有的后执行,一旦有已经执行完的过程,就会直接加载页面导致还未执行完成的就出错啦。



目录
相关文章
|
4月前
|
XML 存储 网络协议
kettle开发篇-Http client
kettle开发篇-Http client
521 0
|
4月前
|
机器学习/深度学习 前端开发 JavaScript
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
114 0
源映射错误:Error: request failed with status 404 源 URL:http://localhost:8080/bootstrap/js/axios-0.18.0.js
|
23天前
|
Python
【Azure 应用服务】Azure Function HTTP Trigger 遇见奇妙的500 Internal Server Error: Failed to forward request to http://169.254.130.x
【Azure 应用服务】Azure Function HTTP Trigger 遇见奇妙的500 Internal Server Error: Failed to forward request to http://169.254.130.x
Bad Request, Resolved [org.springframework.http.converter.HttpMessageNotReadableException,跟着视频仔细比对
Bad Request, Resolved [org.springframework.http.converter.HttpMessageNotReadableException,跟着视频仔细比对
|
2月前
|
API Java
解决HTTP 400 Bad Request错误的方法
解决HTTP 400 Bad Request错误的方法
|
2月前
|
Java API
解决HTTP 400 Bad Request错误的方法
解决HTTP 400 Bad Request错误的方法
|
4月前
|
JSON API 开发者
什么是 HTTP 400 bad request 错误
什么是 HTTP 400 bad request 错误
|
4月前
|
应用服务中间件 网络安全 nginx
Client sent an HTTP request to an HTTPS server
Client sent an HTTP request to an HTTPS server
519 0
|
4月前
|
JSON Java Apache
Spring Cloud Feign 使用Apache的HTTP Client替换Feign原生httpclient
Spring Cloud Feign 使用Apache的HTTP Client替换Feign原生httpclient
199 0
|
10月前
|
JSON 小程序 前端开发
小程序踩坑-http://xxx.com 不在以下 request 合法域名列表中
小程序踩坑-http://xxx.com 不在以下 request 合法域名列表中
173 0

热门文章

最新文章