Skip to content

/api-key/ returns a 500 error (and user presented with a blank page) #603

Closed

Description

@dstricks

Examples:
http://chicagocode.org/api-key/
https://vacode.org/api-key/

I stumbled upon this because The State Decoded API documentation has:

Register for a key on the site in question (e.g., Virginia)

... with https://vacode.org/api-key/ being the href.

It appears that this ../api-key/ page should be a valid location because visiting https://vacode.org/blah/properly presents a 404.

Activity

  1. waldoj commented on Feb 2, 2016

    @waldoj
    Member

    Ack! I don't know how in the world that got through to deployed software! I'll pore over the error logs and figure out what's up. Thanks so much, @dstricks.

  2. waldoj commented on Feb 2, 2016

    @waldoj
    Member
    PHP Fatal error:  Class 'ApiKeyController' not found in /vol/vacode.org/includes/class.MasterController.inc.php on line 38
    

    Well, yeah, that'll do it.

  3. krusynth commented on Feb 2, 2016

    @krusynth
    Member

    This looks like my doing, I'll take a look this morning. Should be easy.

  4. krusynth commented on Feb 2, 2016

    @krusynth
    Member

    Oh wait, that's just to register for an API key, so this is all on the Downloads page now since the redesign. So it's just a documentation issue? @waldoj am I crazy or is that right?

  5. waldoj commented on Feb 2, 2016

    @waldoj
    Member

    Huh. I'm pretty sure you're right. So this requires a) fixing the docs and b) figuring out why in the world a 500 results, instead of a 404.

  6. krusynth commented on Feb 2, 2016

    @krusynth
    Member

    I'm looking at the 500 right this minute for #602

  7. waldoj commented on Feb 2, 2016

    @waldoj
    Member

    Ahh, right, I thought I remembered that. Great. I'll fix the docs then.

  8. krusynth commented on Feb 2, 2016

    @krusynth
    Member

    Ok, there's the 500 fix. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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