Skip to content

RethinkDB should never return HTTP code 500 (Internal Server Error) without writing a more detailed message to the log #511

Closed

Description

@AtnNn
No description provided.

Activity

  1. coffeemug commented on Mar 20, 2013

    @coffeemug
    Contributor

    What is this with respect to? (not that I disagree with you, but we need context)

  2. jdoliner commented on Mar 20, 2013

    @jdoliner
    Contributor

    I think every 500 we return has an extended description in the body. I'm not sure if this winds up getting shown anywhere though. But we could probably just log that.

  3. ghost assigned on Mar 20, 2013
  4. AtnNn commented on Mar 20, 2013

    @AtnNn
    MemberAuthor

    A few of the integration tests are failing because the server returns a 500 error code, and there is no indication what the error is.

    Here is a bad example of code that returns 500:

    catch (cannot_perform_query_exc_t &) {
        return http_res_t(HTTP_INTERNAL_SERVER_ERROR);
    }
    

    Here is a good example:

    catch (const cannot_satisfy_goals_exc_t &e) {
        logINF("The server was given a set of goals for which it couldn't find a valid blueprint. %s", e.what());
        return http_error_res(e.what(), HTTP_INTERNAL_SERVER_ERROR);
    }
    
  5. neumino commented on Mar 20, 2013

    @neumino
    Member

    @AtnNn, could you ping me when this issue is fixed?

    The web interface display some of these errors. It shouldn't break anything on the web ui, but just in case I would like to test it.

  6. AtnNn commented on Apr 29, 2014

    @AtnNn
    MemberAuthor

    I think every 500 we return has an extended description in the body.

    They all do except for one. I've opened revivew 1464 for it.

    Fixing that would be enough I think. @neumino do you mind if I close this issue afterwards?

  7. neumino commented on Apr 29, 2014

    @neumino
    Member

    @AtnNn -- in which situation were we returning 500 error without body?
    And yep, if you don't change the body of previous errors, there shouldn't be any problem.

  8. AtnNn commented on Apr 29, 2014

    @AtnNn
    MemberAuthor

    When an exception occurs while reading the distribution.

  9. neumino commented on Apr 29, 2014

    @neumino
    Member

    @AtnNn -- Oh ok, feel free to close it afterwards.

  10. modified the milestones: 1.13, backlog on Apr 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions