Get Audit Logs returns HTML

Hi,

I wanted to assign task in action center to user that starts the process.
I tried using /odata/Users/UiPath.Server.Configuration.OData.GetCurrentUser but it returns service account that starts the process.
My colleague suggested using /odata/AuditLogs instead with appropriate filters as he found that the email address of the user that started the process can be found there.
However this is the response I get when making the API call

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <meta name="referrer" content="no-referrer" />
    <meta property="uipath:config" content="eyJjb25maWdzIjp7IklkZW50aXR5U2VydmVyLkludGVncmF0aW9uLkF1dGhvcml0eSI6Imh0dHBzOi8vY2xvdWQudWlwYXRoLmNvbS9pZGVudGl0eV8ifX0=" />
    <base href="/orchestrator_/" />

    <title>UiPath Orchestrator </title>
    <link rel="shortcut icon" href="favicon.ico" />
    <script type="text/javascript" src="js/redirect.js" nomodule></script>


        <script type="text/javascript" src="https://orch-cdn.uipath.com/client/dist/assets/js/preload.js"></script>

        <link rel="stylesheet" href="/portal_/apollo/packages/apollo-fonts/1/font.css?spaceName=orchestrator" />
        <script type="module" src="/portal_/apollo/packages/portal-shell/3/portal-shell.esm.js?spaceName=orchestrator" crossorigin="anonymous"></script>

</head>
<body class="light apollo-design" data-cdn-url="https://orch-cdn.uipath.com/client" data-build-version="2023.11.0-s130.2848">
    <portal-sheet>
        <ui-app>
            <div class="loader-container">
                <svg class="loader-animation"
                        width="400"
                        height="400"
                        viewBox="0 0 400 400"
                        xmlns="http://www.w3.org/2000/svg">
                    <path class="animated-path"
                            d="M32,48H352V368"
                            fill="none"></path>
                    <path class="animated-path"
                            d="M368,352H48V32"
                            fill="none"></path>
                </svg>
            </div>

            <span class="material-icons-outlined" style="position:absolute; font-size: .1px; color: transparent">people</span>
        </ui-app>
    </portal-sheet>
        <script type="text/javascript" src="dist/assets/cdn.js?version=2023.11.0-s130.2848"></script>
</body>
</html>

This seems to be the html for UiPath page.
I get the same response whether I try running the activity in Studio or in Orchestrator.
My colleague receives appropriate logs in both cases.

Please advise.

@Kac

Please check theresponse type you have specified …it should be application/json

Cheers

This looks like the API call is returning the web Page, you can actually check if you have configured your API call appropriately.

Hi, just wanted to update that the issue went away after removing the Orchestrator HTTP Request and configuring it again.
I used the exact same parameters in both cases, so still no clue what was causing the issue.

Thank you everyone for your help.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.