401 Status when loading lens in Camera Kit for Web
Hi there, I've got started with Camera Kit for web and currently have a project where I'm able to view the camera feed, however whenever I try to load a lens I get a 401 response saying the request was not authenticated. I've triple checked my API token and the lens ID and lens group IDs, and tried using the default included lens groups, but have still not had any luck. I have set up the project using webpack, and am opening the index.hml page in Chrome on a Mac at the moment. Any help would be greatly appreciated!
Answers
-
Hi @andrew_cf! Are you using the staging token? The production token will not be active until you have an app approved for use in a production environment.
0 -
Lens Group and Lens IDs should be the same for the staging and production token.
Can you confirm that Sample Page works for you https://camera-kit.snapchat.com/websdk/sample/basic ?
0 -
Hi @andrew_cf! Are you still having this issue? If so, be sure that you have Camera Kit enabled for the version of the app that is live for your staging/production environments.
1