Skip to content

Trying to create project without running kfl init first results in undescriptive error #28

@matthias-hausberger

Description

@matthias-hausberger

Steps to reproduce:

  1. Run kfl init and set up your Keyflare instance. This will create a BASE URL and USER KEY in ~/.config/keyflare
  2. Delete the worker and d1 db in Cloudflare
  3. Try to run kfl projects create myproject

Result:

kfl projects create myproject
✗ Unexpected token '<', "<!DOCTYPE "... is not valid JSON

Expected Result:

  • Show a nicer - corresponding error if the CF Worker is not accessible (network error or possibly deleted instance?)
  • Ensure that a nicer error is also shown when there is no BASE URL or USER KEY defined at all on the client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions