参数中带有日期时间的Sonarqube API响应

Jor*_*ith 2 sonarqube sonarqube-web sonarqube-ops

尝试提取问题并在点击SonarQube API时遇到此错误:

api/issues/search?createdAfter=2013-05-01T13:00:00+0100
Run Code Online (Sandbox Code Playgroud)

{“错误”:[{“ msg”:“日期'2018-06-05 14:00:00 1000'不能被解析为日期或日期+时间”}]}

Jul*_*eam 7

您需要对“ +”进行编码以使其易于访问网址,因此需要将if替换为%2B。有关更多信息,请参见此页面:https : //www.w3schools.com/tags/ref_urlencode.asp