通过Java企业代理的Twilio SMS调用失败,并出现以下错误

时间:2019-02-18 19:03:16

标签: java twilio httpclient

遵循Twilio网站上的步骤:

参考链接:https://www.twilio.com/docs/libraries/java/custom-http-clients-java

获取错误: 线程“ main”中的异常com.twilio.exception.ApiException:意外的字符(“ <”(代码60)):预期的有效值(数字,字符串,数组,对象,“真”,“假”或“空” )  在[来源:(ByteArrayInputStream);行:1,列:2]     在com.twilio.exception.RestException.fromJson(RestException.java:53)     在com.twilio.rest.api.v2010.account.MessageCreator.create(MessageCreator.java:508)     在com.twilio.rest.api.v2010.account.MessageCreator.create(MessageCreator.java:25)     在com.twilio.base.Creator.create(Creator.java:45)     在com.publix.forgotpassword.Services.SendSMSService.SendSMSService(SendSMSService.java:36)     在com.publix.testClasses.SMSTestingClass.main(SMSTestingClass.java:11) 引起原因:com.fasterxml.jackson.core.JsonParseException:意外的字符(“ <”(代码60)):预期的有效值(数字,字符串,数组,对象,“真”,“假”或“空”)  在[来源:(ByteArrayInputStream);行:1,列:2]     在com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1804)     com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:693)     在com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:591)     在com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2630)     在com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:832)     在com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:729)     在com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:4141)     在com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4000)     在com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3070)     在com.twilio.exception.RestException.fromJson(RestException.java:51)     ...还有5个

有人可以帮我吗?

0 个答案:

没有答案