System.Net.Http.HttpRequestException: Response status code does not indicate success: 400 (BAD REQUEST).
   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
   at IncidentReporter.API.Helpers.SupersetClient.<PostGuestTokenAsync>d__15.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 95
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.Helpers.SupersetClient.<MintGuestTokenAsync>d__14.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\Helpers\SupersetClient.cs:line 71
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at IncidentReporter.API.BLL.EmbedBll.<GetGuestTokenAsync>d__5.MoveNext() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.API\BLL\EmbedBll.cs:line 120


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Departments?siteId=708


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=MOC&siteId=708


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/85/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/85/Categories/All


Request Body : {"PageNumber":1,"PageLimit":1000,"UserId":267,"AcmModuleId":85}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/WorkPermitV2/All


Request URL : https://api-sandbox.oqsha.com/Organisation/211/Users/DropDown?ModuleName=PPE Issuance


Request URL : https://api-sandbox.oqsha.com/Organisations/211/PPEStatus


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=262


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/262


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Resources/package-features-eng


Request URL : https://api-sandbox.oqsha.com/Organisations/211/PPEItem/All?SortingColumn=PPEItemName&SortingOrder=asc


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/262


Request URL : https://api-sandbox.oqsha.com/Organisations/211/PPEIssues


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Modules


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Organisations/262/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/262/SideMenu


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/Statuses


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/408


Request URL : https://api-sandbox.oqsha.com/Organisation/248/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/408/MocHistory


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/Categories


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Departments?siteId=708


Request Body : {"PageNumber":0,"PageSize":0,"SiteId":[708],"UserId":5538}


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=MOC&siteId=708


Request URL : https://api-sandbox.oqsha.com/Organisations/211/Investigation/Categories


Request URL : https://api-sandbox.oqsha.com/Organisations/211/IncidentManagement/Investigation/Statuses


Request Body : {}


Request URL : https://api-sandbox.oqsha.com/Organisations/211/IncidentManagement/Investigations


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=85&EntityId=739


Request URL : https://api-sandbox.oqsha.com/Organisations/262/WorkPermitV2/739


Request URL : https://api-sandbox.oqsha.com/Organisation/262/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/85/Categories/All


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/85/Workflows/Transitions/Available


Request Body : {"PageNumber":1,"PageLimit":1000,"SiteIds":[882],"IsPublished":true,"UserId":267,"AcmModuleId":85}


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Work Permit V2&AcmModuleId=85&siteId=882&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/211/IncidentManagement/Investigations/Export


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=MOC


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Departments


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/Statuses


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChangeList


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/Categories


Request Body : {"PageNumber":0,"PageSize":0,"SiteId":[],"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/79/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/79/Categories/All


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Incident Management&siteId=882&siteId=926&siteId=912&siteId=881&siteId=886&siteId=884&siteId=883&siteId=889&siteId=888&siteId=885


Request Body : {"SiteIds":[882,926,912,881,886,884,883,889,888,885],"PageNumber":1,"PageLimit":1000,"IsPublished":true,"UserId":267,"AcmModuleId":79}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments?siteId=883


Request URL : https://api-sandbox.oqsha.com/Organisation/248/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Fir/All


Request Body : {"PageNumber":0,"PageSize":0,"SiteId":[708],"UserId":267}


Request URL : https://api-sandbox.oqsha.com/Organisations/248/Departments?siteId=708


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=MOC&siteId=708


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Categories/All


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments?siteId=882&siteId=926&siteId=912&siteId=881&siteId=886&siteId=884&siteId=883&siteId=889&siteId=888&siteId=885


Request Body : {"SiteIds":[882,926,912,881,886,884,883,889,888,885],"PageNumber":1,"PageLimit":1000,"UserId":267,"AcmModuleId":81}


Request URL : https://api-sandbox.oqsha.com/Resources/app-language-eng


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Investigations/All


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&IsLatestVersion=true&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/Countries


Request URL : https://api-sandbox.oqsha.com/AppVersions?DeviceType=android&Version=6.6.2&IsOqsha=true


Request URL : https://api-sandbox.oqsha.com/Health


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange/Category/10


Request URL : https://api-sandbox.oqsha.com/Organisation/248/Users/DropDown?ModuleName=MOC&SiteId=708&AcmModuleId=38&categoryIds=10&roleId=334


Request URL : https://api-sandbox.oqsha.com/Resources/eng?orgId=262


Request URL : https://api-sandbox.oqsha.com/AccessControl/Modules/262


Request URL : https://api-sandbox.oqsha.com/Resources/package-features-eng


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Users/267


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/79/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisation/262/AccessControl/Roles


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Fir/235


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Modules


Request URL : https://api-sandbox.oqsha.com/Organisations/262


Request URL : https://api-sandbox.oqsha.com/Organisations/262/PendingActionsNotifications


Request URL : https://api-sandbox.oqsha.com/Languages


Request URL : https://api-sandbox.oqsha.com/Dashboard/Organisations/262/SideMenu


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/79/Categories/100191


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/79/Categories/All


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/79/Workflows/Transitions/Available


Request Body : {"SiteIds":[882],"PageNumber":1,"PageLimit":1000,"IsPublished":true,"UserId":267,"AcmModuleId":79}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Reports/Dashboards


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Investigations/183


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Investigations/All


Request Body : {"SiteId":[882],"CategoryId":[],"StateTypeId":[],"StartDate":"","EndDate":"","SearchTerm":"","SortingColumn":["CreatedOn"],"SortingOrder":["desc"],"PageNumber":1,"PageLimit":500}


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=79&EntityId=235


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?AcmModuleId=79&siteId=882&categoryIds=100191&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Departments


Request Body : {"SiteId":[882],"SearchTerm":"","SortingColumn":["Name"],"SortingOrder":["asc"],"PageNumber":1,"PageSize":1000}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Categories/All


Request Body : {"SiteIds":[882],"PageNumber":1,"PageLimit":1000,"IsPublished":true,"UserId":267,"AcmModuleId":81}


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Action-Trackers/All


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Fir/All


Request URL : https://api-sandbox.oqsha.com/Transition-History?orgId=262&ModuleId=81&EntityId=183


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/81/Workflows/Transitions/Available


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/83/Workflows/States/Types


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Investigations&AcmModuleId=81&siteId=882&categoryIds=100190&isActive=true


Request URL : https://api-sandbox.oqsha.com/Organisations/262/Modules/83/Categories/All


Request Body : {"SiteIds":[],"PageNumber":1,"PageLimit":1000,"UserId":267,"AcmModuleId":83}


Request URL : https://api-sandbox.oqsha.com/Organisation/262/Users/DropDown?ModuleName=Action Trackers


Request URL : https://api-sandbox.oqsha.com/Otp


Request Body : ***BODY REDACTED FOR SENSITIVE ENDPOINT***


Request URL : https://api-sandbox.oqsha.com/Organisations/248/ManagementOfChange