Auth0 Home Blog Docs

Getting an error when fetching client data for Lock

auth0-lock

#1

I get this on application load. I’m using the Auth Lock module with React under Node.

Error: An error occurred when fetching client data for Lock: https://cdn.auth0.com/client/l8o9EAaZFLqZPuZzxjEBzAmEePguRdKngitnpm.js?t1495003518531 could not be loaded

This is the error when try to access that CDN file.

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>CF398C015034193E</RequestId>
<HostId>
R5He7WrrKhjl6n5rU921ftxTtKhQz3ZFWoCYu1InkdAigPtYr7Oxz5Ib+mRE4XDdiDjBmZmzikk=
</HostId>
</Error>

#2

The error in question is triggered if the associated client identifier does not map to an existing client application.

Ensure that you correctly configured Auth0 Lock with the client identifier of one the client applications you have configured in your Dashboard. In particular the client identifier in the request that is triggering the error seems longer than the client identifier currently being issued by Auth0.


#3

Ugh…of course you’re right. My ID got mangled somehow.

I owe you. Thanks a bunch.


#4

@jmangelo1 Strangely, if I use the custom login page it works. I double and triple-checked the clientId just to be sure.


#5

But the error in the request is the exactly the same as the one in the question? If it is that is very strange if the same URL works on HLP and fails in client app.


#6