Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

What the service address of WebApi.Account service #975


User avatar
0
lcyhjx created

I download the sample project in website. And I can run it successful, but a question here. For the webapi service, the services address is <a class="postlink" href="http://localhost:8080/api/services/app/">http://localhost:8080/api/services/app/</a> like this. And for the login service in weB.MVCController, its address is <a class="postlink" href="http://localhost:8080/account/Login">http://localhost:8080/account/Login</a>. But I found there is webpi.AccountControl, what's the service address of it? I tried <a class="postlink" href="http://localhost:8080/api/services/account/Authenticate">http://localhost:8080/api/services/account/Authenticate</a>, it did not work. Could you let me know? Thanks!


5 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    It's

    http://localhost:8080/api/Account/Authenticate
    

    as default route. /api/services/ is special url for dynamic web api layer feature of ABP.

  • User Avatar
    0
    lcyhjx created

    Thank you !

  • User Avatar
    0
    wangxiaochen created

    I tried "http://localhost:8080/api/Account/Authenticate" , the response is " An internal error occurred during your request!" 。log is "ERROR 2016-05-23 13:16:09,650 [13 ] lers.Filters.AbpExceptionFilterAttribute - Processing of the HTTP request resulted in an exception. Please see the HTTP response returned by the 'Response' property of this exception for details."

  • User Avatar
    0
    lcyhjx created

    @wangxiaochen you can debug into XXX..Api.Controllers.AccountController.Authenticate to track what happened, and which statement is executed, the exception is thrown. Also, I am think 8080 port is so general and used by other service.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    You can also find error details in Logs.txt file under your web project. If it is not there, you can check window's event logs.