Skip to content

exercism status returns an internal server error when there's no api key set locally #296

@mrageh

Description

@mrageh

When a user does not have their api key set and exercism debug returns:

**** Debug Information ****
Exercism CLI Version: 2.2.4
Exercism CLI Latest Release: 2.2.4
OS/Architecture: darwin/amd64
Build OS/Architecture /
Home Dir: /Users/Adam
Config file: /Users/Adam/.exercism.json
API Key:
Exercises Directory: /Users/Adam/programming/cisms/
Testing API endpoints reachability
    * API: http://exercism.io [connected] 170.057673ms
    * GitHub API: https://api.github.com/ [connected] 322.724326ms
    * XAPI: http://x.exercism.io [connected] 649.753655ms

If that user tries to check the status of a language with exercism status language, the server returns a 500 I think:

2016/03/03 09:36:45 an internal server error was received.
Please file a bug report with the contents of 'exercism debug' at: https://github.com/exercism/exercism.io/issues

Is this a bug and should we fix it?

I'd be happy to take a stab at it by making changes to exercism/cli.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions