尝试在访问 SonarQube API 时提取问题并收到此错误:
api/issues/search?createdAfter=2013-05-01T13:00:00+0100
{"errors":[{"msg":"Date '2018-06-05 14:00:00 1000' cannot be parsed as either a date or date+time"}]}
最佳答案
您需要将“+”编码为对 url 友好,因此您需要将 if 替换为 %2B
。
有关更多信息,请参阅此页面:
https://www.w3schools.com/tags/ref_urlencode.asp
关于参数中带有日期时间的 Sonarqube API 响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51925775/