Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reponse containing html code string return 404 through antoAwrapper #126

Open
scil opened this issue Dec 21, 2021 · 1 comment
Open

reponse containing html code string return 404 through antoAwrapper #126

scil opened this issue Dec 21, 2021 · 1 comment

Comments

@scil
Copy link

scil commented Dec 21, 2021

I return html code string and get 404 ,and the wanted data in the exceptionMessage


{
  "isError": true,
  "responseException": {
    "exceptionMessage": {

      "commentList": [
        {
          "id": 19,
          "createdUser": "4k2n1gmr4zt5w03t0xg075p4wn"
        }
      ],

      "pagerHtml": "\r\n<ul class=\"pager\"><li class=\"disabled first\"><a>&lt;&lt;</a></li><li class=\"disabled\"><a rel=\"prev\">&lt;</a></li><li class=\"active\"><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=1\">1</a></li><li><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=2\" rel=\"next\">2</a></li><li><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=2\" rel=\"next\">&gt;</a></li><li class=\"last\"><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=2\">&gt;&gt;</a></li></ul>\r\n"
    }
  }
}

I tried new ApiResponse and failed

{
  "isError": true,
  "responseException": {
    "exceptionMessage": {
      "version": "1.0.0.0",
      "statusCode": 200,
      "message": "GET Request successful.",
      "responseException": null,
      "result": {
        "contentType": null,
        "serializerSettings": null,
        "statusCode": null,
        "value": {
          "commentList": [
          {
            "id": 19,
            "createdUser": "4k2n1gmr4zt5w03t0xg075p4wn"
          }
          ],

          "pagerHtml": "\r\n<ul class=\"pager\"><li class=\"disabled first\"><a>&lt;&lt;</a></li><li class=\"disabled\"><a rel=\"prev\">&lt;</a></li><li class=\"active\"><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=1\">1</a></li><li><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=2\" rel=\"next\">2</a></li><li><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=2\" rel=\"next\">&gt;</a></li><li class=\"last\"><a href=\"/api/common/comment/Index?AuditStatus=030203&amp;Status=1&amp;page=2\">&gt;&gt;</a></li></ul>\r\n"
        }
      }
    }
  }
}```


@scil scil changed the title reponse containing html code string return 404 throuth antoAwrapper reponse containing html code string return 404 through antoAwrapper Dec 21, 2021
@SaravananArunagiri
Copy link

use
BypassHTMLValidation = true,

will resolve your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants