Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stubby seems to fail without error messages #74

Open
cicely-f opened this issue May 17, 2018 · 0 comments
Open

stubby seems to fail without error messages #74

cicely-f opened this issue May 17, 2018 · 0 comments

Comments

@cicely-f
Copy link

I just tried using stubby both in Windows 10 Pro and Ubuntu. When I start it up, there is no message, it just returns me to the command line without any error either. When attempting to connect to either 8889 or 8882 on localhost, I get connection refused.

I launch stubby with the following command:
stubby -d api-stubs.yml -l localhost -w

This is my api-stubs.yml file:

# valid login
- request:
    url: ^/login/?$
    method: GET
    query:
      email: someone@example.com
      password: dadada
  response:
   -  status: 200
      headers: application/json
      body: >
        {
          "id":"fedcba-123456-abcdef",
          "email":"someone@example.com"
        }
# invalid login
- request:
    url: ^/login/?$
    method: GET
    query:
      email: someone@example.com
      password: "(!dadada)"
  response:
   - status: 401

# logout
- request:
    url: ^/logout/?$
    method: GET
  response:
   -  status: 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant