我试图访问一个API函数,比如我要访问的登录功能,我得到以下错误:访问API层
"message": "An internal error occurred during your request!",
在日志文件看,以下日志有:
ERROR 2017-10-09 17:01:37,296 [11 ] nHandling.AbpApiExceptionFilterAttribute - Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details. System.Web.Http.HttpResponseException: Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details.
我正在使用邮递员进行测试。我的网址是https://localhost:44347/api/Account/Authenticate。我的头有环境类型为"application/json"
和我的身体我有loginModel格式化为
{
"tenancyName": "tenantname",
"userNameOrEmailAddress": "admin",
"password": "123qwe"
}
我不知道怎么回事就这个进行。请有任何想法吗?我也安装了swagger。
我正在使用MVC + AngularJS模板。我没有改变任何东西,只是默认的项目。
感谢您的帮助。
我使用邮递员来测试我的API和由于某种原因它不适用邮递员,但它在提琴手中工作正常。谢了哥们 –