php - Getting error (500 / 503) in heroku app, using laravel 5.1 and angularjs with GET/POST method -
i'm trying put webapp online using heroku.
everything gone fine, until get/post method request. returns 500 or 503 error.
when locally, works. when send request in heroku, doesn't.
[obs.: i'm trying request postman too... same error!]
is kind of permission, maybe? cross-domain request?
i don't know much...
2015-07-23t18:58:33.476410+00:00 app[web.1]: 10.123.198.169 - - [23/jul/2015:18:57:48 +0000] "get /backend/public/index.php/api/excel http/1.1" 200 146079 "http://heinz.herokuapp.com/public/" "mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.89 safari/537.36 2015-07-23t19:00:35.115264+00:00 heroku[router]: at=info method=get path="/backend/public/index.php/api/txt" host=heinz.herokuapp.com request_id=334dfd15-e371-4e2b-a455-9feabd33fc42 fwd="200.9.124.34" dyno=web.1 connect=2ms service=51ms status=500 bytes=4784 2015-07-23t19:00:35.107136+00:00 app[web.1]: 10.69.166.135 - - [23/jul/2015:19:00:35 +0000] "get /backend/public/index.php/api/txt http/1.1" 500 4519 "http://heinz.herokuapp.com/public/" "mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.89 safari/537.36 2015-07-23t19:01:05.036183+00:00 heroku[router]: at=error code=h12 desc="request timeout" method=get path="/backend/public/index.php/api/excel" host=heinz.herokuapp.com request_id=1963804e-6ed9-4dcb-9099-c91b1bfb3448 fwd="200.9.124.34" dyno=web.1 connect=3ms service=30001ms status=503 bytes=0 2015-07-23t19:01:15.770662+00:00 app[web.1]: 10.136.104.47 - - [23/jul/2015:19:00:35 +0000] "get /backend/public/index.php/api/excel http/1.1" 200 146079 "http://heinz.herokuapp.com/public/" "mozilla/5.0 (x11; linux x86_64) applewebkit/537.36 (khtml, gecko) chrome/44.0.2403.89 safari/537.36
$scope.putthethingsonline = function() { $http.get('../backend/public/index.php/api/excel').success(function() {}); $http.get('../backend/public/index.php/api/txt').success(function() { return alert('dados inseridos'); }); return alert('hello!'); };
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
[update]
i found error, i'm trying solution. here real problem!
looks problem in code, i'm trying solve long time , nothing...
the fact app deployed heroku doesn't seem problem, error codes getting http
errors , coming inside of application.
https://en.wikipedia.org/wiki/list_of_http_status_codes
if heroku issue error belongs codes starting h
or r
or l
- https://devcenter.heroku.com/articles/error-codes.
there several reasons encounter issue. recommend checking heroku logs when trying sent request app. - https://devcenter.heroku.com/articles/logging#log-retrieval
Comments
Post a Comment