Build is successful with Heroku but an application error - html

Allow me to explain. I use Heroku for enabling my online application (React/Redux).
So, my build has been done correctly, but when I viewed the log I found this error:
at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=desolate-river-47144.herokuapp.com request_id=334501ef-1403-4ba3-a69e-3587b44dd79c fwd="xx.xxx.xx.xx" dyno= connect= service= status=503 bytes= protocol=https
(fwd contains my IP address)
I only have this error. I tried heroku restart, but the problem remained.
All of my logs are as follows. As you see, all has been built – that's what I don't understand.
2018-05-20T17:06:13.022497+00:00 app[web.1]: [192] ./~/react-redux/~/lodash/_getRawTag.js 1.14 kB {0} [built]
2018-05-20T17:06:13.022494+00:00 app[web.1]: [190] ./~/react-redux/~/lodash/_root.js 300 bytes {0} [built]
2018-05-20T17:06:13.022499+00:00 app[web.1]: [193] ./~/react-redux/~/lodash/_objectToString.js 565 bytes {0} [built]
2018-05-20T17:06:13.022501+00:00 app[web.1]: [194] ./~/react-redux/~/lodash/_getPrototype.js 163 bytes {0} [built]
2018-05-20T17:06:13.022502+00:00 app[web.1]: [195] ./~/react-redux/~/lodash/_overArg.js 382 bytes {0} [built]
2018-05-20T17:06:13.022504+00:00 app[web.1]: [196] ./~/react-redux/~/lodash/isObjectLike.js 614 bytes {0} [built]
2018-05-20T17:06:13.022506+00:00 app[web.1]: [197] ./~/react-redux/~/hoist-non-react-statics/index.js 1.39 kB {0} [built]
2018-05-20T17:06:13.022507+00:00 app[web.1]: [198] ./~/invariant/browser.js 1.4 kB {0} [built]
2018-05-20T17:06:13.022509+00:00 app[web.1]: [199] ./src/routes.js 3.13 kB {0} [built]
2018-05-20T17:06:13.022510+00:00 app[web.1]: [200] ./~/react-router-dom/index.js 2.17 kB {0} [built]
2018-05-20T17:06:13.022512+00:00 app[web.1]: [201] ./~/react-router-dom/BrowserRouter.js 2.98 kB {0} [built]
2018-05-20T17:06:13.022513+00:00 app[web.1]: [202] ./~/warning/browser.js 1.81 kB {0} [built]
2018-05-20T17:06:13.022515+00:00 app[web.1]: [203] ./~/prop-types/index.js 956 bytes {0} [built]
2018-05-20T17:06:13.022517+00:00 app[web.1]: [204] ./~/prop-types/factoryWithTypeCheckers.js 19.8 kB {0} [built]
2018-05-20T17:06:13.022518+00:00 app[web.1]: [205] ./~/fbjs/lib/emptyFunction.js 959 bytes {0} [built]
2018-05-20T17:06:13.022520+00:00 app[web.1]: [206] ./~/fbjs/lib/invariant.js 1.51 kB {0} [built]
2018-05-20T17:06:13.022521+00:00 app[web.1]: [207] ./~/fbjs/lib/warning.js 1.9 kB {0} [built]
2018-05-20T17:06:13.022523+00:00 app[web.1]: [208] ./~/object-assign/index.js 2.11 kB {0} [built]
2018-05-20T17:06:13.022525+00:00 app[web.1]: [209] ./~/prop-types/lib/ReactPropTypesSecret.js 314 bytes {0} [built]
2018-05-20T17:06:13.022526+00:00 app[web.1]: [210] ./~/prop-types/checkPropTypes.js 2.87 kB {0} [built]
2018-05-20T17:06:13.022528+00:00 app[web.1]: [211] ./~/prop-types/factoryWithThrowingShims.js 1.49 kB {0} [built]
2018-05-20T17:06:13.022530+00:00 app[web.1]: [212] ./~/history/createBrowserHistory.js 9.75 kB {0} [built]
2018-05-20T17:06:13.022531+00:00 app[web.1]: [213] ./~/history/LocationUtils.js 2.65 kB {0} [built]
2018-05-20T17:06:13.022533+00:00 app[web.1]: [214] ./~/resolve-pathname/cjs/index.js 1.88 kB {0} [built]
2018-05-20T17:06:13.022534+00:00 app[web.1]: [215] ./~/value-equal/cjs/index.js 1.22 kB {0} [built]
2018-05-20T17:06:13.022536+00:00 app[web.1]: [216] ./~/history/PathUtils.js 1.77 kB {0} [built]
2018-05-20T17:06:13.022538+00:00 app[web.1]: [217] ./~/history/createTransitionManager.js 2.36 kB {0} [built]
2018-05-20T17:06:13.022539+00:00 app[web.1]: [218] ./~/history/DOMUtils.js 2.49 kB {0} [built]
2018-05-20T17:06:13.022541+00:00 app[web.1]: [219] ./~/react-router-dom/Router.js 334 bytes {0} [built]
2018-05-20T17:06:13.022543+00:00 app[web.1]: [220] ./~/react-router/Router.js 4.27 kB {0} [built]
2018-05-20T17:06:13.022544+00:00 app[web.1]: [221] ./~/react-router-dom/HashRouter.js 2.93 kB {0} [built]
2018-05-20T17:06:13.022546+00:00 app[web.1]: [222] ./~/history/createHashHistory.js 10.1 kB {0} [built]
2018-05-20T17:06:13.022547+00:00 app[web.1]: [223] ./~/react-router-dom/Link.js 4.56 kB {0} [built]
2018-05-20T17:06:13.022549+00:00 app[web.1]: [224] ./~/react-router-dom/MemoryRouter.js 364 bytes {0} [built]
2018-05-20T17:06:13.022550+00:00 app[web.1]: [225] ./~/react-router/MemoryRouter.js 2.98 kB {0} [built]
2018-05-20T17:06:13.022552+00:00 app[web.1]: [226] ./~/history/createMemoryHistory.js 5.82 kB {0} [built]
2018-05-20T17:06:13.022553+00:00 app[web.1]: [227] ./~/react-router-dom/NavLink.js 3.16 kB {0} [built]
2018-05-20T17:06:13.022555+00:00 app[web.1]: [228] ./~/react-router-dom/Route.js 329 bytes {0} [built]
2018-05-20T17:06:13.022556+00:00 app[web.1]: [229] ./~/react-router/Route.js 6.76 kB {0} [built]
2018-05-20T17:06:13.022558+00:00 app[web.1]: [230] ./~/react-router/matchPath.js 2.27 kB {0} [built]
2018-05-20T17:06:13.022560+00:00 app[web.1]: [231] ./~/path-to-regexp/index.js 10.8 kB {0} [built]
2018-05-20T17:06:13.022561+00:00 app[web.1]: [232] ./~/isarray/index.js 120 bytes {0} [built]
2018-05-20T17:06:13.022563+00:00 app[web.1]: [233] ./~/react-router-dom/Prompt.js 334 bytes {0} [built]
2018-05-20T17:06:13.022564+00:00 app[web.1]: [234] ./~/react-router/Prompt.js 3.09 kB {0} [built]
2018-05-20T17:06:13.022566+00:00 app[web.1]: [235] ./~/react-router-dom/Redirect.js 344 bytes {0} [built]
2018-05-20T17:06:13.022568+00:00 app[web.1]: [236] ./~/react-router/Redirect.js 3.65 kB {0} [built]
2018-05-20T17:06:13.022570+00:00 app[web.1]: [237] ./~/history/index.js 1.58 kB {0} [built]
2018-05-20T17:06:13.022571+00:00 app[web.1]: [238] ./~/react-router-dom/StaticRouter.js 364 bytes {0} [built]
2018-05-20T17:06:13.022573+00:00 app[web.1]: [239] ./~/react-router/StaticRouter.js 6.92 kB {0} [built]
2018-05-20T17:06:13.022575+00:00 app[web.1]: [240] ./~/react-router-dom/Switch.js 334 bytes {0} [built]
2018-05-20T17:06:13.022576+00:00 app[web.1]: [241] ./~/react-router/Switch.js 3.86 kB {0} [built]
2018-05-20T17:06:13.022578+00:00 app[web.1]: [242] ./~/react-router-dom/matchPath.js 349 bytes {0} [built]
2018-05-20T17:06:13.022580+00:00 app[web.1]: [243] ./~/react-router-dom/withRouter.js 354 bytes {0} [built]
2018-05-20T17:06:13.022581+00:00 app[web.1]: [244] ./~/react-router/withRouter.js 1.86 kB {0} [built]
2018-05-20T17:06:13.022583+00:00 app[web.1]: [245] ./~/hoist-non-react-statics/index.js 2.6 kB {0} [built]
2018-05-20T17:06:13.022584+00:00 app[web.1]: [246] ./src/components/Posts.js 4.52 kB {0} [built]
2018-05-20T17:06:13.022586+00:00 app[web.1]: [247] ./src/actions/index.js 1.24 kB {0} [built]
2018-05-20T17:06:13.022588+00:00 app[web.1]: [248] ./src/actions/actions-type.js 338 bytes {0} [built]
2018-05-20T17:06:13.022589+00:00 app[web.1]: [249] ./~/axios/index.js 40 bytes {0} [built]
2018-05-20T17:06:13.022591+00:00 app[web.1]: [250] ./~/axios/lib/axios.js 1.37 kB {0} [built]
2018-05-20T17:06:13.022592+00:00 app[web.1]: [251] ./~/axios/lib/utils.js 7.54 kB {0} [built]
2018-05-20T17:06:13.022594+00:00 app[web.1]: [252] ./~/axios/lib/helpers/bind.js 256 bytes {0} [built]
2018-05-20T17:06:13.022596+00:00 app[web.1]: [253] ./~/is-buffer/index.js 698 bytes {0} [built]
2018-05-20T17:06:13.022597+00:00 app[web.1]: [254] ./~/axios/lib/core/Axios.js 2.19 kB {0} [built]
2018-05-20T17:06:13.022599+00:00 app[web.1]: [255] ./~/axios/lib/defaults.js 2.43 kB {0} [built]
2018-05-20T17:06:13.022606+00:00 app[web.1]: [256] ./~/axios/lib/helpers/normalizeHeaderName.js 357 bytes {0} [built]
2018-05-20T17:06:13.022608+00:00 app[web.1]: [257] ./~/axios/lib/adapters/xhr.js 6.17 kB {0} [built]
2018-05-20T17:06:13.022610+00:00 app[web.1]: [258] ./~/axios/lib/core/settle.js 757 bytes {0} [built]
2018-05-20T17:06:13.022612+00:00 app[web.1]: [259] ./~/axios/lib/core/createError.js 625 bytes {0} [built]
2018-05-20T17:06:13.022613+00:00 app[web.1]: [260] ./~/axios/lib/core/enhanceError.js 592 bytes {0} [built]
2018-05-20T17:06:13.022615+00:00 app[web.1]: [261] ./~/axios/lib/helpers/buildURL.js 1.55 kB {0} [built]
2018-05-20T17:06:13.022617+00:00 app[web.1]: [262] ./~/axios/lib/helpers/parseHeaders.js 1.39 kB {0} [built]
2018-05-20T17:06:13.022619+00:00 app[web.1]: [263] ./~/axios/lib/helpers/isURLSameOrigin.js 2.25 kB {0} [built]
2018-05-20T17:06:13.022620+00:00 app[web.1]: [264] ./~/axios/lib/helpers/btoa.js 986 bytes {0} [built]
2018-05-20T17:06:13.022622+00:00 app[web.1]: [265] ./~/axios/lib/helpers/cookies.js 1.36 kB {0} [built]
2018-05-20T17:06:13.022624+00:00 app[web.1]: [266] ./~/axios/lib/core/InterceptorManager.js 1.25 kB {0} [built]
2018-05-20T17:06:13.022625+00:00 app[web.1]: [267] ./~/axios/lib/core/dispatchRequest.js 2.2 kB {0} [built]
2018-05-20T17:06:13.022627+00:00 app[web.1]: [268] ./~/axios/lib/core/transformData.js 550 bytes {0} [built]
2018-05-20T17:06:13.022629+00:00 app[web.1]: [269] ./~/axios/lib/cancel/isCancel.js 102 bytes {0} [built]
2018-05-20T17:06:13.022631+00:00 app[web.1]: [270] ./~/axios/lib/helpers/isAbsoluteURL.js 563 bytes {0} [built]
2018-05-20T17:06:13.022632+00:00 app[web.1]: [271] ./~/axios/lib/helpers/combineURLs.js 380 bytes {0} [built]
2018-05-20T17:06:13.022634+00:00 app[web.1]: [272] ./~/axios/lib/cancel/Cancel.js 385 bytes {0} [built]
2018-05-20T17:06:13.022636+00:00 app[web.1]: [273] ./~/axios/lib/cancel/CancelToken.js 1.24 kB {0} [built]
2018-05-20T17:06:13.022637+00:00 app[web.1]: [274] ./~/axios/lib/helpers/spread.js 564 bytes {0} [built]
2018-05-20T17:06:13.022639+00:00 app[web.1]: [275] ./src/components/Post.js 3.39 kB {0} [built]
2018-05-20T17:06:13.022640+00:00 app[web.1]: [276] ./src/components/RouteNotFound.js 2.42 kB {0} [built]
2018-05-20T17:06:13.022642+00:00 app[web.1]: [277] ./src/reducers/index.js 608 bytes {0} [built]
2018-05-20T17:06:13.022643+00:00 app[web.1]: [278] ./src/reducers/Posts-reducer.js 703 bytes {0} [built]
2018-05-20T17:06:13.022645+00:00 app[web.1]: [279] ./src/reducers/activePost-reducer.js 418 bytes {0} [built]
2018-05-20T17:06:13.023213+00:00 app[web.1]: webpack: Compiled successfully.
2018-05-20T17:06:46.501296+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=desolate-river-47144.herokuapp.com request_id=e8a9dd79-4bce-4701-ba86-59b43014372f fwd="77.144.48.66" dyno= connect= service= status=503 bytes= protocol=https
2018-05-20T17:07:06.721306+00:00 app[web.1]: Error waiting for process to terminate: No child processes
2018-05-20T17:07:06.686809+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2018-05-20T17:07:06.687045+00:00 heroku[web.1]: Stopping process with SIGKILL
2018-05-20T17:07:06.819749+00:00 heroku[web.1]: Process exited with status 22
2018-05-20T17:07:07.316344+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-20T17:07:10.468356+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=desolate-river-47144.herokuapp.com request_id=42afaab0-f2ca-4c14-bfab-8b364bb5b7fb fwd="77.144.48.66" dyno= connect= service= status=503 bytes= protocol=https
2018-05-20T17:07:12.928299+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=desolate-river-47144.herokuapp.com request_id=b1b60a3d-dcd6-47b0-be36-5e46e078b5e8 fwd="77.144.48.66" dyno= connect= service= status=503 bytes= protocol=https
2018-05-20T17:07:24.422621+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=desolate-river-47144.herokuapp.com request_id=c90f89dd-3c73-4086-87bb-62758b4f0698 fwd="77.144.48.66" dyno= connect= service= status=503 bytes= protocol=https
2018-05-20T17:07:25.323510+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=desolate-river-47144.herokuapp.com request_id=374cc4d9-f87d-471a-a6c6-071e8664476b fwd="77.144.48.66" dyno= connect= service= status=503 bytes= protocol=https

My best guess is that your server is not listening on the port Heroku expects it to listen on.
These two log lines are what suggest that this might be the case to me, especially because before the first line there's about a 30 second gap since the process last logged anything.
2018-05-20T17:06:46.501296+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path="/" host=desolate-river-47144.herokuapp.com request_id=e8a9dd79-4bce-4701-ba86-59b43014372f fwd="77.144.48.66" dyno= connect= service= status=503 bytes= protocol=https
2018-05-20T17:07:06.686809+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
Wherever you set the port your server listens, try doing something like const port = process.env.PORT || 3000

Related

An error occurred in the application and your page could not be served Deploying Node.Js REST to heroku

I am new to using Heroku to deploy REST api. I have coded a REST api in Node.JS now i want to deploy this to Heroku. Please is there a step by step method
i am getting this Error on Heroku
Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail
on my Desktop, testing on Postman it works perfectly. But i cannot view from a Browser
https://test-restapi2.herokuapp.com/employees
My Node.Js app looks like this :
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var mysql = require('mysql');
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({
extended:true
}));
app.get('/',function(req , res){
return res.send({error: true,message: 'hello'})
});
var dbConn = mysql.createConnection({
host: 'xxxxxxxxxxxxxxxx',
user: 'xxxxxxxxxxxxxx',
password: 'xxxxxxxxxxx',
database: 'xxxxxxxxxxxxxxxxx'
});
dbConn.connect();
app.get('/employees',function(req,res){
dbConn.query('SELECT * FROM employeedb',function(error, results, fields){
if (error) throw error;
return res.send({ error: false, data: results, message: 'users list' });
});
});
app.listen(5000,function(){
console.log('App running on port 5000');
});
module.exports = app;
Please how Can i get this resolved?
Edits
Checking the Logs, I saw this :
2021-10-09T19:28:55.666772+00:00 heroku[web.1]: State changed from crashed to starting
2021-10-09T19:28:57.813040+00:00 heroku[web.1]: Starting process with command `npm start`
2021-10-09T19:28:59.202356+00:00 app[web.1]: npm ERR! missing script: start
2021-10-09T19:28:59.208564+00:00 app[web.1]:
2021-10-09T19:28:59.208837+00:00 app[web.1]: npm ERR! A complete log of this run can be found in:
2021-10-09T19:28:59.208892+00:00 app[web.1]: npm ERR! /app/.npm/_logs/2021-10-09T19_28_59_202Z-debug.log
2021-10-09T19:28:59.327035+00:00 heroku[web.1]: Process exited with status 1
2021-10-09T19:28:59.422562+00:00 heroku[web.1]: State changed from starting to crashed
2021-10-09T19:29:04.931511+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=test-restapi2.herokuapp.com request_id=aafd0e0b-988e-4673-9359-f7576e340d75 fwd="154.120.87.9" dyno= connect= service= status=503 bytes= protocol=https
2021-10-09T19:29:06.103970+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=test-restapi2.herokuapp.com request_id=6b375048-c8db-4323-8484-ba60aafea022 fwd="154.120.87.9" dyno= connect= service= status=503 bytes= protocol=https
2021-10-09T19:32:15.776019+00:00 app[api]: Starting process with command `npm start` by user emeka1987ng#gmail.com
2021-10-09T19:32:17.857845+00:00 heroku[run.9636]: Awaiting client
2021-10-09T19:32:17.890327+00:00 heroku[run.9636]: Starting process with command `npm start`
2021-10-09T19:32:17.959936+00:00 heroku[run.9636]: State changed from starting to up
2021-10-09T19:32:21.444257+00:00 heroku[run.9636]: Process exited with status 1
2021-10-09T19:32:21.499239+00:00 heroku[run.9636]: State changed from up to complete
2021-10-09T19:32:28.775794+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/employees" host=test-restapi2.herokuapp.com request_id=1a03731f-41cb-438d-b877-c1e49d5dd039 fwd="107.155.108.143" dyno= connect= service= status=503 bytes= protocol=https
2021-10-09T19:32:39.195421+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/employees" host=test-restapi2.herokuapp.com request_id=c1833124-6596-4401-a765-f8a65345b5e1 fwd="52.204.27.85" dyno= connect= service= status=503 bytes= protocol=https
You can see the logs of your application and determine the problem.
At your project page, top right corner, there is a "More" button.
Click there and then "View Logs" and you should be able to see the exact problem and fix it.

Application unable to work due to rate limiter

I have tried to implement rate limiter on server.js but it gives this error below making the website crash. Did I implement the rate limiter wrongly? I have tried changing the rate and apiLimiter line position but it didnt work. Below server.js is the error log. As this is the first time I encounter this error log issue, I am not sure where to look for the issue. This is my first time implementing rate limiter in server.js so please advice.
Application error
An error occurred in the application and your page could not be served
server.js
import express from 'express'
import path from 'path'
import mongoose from 'mongoose'
import cors from 'cors'
import rateLimit from 'express-rate-limiter'
import config from './config'
import userRoute from './routes/userRoute'
import uploadRoute from './routes/uploadRoute'
import productRoute from './routes/productRoute'
import orderRoute from './routes/orderRoute'
const mongodbUrl = config.MONGODB_URL;
mongoose.connect(mongodbUrl, {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true,
}).catch((error) => console.log(error.reason))
const app = express()
const apiLimiter = rateLimit({
windowMs: 15 * 60 * 1000, // 15 minutes
max: 100
})
app.use(cors())
app.use(express.json())
app.use('/api/', apiLimiter)
app.use('/api/users', userRoute)
app.use('/api/uploads', uploadRoute)
app.use('/api/products', productRoute)
app.use('/api/orders', orderRoute)
app.get('/api/paypal/clientId', (req, res) => {
res.send({ clientId: config.PAYPAL_CLIENT_ID })
})
app.use('/uploads', express.static(path.join(__dirname, '/../uploads')))
app.use(express.static(path.join(__dirname, '/../frontend')))
app.get('*', (req, res) => {
res.sendFile(path.join(`${__dirname}/../frontend/index.html`))
})
// eslint-disable-next-line no-unused-vars
app.use((err, req, res, next) => {
const status = err.name && err.name === 'ValidationError' ? 400 : 500
res.status(status)
res.send({ message: err.message })
})
2021-05-29T05:11:02.707267+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T05:11:02.707268+00:00 app[web.1]: ^
2021-05-29T05:11:02.707268+00:00 app[web.1]:
2021-05-29T05:11:02.707269+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T05:11:02.707269+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T05:11:02.707270+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:49)
2021-05-29T05:11:02.707270+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T05:11:02.707270+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T05:11:02.707271+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T05:11:02.707271+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T05:11:02.707272+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T05:11:02.707272+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T05:11:02.778624+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T05:11:02.853093+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T05:11:59.000000+00:00 app[api]: Build started by user hillery262627#gmail.com
2021-05-29T05:13:01.344269+00:00 app[api]: Deploy c8670dff by user hillery262627#gmail.com
2021-05-29T05:13:01.344269+00:00 app[api]: Release v88 created by user hillery262627#gmail.com
2021-05-29T05:13:02.041520+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-29T05:13:03.000000+00:00 app[api]: Build succeeded
2021-05-29T05:13:06.356963+00:00 heroku[web.1]: Starting process with command `node dist/server.js`
2021-05-29T05:13:10.148201+00:00 app[web.1]: /app/node_modules/express-rate-limiter/index.js:13
2021-05-29T05:13:10.148263+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T05:13:10.148272+00:00 app[web.1]: ^
2021-05-29T05:13:10.148276+00:00 app[web.1]:
2021-05-29T05:13:10.148276+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T05:13:10.148279+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T05:13:10.148279+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:49)
2021-05-29T05:13:10.148280+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T05:13:10.148280+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T05:13:10.148280+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T05:13:10.148280+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T05:13:10.148280+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T05:13:10.148281+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T05:13:10.200115+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T05:13:10.283484+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T05:17:48.336323+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=3f033042-c6d3-4c4b-bdbe-d0badd2d3d34 fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T05:23:09.940782+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-29T05:23:13.553102+00:00 heroku[web.1]: Starting process with command `node dist/server.js`
2021-05-29T05:23:16.251662+00:00 app[web.1]: /app/node_modules/express-rate-limiter/index.js:13
2021-05-29T05:23:16.251678+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T05:23:16.251678+00:00 app[web.1]: ^
2021-05-29T05:23:16.251679+00:00 app[web.1]:
2021-05-29T05:23:16.251679+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T05:23:16.251680+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T05:23:16.251680+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:49)
2021-05-29T05:23:16.251681+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T05:23:16.251681+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T05:23:16.251682+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T05:23:16.251682+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T05:23:16.251683+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T05:23:16.251683+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T05:23:16.318206+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T05:23:16.378564+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T05:24:33.000000+00:00 app[api]: Build started by user hillery262627#gmail.com
2021-05-29T05:25:34.946347+00:00 app[api]: Release v89 created by user hillery262627#gmail.com
2021-05-29T05:25:34.946347+00:00 app[api]: Deploy c8670dff by user hillery262627#gmail.com
2021-05-29T05:25:35.219700+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-29T05:25:37.000000+00:00 app[api]: Build succeeded
2021-05-29T05:25:38.314459+00:00 heroku[web.1]: Starting process with command `node dist/server.js`
2021-05-29T05:25:40.788755+00:00 app[web.1]: /app/node_modules/express-rate-limiter/index.js:13
2021-05-29T05:25:40.788776+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T05:25:40.788777+00:00 app[web.1]: ^
2021-05-29T05:25:40.788778+00:00 app[web.1]:
2021-05-29T05:25:40.788778+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T05:25:40.788779+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T05:25:40.788779+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:49)
2021-05-29T05:25:40.788779+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T05:25:40.788780+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T05:25:40.788780+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T05:25:40.788780+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T05:25:40.788781+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T05:25:40.788781+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T05:25:40.864253+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T05:25:40.952164+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T05:34:33.335208+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=3a904ea7-930c-42e6-a9af-16e333a4064a fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T05:37:25.482013+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=ebd52cb6-bb09-481b-bdb7-91d8c8993766 fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T05:37:26.504268+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=revivaproject.herokuapp.com request_id=f7f3e1ec-ea62-4ea9-8712-b1178c56abca fwd="49.245.39.161" dyno=
connect= service= status=503 bytes= protocol=https
2021-05-29T05:38:36.526750+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=0402ac65-49cb-4b09-a44e-6aaf428c23dd fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T05:38:37.438382+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=revivaproject.herokuapp.com request_id=4389454b-a233-45d8-bf60-a3f0e7349504 fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T06:09:11.655622+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-29T06:09:15.444774+00:00 heroku[web.1]: Starting process with command `node dist/server.js`
2021-05-29T06:09:17.936977+00:00 app[web.1]: /app/node_modules/express-rate-limiter/index.js:13
2021-05-29T06:09:17.937002+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T06:09:17.937003+00:00 app[web.1]: ^
2021-05-29T06:09:17.937003+00:00 app[web.1]:
2021-05-29T06:09:17.937003+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T06:09:17.937004+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T06:09:17.937004+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:49)
2021-05-29T06:09:17.937005+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T06:09:17.937005+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T06:09:17.937005+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T06:09:17.937006+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T06:09:17.937006+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T06:09:17.937007+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T06:09:17.980716+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T06:09:18.047009+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T06:48:19.910733+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=b65d1d7c-50b2-4b63-b305-400459ed69ba fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T06:48:21.301919+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=revivaproject.herokuapp.com request_id=61fe1968-f463-4c52-b3a8-8d517d0a157d fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T06:48:33.577825+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=9831ac5d-869a-4f05-a2f3-6a0422efba77 fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T06:48:34.410206+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=revivaproject.herokuapp.com request_id=cd55e067-ced5-4689-a815-5725e7daa151 fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
2021-05-29T06:55:56.000000+00:00 app[api]: Build started by user hillery262627#gmail.com
2021-05-29T06:56:52.630557+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-29T06:56:52.473357+00:00 app[api]: Deploy e28a52be by user hillery262627#gmail.com
2021-05-29T06:56:52.473357+00:00 app[api]: Release v90 created by user hillery262627#gmail.com
2021-05-29T06:56:54.000000+00:00 app[api]: Build succeeded
2021-05-29T06:56:55.920729+00:00 heroku[web.1]: Starting process with command `node dist/server.js`
2021-05-29T06:56:58.334876+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T06:56:58.401966+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T06:56:58.405968+00:00 heroku[web.1]: State changed from crashed to starting
2021-05-29T06:56:58.278359+00:00 app[web.1]: /app/node_modules/express-rate-limiter/index.js:13
2021-05-29T06:56:58.278373+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T06:56:58.278374+00:00 app[web.1]: ^
2021-05-29T06:56:58.278374+00:00 app[web.1]:
2021-05-29T06:56:58.278374+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T06:56:58.278375+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T06:56:58.278375+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:52)
2021-05-29T06:56:58.278375+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T06:56:58.278376+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T06:56:58.278376+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T06:56:58.278376+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T06:56:58.278377+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T06:56:58.278377+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T06:57:01.716901+00:00 heroku[web.1]: Starting process with command `node dist/server.js`
2021-05-29T06:57:04.120156+00:00 heroku[web.1]: Process exited with status 1
2021-05-29T06:57:04.188477+00:00 heroku[web.1]: State changed from starting to crashed
2021-05-29T06:57:04.078916+00:00 app[web.1]: /app/node_modules/express-rate-limiter/index.js:13
2021-05-29T06:57:04.078967+00:00 app[web.1]: this.__configuration = this.__buildConfiguration(options);
2021-05-29T06:57:04.078967+00:00 app[web.1]: ^
2021-05-29T06:57:04.078968+00:00 app[web.1]:
2021-05-29T06:57:04.078968+00:00 app[web.1]: TypeError: this.__buildConfiguration is not a function
2021-05-29T06:57:04.078982+00:00 app[web.1]: at module.exports (/app/node_modules/express-rate-limiter/index.js:13:33)
2021-05-29T06:57:04.078983+00:00 app[web.1]: at Object.<anonymous> (/app/dist/server.js:34:52)
2021-05-29T06:57:04.078983+00:00 app[web.1]: at Module._compile (internal/modules/cjs/loader.js:774:30)
2021-05-29T06:57:04.078983+00:00 app[web.1]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)
2021-05-29T06:57:04.078983+00:00 app[web.1]: at Module.load (internal/modules/cjs/loader.js:641:32)
2021-05-29T06:57:04.078984+00:00 app[web.1]: at Function.Module._load (internal/modules/cjs/loader.js:556:12)
2021-05-29T06:57:04.078984+00:00 app[web.1]: at Function.Module.runMain (internal/modules/cjs/loader.js:837:10)
2021-05-29T06:57:04.078984+00:00 app[web.1]: at internal/main/run_main_module.js:17:11
2021-05-29T06:57:05.387430+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=revivaproject.herokuapp.com request_id=54289191-9ec6-4ca9-ad4c-49395f5b3bf4 fwd="49.245.39.161" dyno= connect= service= status=503 bytes= protocol=https
At line 5, you need to import 'express-rate-limit' not 'express-rate-limiter'

Error run node module in windows

I've a problem when running npm run start-dev. I didn't find how to fix it.
I need your help.
Here the screenshot:
You need to install dependencies. Execute these 2 commands:
npm i -g webpack
npm i -g nodemon
thank you max! but now another error appears:
$ npm run start-dev
Transpeed#0.1.0 start-dev D:\Job\Tsuki Studio\project\transport
NODE_ENV=development webpack -w & NODE_ENV=development nodemon server.js
Webpack is watching the files…
(node:5256) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
Hash: 78554cdef93f0cd841ef7c3729b001ec9190d7db
Version: webpack 3.1.0
Child
Hash: 78554cdef93f0cd841ef
Time: 22097ms
Asset Size Chunks Chunk Names
./public/bundle.js 2.21 MB 0 [emitted] [big] main
./public/bundle.js.map 2.61 MB 0 [emitted] main
[41] ./src/shared/helper/index.js 112 bytes {0} [built]
[224] ./src/shared/reducers/index.js 245 bytes {0} [built]
[225] ./src/shared/routes.js 307 bytes {0} [built]
[298] ./src/browser/index.js 868 bytes {0} [built]
[447] ./src/shared/configureStore.js 515 bytes {0} [built]
[449] ./src/shared/reducers/Authentication.js 638 bytes {0} [built]
[453] ./src/shared/reducers/User.js 319 bytes {0} [built]
[455] ./src/shared/App.js 2.85 kB {0} [built]
[456] ./src/shared/scenes/Dashboard/index.js 3.17 kB {0} [built]
[461] ./src/shared/helper/Cookie.js 600 bytes {0} [built]
[463] ./src/shared/helper/PrivateRoute.js 1.37 kB {0} [built]
[464] ./src/shared/helper/authHeader.js 216 bytes {0} [built]
[465] ./src/shared/helper/store.js 326 bytes {0} [built]
[696] ./src/shared/scenes/Sign/scenes/Login/index.js 6.57 kB {0} [built]
[697] ./src/shared/scenes/Users/index.js 12 kB {0} [built]
+ 725 hidden modules
Child
Hash: 7c3729b001ec9190d7db
Time: 31234ms
Asset Size Chunks Chunk Names
server.js 3.07 MB 0 [emitted] [big] main
server.js.map 3.85 MB 0 [emitted] main
[43] ./src/shared/helper/index.js 112 bytes {0} [built]
[161] ./src/shared/routes.js 307 bytes {0} [built]
[162] ./src/shared/actions/index.js 47 bytes {0} [built]
[280] ./src/shared/reducers/index.js 245 bytes {0} [built]
[281] ./src/shared/HOC/index.js 51 bytes {0} [built]
[357] ./src/server/index.js 3.02 kB {0} [built]
[547] ./src/shared/scenes/Dashboard/index.js 3.17 kB {0} [built]
[585] ./src/shared/helper/authHeader.js 216 bytes {0} [built]
[586] ./src/shared/helper/store.js 326 bytes {0} [built]
[587] ./src/shared/reducers/Authentication.js 638 bytes {0} [built]
[588] ./src/shared/reducers/User.js 319 bytes {0} [built]
[826] ./src/shared/scenes/Sign/scenes/Login/index.js 6.57 kB {0} [built]
[827] ./src/shared/scenes/Users/index.js 12 kB {0} [built]
[870] ./src/shared/configureStore.js 515 bytes {0} [built]
[873] ./src/shared/App.js 2.85 kB {0} [built]
+ 870 hidden modules
WARNING in ./node_modules/express/lib/view.js
80:29-41 Critical dependency: the request of a dependency is an expression
WARNING in ./node_modules/encoding/lib/iconv-loader.js
9:12-34 Critical dependency: the request of a dependency is an expression

Error in ES6-webpack-babel boilerplate

I was using an ES6-react-webpack boilerplate that I found on the internet. It works fine. Now, I wanted to strip it down to get rid of reactjs elements. and I get the following error:
xtd8865#darkstar:~/data/projects/reactjs/es6-template/template$ npm start
> react-es6-webpack-boilerplate#4.0.0 start /home/xtd8865/data/projects/reactjs/es6-template/template
> node server.js
Listening at localhost:5000
Hash: 8ee3d46227d899f9d9c3
Version: webpack 1.13.2
Time: 3914ms
Asset Size Chunks Chunk Names
bundle.js 666 kB 0 main
chunk {0} bundle.js (main) 224 kB [rendered]
[0] multi main 52 bytes {0} [built] [1 error]
[1] (webpack)-dev-server/client?http://localhost:5000 3.97 kB {0} [built]
[2] (webpack)/~/node-libs-browser/~/url/url.js 22.3 kB {0} [built]
[3] (webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js 14.6 kB {0} [built]
[4] (webpack)/buildin/module.js 251 bytes {0} [built]
[5] (webpack)/~/node-libs-browser/~/url/~/querystring/index.js 127 bytes {0} [built]
[6] (webpack)/~/node-libs-browser/~/url/~/querystring/decode.js 2.4 kB {0} [built]
[7] (webpack)/~/node-libs-browser/~/url/~/querystring/encode.js 2.09 kB {0} [built]
[8] (webpack)-dev-server/~/strip-ansi/index.js 161 bytes {0} [built]
[9] (webpack)-dev-server/~/strip-ansi/~/ansi-regex/index.js 135 bytes {0} [built]
[10] (webpack)-dev-server/client/socket.js 856 bytes {0} [built]
[11] (webpack)-dev-server/~/sockjs-client/lib/entry.js 244 bytes {0} [built]
[12] (webpack)-dev-server/~/sockjs-client/lib/transport-list.js 613 bytes {0} [built]
[13] (webpack)-dev-server/~/sockjs-client/lib/transport/websocket.js 2.71 kB {0} [built]
[14] (webpack)/~/node-libs-browser/~/process/browser.js 5.3 kB {0} [built]
[15] (webpack)-dev-server/~/sockjs-client/lib/utils/event.js 2 kB {0} [built]
[16] (webpack)-dev-server/~/sockjs-client/lib/utils/random.js 746 bytes {0} [built]
[17] (webpack)-dev-server/~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built]
[18] (webpack)-dev-server/~/sockjs-client/lib/utils/url.js 975 bytes {0} [built]
[19] (webpack)-dev-server/~/sockjs-client/~/url-parse/index.js 9.91 kB {0} [built]
[20] (webpack)-dev-server/~/sockjs-client/~/url-parse/~/requires-port/index.js 753 bytes {0} [built]
[21] (webpack)-dev-server/~/sockjs-client/~/url-parse/lolcation.js 1.58 kB {0} [built]
[22] (webpack)-dev-server/~/sockjs-client/~/url-parse/~/querystringify/index.js 1.3 kB {0} [built]
[23] (webpack)-dev-server/~/sockjs-client/~/debug/browser.js 3.76 kB {0} [built]
[24] (webpack)-dev-server/~/sockjs-client/~/debug/debug.js 4.1 kB {0} [built]
[25] (webpack)-dev-server/~/sockjs-client/~/debug/~/ms/index.js 2.33 kB {0} [built]
[26] (webpack)-dev-server/~/sockjs-client/~/inherits/inherits_browser.js 672 bytes {0} [built]
[27] (webpack)-dev-server/~/sockjs-client/lib/event/emitter.js 1.27 kB {0} [built]
[28] (webpack)-dev-server/~/sockjs-client/lib/event/eventtarget.js 1.85 kB {0} [built]
[29] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/websocket.js 172 bytes {0} [built]
[30] (webpack)-dev-server/~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built]
[31] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built]
[32] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built]
[33] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built]
[34] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built]
[35] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built]
[36] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built]
[37] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.8 kB {0} [built]
[38] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built]
[39] (webpack)-dev-server/~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built]
[40] (webpack)-dev-server/~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built]
[41] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xdr.js 2.46 kB {0} [built]
[42] (webpack)-dev-server/~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built]
[43] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built]
[44] (webpack)-dev-server/~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built]
[45] (webpack)-dev-server/~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built]
[46] (webpack)-dev-server/~/sockjs-client/lib/transport/iframe.js 3.83 kB {0} [built]
[47] (webpack)-dev-server/~/sockjs-client/~/json3/lib/json3.js 43.3 kB {0} [built]
[48] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
[49] (webpack)-dev-server/~/sockjs-client/lib/version.js 26 bytes {0} [built]
[50] (webpack)-dev-server/~/sockjs-client/lib/utils/iframe.js 5.06 kB {0} [built]
[51] (webpack)-dev-server/~/sockjs-client/lib/utils/object.js 532 bytes {0} [built]
[52] (webpack)-dev-server/~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built]
[53] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/htmlfile.js 2.2 kB {0} [built]
[54] (webpack)-dev-server/~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built]
[55] (webpack)-dev-server/~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built]
[56] (webpack)-dev-server/~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built]
[57] (webpack)-dev-server/~/sockjs-client/lib/transport/receiver/jsonp.js 5.57 kB {0} [built]
[58] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built]
[59] (webpack)-dev-server/~/sockjs-client/lib/main.js 11.9 kB {0} [built]
[60] (webpack)-dev-server/~/sockjs-client/lib/shims.js 18.2 kB {0} [built]
[61] (webpack)-dev-server/~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built]
[62] (webpack)-dev-server/~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built]
[63] (webpack)-dev-server/~/sockjs-client/lib/utils/log.js 450 bytes {0} [built]
[64] (webpack)-dev-server/~/sockjs-client/lib/event/event.js 477 bytes {0} [built]
[65] (webpack)-dev-server/~/sockjs-client/lib/location.js 177 bytes {0} [built]
[66] (webpack)-dev-server/~/sockjs-client/lib/event/close.js 295 bytes {0} [built]
[67] (webpack)-dev-server/~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built]
[68] (webpack)-dev-server/~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built]
[69] (webpack)-dev-server/~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built]
[70] (webpack)-dev-server/~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built]
[71] (webpack)-dev-server/~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built]
[72] (webpack)-dev-server/~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built]
[73] (webpack)-dev-server/~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built]
[74] (webpack)-dev-server/~/sockjs-client/lib/facade.js 723 bytes {0} [built]
[75] (webpack)/hot/dev-server.js 1.85 kB {0} [built]
[76] (webpack)/hot/log-apply-result.js 813 bytes {0} [built]
ERROR in ./scripts/index.js
Module build failed: Error: Couldn't find preset "react" relative to directory "/home/xtd8865/data/projects/reactjs/es6-template/template"
at /home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:298:19
at Array.map (native)
at OptionManager.resolvePresets (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:269:20)
at OptionManager.mergePresets (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:258:10)
at OptionManager.mergeOptions (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:243:14)
at OptionManager.init (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/options/option-manager.js:373:12)
at File.initOptions (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/index.js:221:65)
at new File (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/file/index.js:141:24)
at Pipeline.transform (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/home/xtd8865/data/projects/reactjs/es6-template/template/node_modules/babel-loader/index.js:38:20)
# multi main
webpack: bundle is now VALID.
/scripts/index.js does not have any reference to react:
var container = document.getElementById('root');
container.innerHTML = "THIS IS A TEST";
I have removed all the packages with react in their names from package.json and upgraded version numbers of packages:
{
"name": "ES6-template",
"version": "0.0.1",
"description": "My es6 playground",
"main": "index.js",
"scripts": {
"start": "node server.js",
"build": "BABEL_ENV=production ./node_modules/.bin/webpack --config webpack.config.production.js",
"lint": "./node_modules/.bin/eslint ."
},
"keywords": [
"es6",
"babel",
"webpack"
],
"dependencies": {
"babel-runtime": "^6.9.2",
"bootstrap": "^3.3.7"
},
"devDependencies": {
"babel-polyfill": "^6.16.0",
"babel-core": "^6.16.0",
"babel-eslint": "^7.0.0",
"babel-loader": "^6.2.5",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-0": "^6.16.0",
"css-loader": "^0.25.0",
"eslint": "^3.7.1",
"file-loader": "^0.9.0",
"url-loader": "^0.5.7",
"webpack": "^1.13.2",
"webpack-dev-server": "^1.16.2"
}
}
Please advise. Also, are there any other packages above that were react-specific and would not be needed without react?
I have found what it was. The problem was in the hidden file .babelrc
I have removed the reference to react presets there and everything is fine.

Amazon S3 Bucket 403 Forbidden

I'm following Michael Hartl's Rails tutorial and I'm trying to get the user to be able to upload images. It works fine on the rails server, but when I deploy to Heroku it uses S3 to handle the images. The upload fails with a 403 error. Here are the logs:
2015-01-29T10:31:39.129339+00:00 app[web.1]: (2.0ms) SELECT COUNT(*) FROM "microposts" WHERE (user_id = 101)
2015-01-29T10:31:39.125076+00:00 app[web.1]: Rendered shared/_error_messages.html.erb (0.1ms)
2015-01-29T10:31:39.138938+00:00 app[web.1]: CACHE (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 101]]
2015-01-29T10:31:39.155276+00:00 app[web.1]: Rendered shared/_feed.html.erb (28.9ms)
2015-01-29T10:31:39.169708+00:00 app[web.1]: Rendered layouts/_shim.html.erb (0.1ms)
2015-01-29T10:31:39.183946+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.1ms)
2015-01-29T10:31:39.197655+00:00 heroku[router]: at=info method=GET path="/" host=mysterious-oasis-7816.herokuapp.com request_id=4c2cbe41-3b26-4e37-9ef9-f07ec6e963a6 fwd="76.102.7.62" dyno=web.1 connect=3ms service=109ms status=200 bytes=4525
2015-01-29T10:31:39.369193+00:00 heroku[router]: at=info method=GET path="/assets/application-3ac07d30cc871c78233de32e71487cf3.js" host=mysterious-oasis-7816.herokuapp.com request_id=6cd2bfa0-424b-4456-9cfb-822b515d3bcc fwd="76.102.7.62" dyno=web.1 connect=1ms service=4ms status=304 bytes=241
2015-01-29T10:31:39.365503+00:00 heroku[router]: at=info method=GET path="/assets/application-cbf43ddf42ea7f553995264124e0cacf.css" host=mysterious-oasis-7816.herokuapp.com request_id=d7df3d86-0cf4-444b-bce8-8b164c2dbef6 fwd="76.102.7.62" dyno=web.1 connect=1ms service=3ms status=304 bytes=227
2015-01-29T10:31:39.598181+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-oasis-7816.herokuapp.com request_id=386ad300-9cd9-43e7-8112-f918d7c3a7df fwd="76.102.7.62" dyno=web.1 connect=2ms service=2ms status=304 bytes=156
2015-01-29T10:31:46.517236+00:00 app[web.1]: Started POST "/microposts" for 76.102.7.62 at 2015-01-29 10:31:46 +0000
2015-01-29T10:31:46.519545+00:00 app[web.1]: Processing by MicropostsController#create as HTML
2015-01-29T10:31:46.519617+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"p60LlipkvgDwLSAR8oJq+efj9yM0jYixbkwxWxN2v3sojEQFzbMhTVio4pXOwZehVpGQYfgYdnKgHRQomE/txg==", "micropost"=>{"content"=>"Sup", "picture"=>#<ActionDispatch::Http::UploadedFile:0x007f77ae5d1d80 #tempfile=#<Tempfile:/tmp/RackMultipart20150129-12-b07k07.jpg>, #original_filename="10582291_709123052488481_30008247_n.jpg", #content_type="image/jpeg", #headers="Content-Disposition: form-data; name=\"micropost[picture]\"; filename=\"10582291_709123052488481_30008247_n.jpg\"\r\nContent-Type: image/jpeg\r\n">}, "commit"=>"Post"}
2015-01-29T10:31:46.521720+00:00 app[web.1]: User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 101]]
2015-01-29T10:31:46.836156+00:00 app[web.1]: (1.5ms) BEGIN
2015-01-29T10:31:46.841095+00:00 app[web.1]: SQL (1.7ms) INSERT INTO "microposts" ("content", "picture", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["content", "Sup"], ["picture", "10582291_709123052488481_30008247_n.jpg"], ["user_id", 101], ["created_at", "201
5-01-29 10:31:46.837765"], ["updated_at", "2015-01-29 10:31:46.837765"]]
2015-01-29T10:31:48.433575+00:00 heroku[router]: at=info method=POST path="/microposts" host=mysterious-oasis-7816.herokuapp.com request_id=d7e1b8ee-3e5d-45ef-9578-4f242fd160db fwd="76.102.7.62" dyno=web.1 connect=1ms service=2239ms status=500 bytes=1786
2015-01-29T10:31:48.427961+00:00 app[web.1]: (1.3ms) ROLLBACK
2015-01-29T10:31:48.431863+00:00 app[web.1]:
2015-01-29T10:31:48.431866+00:00 app[web.1]: Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden)
2015-01-29T10:31:48.431868+00:00 app[web.1]: excon.error.response
2015-01-29T10:31:48.431870+00:00 app[web.1]: :body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>2E3F56207B398181</RequestId><HostId>XIDq0YLLZd8ZdGB1mTuUiofj5vh0V4lt5hb/jow79dysteI26fEr/gNMpGqF5qCv0zPmFiEYtCY=</HostId></Error>"
2015-01-29T10:31:48.431871+00:00 app[web.1]: :headers => {
2015-01-29T10:31:48.431873+00:00 app[web.1]: "Connection" => "close"
2015-01-29T10:31:48.431874+00:00 app[web.1]: "Content-Type" => "application/xml"
2015-01-29T10:31:48.431875+00:00 app[web.1]: "Date" => "Thu, 29 Jan 2015 10:31:47 GMT"
2015-01-29T10:31:48.431878+00:00 app[web.1]: "x-amz-id-2" => "XIDq0YLLZd8ZdGB1mTuUiofj5vh0V4lt5hb/jow79dysteI26fEr/gNMpGqF5qCv0zPmFiEYtCY="
2015-01-29T10:31:48.431879+00:00 app[web.1]: "x-amz-request-id" => "2E3F56207B398181"
2015-01-29T10:31:48.431881+00:00 app[web.1]: }
2015-01-29T10:31:48.431882+00:00 app[web.1]: :local_address => "172.17.38.98"
2015-01-29T10:31:48.431883+00:00 app[web.1]: :local_port => 34183
2015-01-29T10:31:48.431885+00:00 app[web.1]: :reason_phrase => "Forbidden"
2015-01-29T10:31:48.431877+00:00 app[web.1]: "Server" => "AmazonS3"
2015-01-29T10:31:48.431890+00:00 app[web.1]: app/controllers/microposts_controller.rb:7:in `create'
2015-01-29T10:31:48.431891+00:00 app[web.1]:
2015-01-29T10:31:48.431892+00:00 app[web.1]:
2015-01-29T10:31:48.431886+00:00 app[web.1]: :remote_ip => "54.231.160.162"
2015-01-29T10:31:48.431887+00:00 app[web.1]: :status => 403
2015-01-29T10:31:48.431889+00:00 app[web.1]: ):
2015-01-29T10:31:48.429838+00:00 app[web.1]: Completed 500 Internal Server Error in 1910ms
2015-01-29T10:46:55.496986+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=mysterious-oasis-7816.herokuapp.com request_id=2a227f3f-20da-405f-b150-f4e4cbc62c0c fwd="76.102.7.62" dyno=web.1 connect=1ms service=1ms status=304 bytes=156
2015-01-29T10:46:57.592699+00:00 app[web.1]: Processing by MicropostsController#create as HTML
2015-01-29T10:46:57.592801+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"p60LlipkvgDwLSAR8oJq+efj9yM0jYixbkwxWxN2v3sojEQFzbMhTVio4pXOwZehVpGQYfgYdnKgHRQomE/txg==", "micropost"=>{"content"=>"Sup", "picture"=>#<ActionDispatch::Http::UploadedFile:0x007f77b148e678 #tempfile=#<Tempfile:/tmp/RackMultipart20150129-6-kbjdeu.jpg>, #original_filename="10582291_709123052488481_30008247_n.jpg", #content_type="image/jpeg", #headers="Content-Disposition: form-data; name=\"micropost[picture]\"; filename=\"10582291_709123052488481_30008247_n.jpg\"\r\nContent-Type: image/jpeg\r\n">}, "commit"=>"Post"}
2015-01-29T10:46:57.595260+00:00 app[web.1]: User Load (1.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 101]]
2015-01-29T10:46:57.589391+00:00 app[web.1]: Started POST "/microposts" for 76.102.7.62 at 2015-01-29 10:46:57 +0000
2015-01-29T10:46:57.898731+00:00 app[web.1]: (1.4ms) BEGIN
2015-01-29T10:46:57.906703+00:00 app[web.1]: SQL (2.1ms) INSERT INTO "microposts" ("content", "picture", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["content", "Sup"], ["picture", "10582291_709123052488481_30008247_n.jpg"], ["user_id", 101], ["created_at", "2015-01-29 10:46:57.900611"], ["updated_at", "2015-01-29 10:46:57.900611"]]
2015-01-29T10:46:59.548010+00:00 heroku[router]: at=info method=POST path="/microposts" host=mysterious-oasis-7816.herokuapp.com request_id=e7867249-ff62-4fa0-bf0e-9dadd9134640 fwd="76.102.7.62" dyno=web.1 connect=1ms service=2273ms status=500 bytes=1786
2015-01-29T10:46:59.542346+00:00 app[web.1]: (1.4ms) ROLLBACK
2015-01-29T10:46:59.546576+00:00 app[web.1]:
2015-01-29T10:46:59.546579+00:00 app[web.1]: Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden)
2015-01-29T10:46:59.546581+00:00 app[web.1]: excon.error.response
2015-01-29T10:46:59.546583+00:00 app[web.1]: :body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>6B6A73213C176F40</RequestId><HostId>QDnWZ627/2/Wuf7z4nuQnS/u+ysezUG/o2IqDnO9hgAJBJF+H3h4uexFerBeON2V</HostId></Error>"
2015-01-29T10:46:59.546584+00:00 app[web.1]: :headers => {
2015-01-29T10:46:59.546586+00:00 app[web.1]: "Connection" => "close"
2015-01-29T10:46:59.546587+00:00 app[web.1]: "Content-Type" => "application/xml"
2015-01-29T10:46:59.546589+00:00 app[web.1]: "Date" => "Thu, 29 Jan 2015 10:46:58 GMT"
2015-01-29T10:46:59.546591+00:00 app[web.1]: "Server" => "AmazonS3"
2015-01-29T10:46:59.546593+00:00 app[web.1]: "x-amz-id-2" => "QDnWZ627/2/Wuf7z4nuQnS/u+ysezUG/o2IqDnO9hgAJBJF+H3h4uexFerBeON2V"
2015-01-29T10:46:59.546594+00:00 app[web.1]: "x-amz-request-id" => "6B6A73213C176F40"
2015-01-29T10:46:59.546595+00:00 app[web.1]: }
2015-01-29T10:46:59.546597+00:00 app[web.1]: :local_address => "172.17.38.98"
2015-01-29T10:46:59.546598+00:00 app[web.1]: :local_port => 47100
2015-01-29T10:46:59.546601+00:00 app[web.1]: :remote_ip => "54.231.164.162"
2015-01-29T10:46:59.546600+00:00 app[web.1]: :reason_phrase => "Forbidden"
2015-01-29T10:46:59.546603+00:00 app[web.1]: :status => 403
2015-01-29T10:46:59.546604+00:00 app[web.1]: ):
2015-01-29T10:46:59.546606+00:00 app[web.1]: app/controllers/microposts_controller.rb:7:in `create'
2015-01-29T10:46:59.546607+00:00 app[web.1]:
2015-01-29T10:46:59.546608+00:00 app[web.1]:
2015-01-29T10:46:59.544420+00:00 app[web.1]: Completed 500 Internal Server Error in 1951ms
2015-01-29T10:47:51.464274+00:00 app[web.1]: Started POST "/microposts" for 76.102.7.62 at 2015-01-29 10:47:51 +0000
2015-01-29T10:47:51.468398+00:00 app[web.1]: Processing by MicropostsController#create as HTML
2015-01-29T10:47:51.473171+00:00 app[web.1]: User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 101]]
2015-01-29T10:47:51.468507+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"p60LlipkvgDwLSAR8oJq+efj9yM0jYixbkwxWxN2v3sojEQFzbMhTVio4pXOwZehVpGQYfgYdnKgHRQomE/txg==", "micropost"=>{"content"=>"Sup", "picture"=>#<ActionDispatch::Http::UploadedFile:0x007f77ae6c1358 #tempfile=#<Tempfile:/tmp/RackMultipart20150129-9-6wmavu.jpg>, #original_filename="10582291_709123052488481_30008247_n.jpg", #content_type="image/jpeg", #headers="Content-Disposition: form-data; name=\"micropost[picture]\"; filename=\"10582291_709123052488481_30008247_n.jpg\"\r\nContent-Type: image/jpeg\r\n">}, "commit"=>"Post"}
2015-01-29T10:47:51.786456+00:00 app[web.1]: (1.4ms) BEGIN
2015-01-29T10:47:51.794299+00:00 app[web.1]: SQL (2.0ms) INSERT INTO "microposts" ("content", "picture", "user_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["content", "Sup"], ["picture", "10582291_709123052488481_30008247_n.jpg"], ["user_id", 101], ["created_at", "2015-01-29 10:47:51.788551"], ["updated_at", "2015-01-29 10:47:51.788551"]]
2015-01-29T10:47:53.555368+00:00 heroku[router]: at=info method=POST path="/microposts" host=mysterious-oasis-7816.herokuapp.com request_id=86847ddb-74ec-4800-a18f-a07f2431cef9 fwd="76.102.7.62" dyno=web.1 connect=1ms service=2197ms status=500 bytes=1786
2015-01-29T10:47:53.550620+00:00 app[web.1]: (1.3ms) ROLLBACK
2015-01-29T10:47:53.554579+00:00 app[web.1]:
2015-01-29T10:47:53.554582+00:00 app[web.1]: Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden)
2015-01-29T10:47:53.554584+00:00 app[web.1]: excon.error.response
2015-01-29T10:47:53.554587+00:00 app[web.1]: :headers => {
2015-01-29T10:47:53.554586+00:00 app[web.1]: :body => "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>6A39B8D8600F9D09</RequestId><HostId>cRac47ERlbGbSfrsTNt/fF+zt5CvM7Io8HZXU5A27l207MleOMCsGIRdmElP0Kk4</HostId></Error>"
2015-01-29T10:47:53.554589+00:00 app[web.1]: "Connection" => "close"
2015-01-29T10:47:53.554590+00:00 app[web.1]: "Content-Type" => "application/xml"
2015-01-29T10:47:53.554593+00:00 app[web.1]: "Server" => "AmazonS3"
2015-01-29T10:47:53.554592+00:00 app[web.1]: "Date" => "Thu, 29 Jan 2015 10:47:53 GMT"
2015-01-29T10:47:53.554595+00:00 app[web.1]: "x-amz-id-2" => "cRac47ERlbGbSfrsTNt/fF+zt5CvM7Io8HZXU5A27l207MleOMCsGIRdmElP0Kk4"
2015-01-29T10:47:53.554612+00:00 app[web.1]: "x-amz-request-id" => "6A39B8D8600F9D09"
2015-01-29T10:47:53.554613+00:00 app[web.1]: }
2015-01-29T10:47:53.554619+00:00 app[web.1]: :remote_ip => "54.231.165.74"
2015-01-29T10:47:53.554620+00:00 app[web.1]: :status => 403
2015-01-29T10:47:53.554623+00:00 app[web.1]: app/controllers/microposts_controller.rb:7:in `create'
2015-01-29T10:47:53.554622+00:00 app[web.1]: ):
2015-01-29T10:47:53.554615+00:00 app[web.1]: :local_address => "172.17.38.98"
2015-01-29T10:47:53.554616+00:00 app[web.1]: :local_port => 40757
2015-01-29T10:47:53.554618+00:00 app[web.1]: :reason_phrase => "Forbidden"
2015-01-29T10:47:53.554625+00:00 app[web.1]:
2015-01-29T10:47:53.554626+00:00 app[web.1]:
2015-01-29T10:47:53.552507+00:00 app[web.1]: Completed 500 Internal Server Error in 2084ms
Please help :(
I had a similar problem, it was a matter of formatting the url differently depending on the region you create your bucket in.
You can sometimes use this:
https://s3-us-west-2.amazonaws.com/
and some times you have to use this:
https://bucket-name.s3-us-west-2.amazonaws.com/
I do not know which format you are using, but try the other one :)
For more info on the urls to access diffrent regions look at this:
http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
Thanks for the help guys, I figured it out. It turns out it was something really silly, I didn't set the allowed users to registered users.