CLI client is not accepting Request headers nor authorization (basic auth) #694
Unanswered
thangarajj
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Since we are not yet using storybook & we are on next js SSG, we are trying out the percy cli client and since our uat environment has a basic auth authorization, I've tried adding this in .percy.yml:
-=-=-=
version: 2
snapshot:
request-headers:
Authorization: 'Basic YWRtaW46aXNoYTEyMw=='
-=-=-=
and
---=-=
version: 2
snapshot:
authorization:
username: example-username
password: example-password
---=
In both cases, we are getting the unauthorized error:
-=-=
~/percy$ npx percy snapshot snapshots.json
[percy] Invalid config:
[percy] - snapshot.authorization: unknown property
[percy] Percy has started!
-=-=
~/percy$ npx percy snapshot snapshots.json
[percy] Invalid config:
[percy] - snapshot.requestHeaders: unknown property
[percy] Percy has started!
-=-=
Right now we trying to pick & choose a set of our urls to take snapshots of and this is blocking us. For urls not protected by basic auth, things are working fine. Am I missing something?
I've searched for similar problems, but didn't find anything with the cli client, only with storybook sdk which was acknowledged & bug fixed. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions