YCPCS-481-TeamB / BaseballSim

CS481 Group Project
0 stars 0 forks source link

API Fields not (successfully) responding to POST #61

Closed bcoov closed 7 years ago

bcoov commented 7 years ago

Performing a POST operation to the /fields/ endpoint results in a 503 - Service Unavailable response. The resulting HTML from such a response is below:

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>Application Error | Heroku</title>
        <link rel="shortcut icon" type="image/x-icon" href="https://www.herokucdn.com/favicon.ico">
        <style media="screen">
          html,body,iframe {
            margin: 0;
            padding: 0;
          }
          html,body {
            height: 100%;
            overflow: hidden;
          }
          iframe {
            width: 100%;
            height: 100%;
            border: 0;
          }
        </style>
    </head>
    <body>
        <iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
    </body>
</html>

Is POSTing to /fields/ not-yet-implemented?

sfitzpa4 commented 7 years ago

POSTing to /fields/ is not yet implemented. Will eventually be connected to games with further complexity it added.

On Nov 15, 2016 3:58 PM, "bcoov" notifications@github.com wrote:

Performing a POST operation to the /fields/ endpoint results in a 503 - Service Unavailable response. The resulting HTML from such a response is below:

`

Application Error | Heroku ` Is POSTing to /fields/ not-yet-implemented? — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/YCPCS-481-TeamB/BaseballSim/issues/61, or mute the thread https://github.com/notifications/unsubscribe-auth/AKfHMew30GCzbk8BVrrloocVcNqJ_ffsks5q-hzjgaJpZM4KzA1S .

This information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies.

bfwalton commented 7 years ago

POST(ing) to fields has existed for a long time. It actually looks like it was a bug in the fields controller where there was a method that attempted to use tables that didn't exist which caused that error. Resolved in next commit in the GameActionApprovals branch