Skip to content

NotFound Exception error when using DELETE verb #110

@alnacle

Description

@alnacle

APIs using the DELETE method raises a NotFound exception error.

Traceback (most recent call last):
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/flight_order_management.py", line 13, in <module>
    raise error
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/flight_order_management.py", line 7, in <module>
    response = amadeus.booking.flight_order('eJzTd9cPCjX2Mg8HAAs1Alg%3D').delete()
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/booking/_flight_order.py", line 34, in delete
    return self.client.delete('/v1/booking/flight-orders/{0}'
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/mixins/http.py", line 89, in delete
    return self.request('DELETE', path, params)
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/mixins/http.py", line 113, in request
    return self._unauthenticated_request(
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/mixins/http.py", line 129, in _unauthenticated_request
    return self.__execute(request)
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/mixins/http.py", line 155, in __execute
    response._detect_error(self)
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/mixins/parser.py", line 16, in _detect_error
    self.__raise_error(error, client)
  File "/Users/anavarro/src/github.com/alnacle/amadeus-python/amadeus/mixins/parser.py", line 58, in __raise_error
    raise error
amadeus.client.errors.NotFoundError: [404]

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