What to do if getting the error The remote server returned an error: (403) Forbidden?

What to do if getting the error The remote server returned an error: (403) Forbidden?

FIRST CREATED ON 19 Feb 2024  I  AUTHOR Emma Camacho


When rebuilding the cache of a Datasource, generating a Report or running a task the following error will appear if M&D doesn't have permission to access the Qlik Sense App.


Issue


Der Remoteserver hat einen Fehler zurückgegeben: (403) Unzulässig. 

The remote server returned an error: (403) Forbidden.


STACK TRACE
WebSocketException: Die Verbindung mit dem Remoteserver kann nicht hergestellt werden.
bei MailAndDeploy.Server.ExtensionMethods.Await(Task pTask, TimeSpan pTimeout)
bei MailAndDeploy.Server.Json.Rpc.JsonRpcConnection..ctor(Uri pUri, JsonRpcCookie[] pCookies, JsonRpcHeader[] pHeaders)
bei MailAndDeploy.Server.Connectors.QlikSense.QsEoWConnector.EstablishRpcConnection(Uri pUri, JsonRpcCookie[] pCookies, JsonRpcHeader[] pHeaders)
bei MailAndDeploy.Server.Connectors.QlikSense.QsEoWConnector.GetAppIdentifiers()
bei MailAndDeploy.Server.Services.Management.Ui.QlikSenseServerAppDatasourceSheet.ReloadAppsDropDown()
bei MailAndDeploy.Server.Services.Management.Ui.QlikSenseServerAppDatasourceSheet.GeneralPage_AppField_ButtonClicked(String pSender)
WebException: Der Remoteserver hat einen Fehler zurückgegeben: (403) Unzulässig.
bei System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
bei System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
bei System.Net.WebSockets.ClientWebSocket.d__21.MoveNext()


Resolution


Note the Authentication Type property of the Datasource


a) If using Service Account: Make sure that the service account has permissions to access the App.


The service account is this one:

 you can also find it here
M&D Management Console -> Settings -> Server


b)  If using Custom Credentials: Make sure that the account defined has permissions to access the App.



c) If using Impersonation (Section Access): Make sure that the account defined has permissions to access the App: directory\account. 



InfoLooking for Additional Guidance?


If you require more detailed information or further assistance, please visit our comprehensive Online Documentation. Our resources are designed to help you navigate all features and functionalities effectively.