postman Could not get any response

Could not get any response

There was an error connecting to http://127.0.0.1:8081/scan/newUpload.

新增了一个接口,准备使用postMan测试,结果Send时一直提示"Could not get any response"

于是尝试调用其他接口发现正常,只有新增的接口始终无法链接

于是开始检查参数,发现token这个头参数多了空格,即为(token     ),于是将参数中的空格去除后,再次调用后正常

上网查了一下,请求头参数有空格可能导致无法正确解析参数

参考:

https://www.cnblogs.com/jiunadianshi/articles/2353968.html

https://blog.csdn.net/zoulonglong/article/details/80596634

 

postman Could not get any response_第1张图片

你可能感兴趣的:(PostMan)