Skip to content

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

@craftyshaun

Description

@craftyshaun

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)

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions