Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sophie_bd
Partner - Contributor III
Partner - Contributor III

REST connection to a space Error 401 Requested resource requires authentication.

Hello,

on Qlik Cloud i am trying to use rest connection on spaces.

I have this error message : (Connector error: HTTP protocol error 401 (Unauthorized): Requested resource requires authentication.)

When i use the connection :

SQL SELECT
"__KEY_root",
(SELECT
"spaceId",
"_resourcetype",
"__KEY_attributes",
"__FK_attributes",
(SELECT
"__FK_custom"
FROM "custom" FK "__FK_custom")
FROM "attributes" PK "__KEY_attributes" FK "__FK_attributes")
FROM JSON (wrap on) "root" PK "__KEY_root"
WITH CONNECTION (
URL "$(baseURL)?$(vNextURL)"
);

 

What is the problem with the rest connection ?

Regards

Sophie

Labels (1)
  • SaaS

2 Replies
Richard_T
Support
Support

Hi,

Error 401 - indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource.

Can you please confirm which space (personal, shared, managed) are you trying to connect?

Do you have rights on this space?

Also will be good to log a case to investigate further on this. 

As we will be needing information about your tenant details and ids to investigate further on backend logs.

Thanks

NadiaB
Support
Support

Hi @sophie_bd 

By any chance did you provide the API key in the Rest connection as a header  (under Query Headers section) ?

Name Authorization

Value     Bearer <API-key>

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Admin/mc-generate-api-ke...

Kind Regards. 

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm