Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

"npm test" crashes out #422

@Pomax

Description

@Pomax

Running npm test with a webmaker_oauth2_test database created in postgresql, and the login service running on port 3000, generates a whole bunch of errors around lib/accounts.js line 37 which parses the login response.

A console.log of the data it tries to parse shows that it dies when it gets the value "not json" as body, which is a little confusing because it's unclear where that's coming from. The test mock server generates it, it seems like, but it's unclear why it does so - does the login.webmaker.org service generate that same string in any circumstance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions