Postman请求后台报错:Invalid character found in method name. HTTP method names must be tokens
程序员文章站
2023-11-15 16:56:58
在使用Postman请求后台时Postman出现 开发工具控制台报 信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be logged at DEBU ......
在使用postman请求后台时postman出现
开发工具控制台报
信息: error parsing http request header note: further occurrences of http header parsing errors will be logged at debug level. java.lang.illegalargumentexception: invalid character found in method name. http method names must be tokens at org.apache.coyote.http11.internalaprinputbuffer.parserequestline(internalaprinputbuffer.java:186) at org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1049) at org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:637) at org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2555) at org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2544) at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149) at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624) at org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) at java.lang.thread.run(thread.java:748)
检查postman配置没有问题,最后发现请求http并非https,将请求改为http后就能正常访问了