IDEA HTTP client actions fail Not a valid domain

在IDEA的.http文件中运行任何请求均会报错
:xxx Not a valid domain
解决方法:
删除掉.idea/httpRequests/http-client.cookies文件
该文件在你的项目目录的隐藏文件夹.idea下

解决方法2(未测试)
请求添加注解

# @no-cookie-jar
GET xxx

ref: https://youtrack.jetbrains.com/issue/IJPL-65395/All-HTTP-client-actions-fail-including-default-examples

posted on 2024-05-24 11:16  dota3  阅读(357)  评论(0)    收藏  举报

导航