Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix To Error Messaging Around CLI & Auth (CloudFlare Zero Trust / Self Hosted) #2059

Open
1 of 3 tasks
craftyshaun opened this issue May 18, 2022 · 0 comments
Open
1 of 3 tasks
Assignees
Labels
bug Something isn't working

Comments

@craftyshaun
Copy link

Location

  • Browser
  • CLI
  • API

Motivation

Pain point around error messaging for self-hosted using Cloudflare Zero Trust.

Requirements

Currently, when PORTER_CF_ACCESS_TOKEN is null or the token is invalid the CLI responds with the following error.

Error: invalid character '<' looking for beginning of value

Would be nice to:

  • catch this and display a different message relating to failed authentication.
  • bonus if the message could be parsed or the PORTER_HOST checked to see if its 'self hosted' to then hint towards docs

Additional Details

The following command could also be added to the docs.
export PORTER_CF_ACCESS_TOKEN=$(cloudflared access token -app=https://porter.my-cloudflare-domain.com)

@jnfrati jnfrati added the bug Something isn't working label May 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants