Comments (33)
Same issue. This is what I get when I run curl -I http://localhost:3002/forest
:
HTTP/1.1 204 No Content
X-Powered-By: Express
Vary: Origin
Access-Control-Allow-Credentials: true
Date: Tue, 18 Jun 2019 22:17:33 GMT
Connection: keep-alive
from lumber.
Sorry for the output, yes it was running but I was on the wrong server when I executed the command.
Here it is :
$ curl -I http://localhost:3000/forest
HTTP/1.1 204 No Content X-Powered-By: Express Date: Fri, 18 Nov 2016 20:00:53 GMT Connection: keep-alive
from lumber.
Hey @jcoulaud Can you run a curl in your terminal and show me the output?
$ curl -I http://localhost:3000/forest
Thanks!
from lumber.
curl: (7) Failed to connect to localhost port 3000: Connection refused
from lumber.
Hey @jcoulaud So it means your server is not running :( Did you run the node ./bin/www
in your folder?
from lumber.
But still the same message when I'm on the UI Interface :/
from lumber.
Hi ! Any news :) ?
from lumber.
Hey @jcoulaud ! Sorry about the delay
So you're server is running but the browser can't make requests to it. Do you have errors on your Chrome console?
from lumber.
Hey !
So when I try to login on the UI interface (http://app.forestadmin.com/****/login), I have this message in the center top
Login Oops, cannot reach your application. Are you sure it is running? If your application is running, you might have a CORS configuration issue.
And in the console
OPTIONS http://localhost:3000/forest/sessions net::ERR_CONNECTION_REFUSED
And my server :
node ./bin/www 🌳 Open your admin UI: http://app.forestadmin.com 🌳
from lumber.
Ok it seems to be a CORS issue. Normally, your microservice injects the right CORS headers in the http request but it does not seems to work with yours.
Do you have the cors middleware there?
https://github.com/ForestAdmin/lumber/blob/master/templates/app/app.js#L21
from lumber.
Yes I have it
from lumber.
Hi there !
I would like to give it a shot again, so can you help me please :) ?
Do you have any idea what's could cause the CORS issue ?
Best
from lumber.
Hey @jcoulaud can you drop me an email ([email protected]) to schedule a quick call to help us figure out what happens with your CORS problem ?
from lumber.
I have the same issue, when asked for the password it spits out "http://localhost:3000/forest/sessions net::ERR_CONNECTION_REFUSED" in the console. Is this supposed to be setup locally? I had set it up on a VPS?
from lumber.
@permpkin it's suppose to work with a localhost URL without any problem. We can investigate more your issue in details if you drop me an email [email protected] ;)
from lumber.
Hi,
Is there any solution to this?I'm getting the exact same issue:curl responds with 204 code, ERR_CONNECTION_REFUSED in console.
Regards,
Andy
from lumber.
@Notifium It seems to be ( as Seyz mentioned ) designed to work with "localhost" ( rather than on a remote VPS ). Try setting it up on your local machine ( That's how I resolved the ERR's ).
from lumber.
any update here? I'm getting the same error on localhost. Production works just fine
from lumber.
Does any one came across below issue
node ./bin/www
🌳 Open your admin UI: http://app.forestadmin.com 🌳
[forest] 🌳🌳🌳
VError: IP Whitelist error: Forest server request error: Not Found
at /home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/dist/services/ip-whitelist.js:25:21
at tryCatcher (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:503:31)
at Promise._settlePromise (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:560:18)
at Promise._settlePromise0 (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:680:18)
at Async._drainQueue (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/async.js:126:16)
at Async._drainQueues (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/async.js:136:10)
at Immediate.Async.drainQueues (/home/amol/other-projects/amol/sampleserve/sample/node_modules/forest-express/node_modules/bluebird/js/release/async.js:16:14)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
[forest] 🌳🌳🌳 Cannot find the project related to the envSecret you configured. Can you check on Forest that you copied it properly in the Forest initialization?
from lumber.
My forest server was not running, now all things are going smoothly. 👍
from lumber.
I am getting the similar error as mentioned above
🌳 Open your admin UI: http://app.forestadmin.com 🌳
[forest] 🌳🌳🌳
VError: IP Whitelist error: Forest server request error: Not Found
...and the remaining part as mentioned by @samshinde
from lumber.
Hey guys, i've got the same issue
Oops, cannot reach your application. Are you sure it is running? If your application is running, you might have a CORS configuration issue.
I just setup an SSL certificate, would this have anything to do with it?
from lumber.
Any update of this? Forest requests get 204 response.
OPTIONS /forest/sessions 204 0.119 ms - 0
GET /forest/sessions 404 12.255 ms - 1425
from lumber.
Same issue for trying to unlock data ! is there any solution?
RequestURL: http://localhost:3000/forest/sessions
Response : Connection Refused
from lumber.
I'm having the exact same issue. Nothing in the logs of my application and my CORS policy has not changed but it stopped working suddenly. Don't know what's the problem here.
FYI here is the error I can find in the console:
Access to XMLHttpRequest at 'https://********/forest/sessions' from origin 'https://app.forestadmin.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
from lumber.
Ok I solved the issue by adding this to my CORS configuration in Express:
`const app = express();
// We configure CORS
let corsOptions = {
origin: '*',
credentials: true,
};
app.use(cors(corsOptions));`
from lumber.
Same issue. This is what I get when I run
curl -I http://localhost:3002/forest
:HTTP/1.1 204 No Content X-Powered-By: Express Vary: Origin Access-Control-Allow-Credentials: true Date: Tue, 18 Jun 2019 22:17:33 GMT Connection: keep-alive
Try with an other port (For example 3003 rather than 3000). It works for me.
from lumber.
Hi There
I am seeing the same issues [see image]
from lumber.
Still not working.
from lumber.
Hi @serhanbalci,
This error message can occur in various cases.
How did you validate that you server is running?
Can you also provide details about your issue?
Thanks for your help 🙏
from lumber.
I solved in development mode, but there is no documentation for production. I did not find any useful piece of docs publish it for production. Is there any ? thanks
from lumber.
I put up an awesome Medium article here for anyone interested in integrating Forest Admin in a Rails Application:
https://medium.com/@promisepreston/up-and-running-with-forest-admin-in-rails-aa63599e9adc
Let me know if you find it helpful in any way.
from lumber.
Hi guys, as mentioned in the past:
This error message can occur in various cases.
How did you validate that you server is running?
This message comes from an expected error.
It usually means that your admin backend server is not running or properly configured.
Let me close this issue, as there is no clear action to do here for the Forest Admin team.
from lumber.
Related Issues (20)
- test-panel docker-compose app fails to start with a sequelize exception
- All of the feature links are broken(not found) on your github homepage HOT 1
- Lumber generate error: MongoError: value too large to reduce
- Extending rich text editor HOT 1
- There is no images inside https://docs.forestadmin.com/documentation/reference-guide/models HOT 1
- PostgreSQL, Generate a new backend application -> Error HOT 3
- DATABASE_URL hard-coded in docker-compose.yml HOT 1
- view codes does not work HOT 2
- Stuck Connection to database HOT 7
- Lumber not allowing pass-through of dialectOptions for Sequelize HOT 13
- (node:89175) UnhandledPromiseRejectionWarning: SequelizeAccessDeniedError: Access denied for user 'samplebloguser'@'localhost' (using password: YES) at ConnectionManager.connect HOT 1
- CRUD on mongoose dataBase with deepObject display "[Object, Object]" HOT 2
- Are there any plans to use typescript for Lumber, or are there any options there HOT 4
- Lumber generate fails with "Your database looks empty! Please create some collections before running the command."
- The automated release is failing 🚨
- Using GraphQL API as datasource
- Fix audit vulnerabilities for lodash and handlebars HOT 2
- Consider adding the Z SELinux label to the docker installation script
- throw new TypeError('Router.use() requires a middleware function but got a ' + gettype(fn))
- Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lumber.