Heroku CI Integration

43 Views Asked by At

As I attempt to run the Heroku CI tests, I find that I get a <404> request when I use the request to peek into my webserver's url:

resp = requests.post((url),
            json=dict(username = xxx, password = xxx),
       )

I've verified that all the url and inputted password and usernames are correct. The url is the predictable pattern from my app's settings. What else could be causing me to get a 404 error?

1

There are 1 best solutions below

5
On

Are you sure you need to submit user authentication as a JSON payload?

If not, try to use Basic Auth:

username = 'xxx'
password = 'xxx'
resp = requests.post(url, auth=(username, password))