Open kenrestivo-stem opened 7 years ago
I ran into this as well. I believe you need to define the response type information. So at a minimum, defining the response type as string
will provide a response other than None
.
For example (swagger definition in yaml):
/ping:
get:
summary: Pings the server
description: ''
produces:
- application/json
responses:
'200':
description: successful operation
☝️ will result in the None
value you are getting.
👇 and the following will at least give you a string value (not parsed json).
/ping:
get:
summary: Pings the server
description: ''
produces:
- application/json
responses:
'200':
description: successful operation
# FIXME used to get response data from bravado
schema:
type: string
I hope that helps
Looking at a very basic GET with bravado to a private server. We squared away the SSL issue, and bravado can access the server.
Now bravado is returning NoneType for get requests that definitely hit the server, and definitely return something:
But all bravado returns is NoneType:
Does bravado/requests handle 301 redirects?