Skip to content

Missing class definition in output.py #955

@jeastham1993

Description

@jeastham1993

Describe the bug
There is a missing class InvalidRestApiRequest in the output.py file. The handle_create_order.py tries to import this but doesn't actually use it. I'm not sure if the class needs to be created, or it's been removed and the imports haven't been cleaned up.

To Reproduce
Steps to reproduce the behavior:

  1. Bootstrap a new service
  2. Deploy to AWS
  3. Try to invoke the API endpoints, returns internal server error
  4. Error message is Unable to import module 'activity_service.handlers.handle_create_order': cannot import name 'InvalidRestApiRequest' from 'activity_service.models.output' (/var/task/activity_service/models/output.py)

Expected behavior
The API returns

Screenshots

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions