Cypress bad gateway - cypress

I have started my app locally and reach it fine on http://localhost:3000
But when trying to access it throuhg the cypress tool I get 502 bad gateway. Anyone knows why this differ from it working just fine in Chrome to access it?

Faced the same issue when running Angular app in localhost. App was running in chrome but not in cypress tool giving 502 bad gateway error. I builded the angular app by ng-build command and served using command http-server -p 4200 -c-1 dist/your_poject_name. When running http-server command, got as below:
Starting up http-server, serving dist
Available on:
http://10.132.14.98:4200
http://127.0.0.1:4200
Use the url http://10.132.14.98:4200 in cy.visit and now bad gateway error does not come. The problem is with using 127.0.0.1 or localhost in the url. Anything other than localhost and 127.0.0.1 works. Hope this information helps.

Related

Getting Could not send request Error: Request timeout when calling POST request in Windows 10, same thing successfully executed in Ubuntu

Using postman desktop Version 10.8.7
Windows 10
SSL certificate verification - Off
Using System proxy
Created a docker image and running the file on --port 8080 and --host 0.0.0.0
The image is running successfully but when using the localhost:port URL for requesting the data from the file, every time its getting timed out.
But same thing is getting executed in Ubuntu OS.
If anyone faced the same issue before, please help me out on this.

Getting " Logs eventsource failed with: 400 Bad Request" in Heroku logs

I am trying to understand why my JHipster app is not working when i deploy it to Heroku (It does locally) so my first thought was going to the logs. However when i type $ heroku logs i receive back the following error.
571 borgesan:~/bitbucket/eureka $ heroku logs -n 200
▸ Logs eventsource failed with: 400 Bad Request
What could be causing this error?
I encounter exactly the same log message when deploying a kotlin app that works locally with 'heroku local web'. The web app is based on a jetty server running on port 5000 (same port as in the kotlin-getting-started example, but different web server).
In parallel, all requests to server are refused with 503 Service available
Is there a parameter to set somewhere in the heroku configuration or procfile to declare internal port 5000 (to allow mapping between outside port 80 or 443 to internal port 5000)?
Is it a problem due to CORS or so ? In other words, shall the application accept specific fields of request header ?
other thing to take care of ?
Thanks

Cannot run styleguidist along side with laravel development server

I am trying to document my React Components and I am running styleguidist server along side with Laravel development server but the styleguidist server crashes with this error.
You have another server running at port 6060 somewhere, shut it down first
You can change the port using the `serverPort` option in your style guide config:
https://react-styleguidist.js.org/docs/configuration.html
I have configured the styleguidist server to run at port 6060 as to resolve this issue and succeeded to run the server only once. After that I am getting this issue again.
How can i resolve this??
The error is saying you have something else running at that port. Have you tried a different one? If you are running a UNIX system, you can see what is running on that port with:
lsof -i tcp:6060

Running go webserver on Cloud9 IDE

im kinda confused on how to run a go lang webserver on Cloud9IDE.. This is my simple go server i am attempting to run:
https://ide.c9.io/amanuel2/golangpractice
I tried to click run then went to the url it wants me to go but it told me 404 not found... And i also saw this is the output in the command line when i click run on cloud9:
Your code is running at https://golangpractice-amanuel2.c9users.io.
Important: use os.Getenv(PORT) as the port and os.Getenv(IP) as the host in your scripts!
2016/03/14 11:45:51 Listening on port 8080 ...
Please help!
The 404 you're seeing is from line 142 of webserver.go so your app actually is running properly. From your code, it looks like you have a route for /item/name so try going to https://golangpractice-amanuel2.c9users.io/item/name and you'll get something there.
All other routes are giving 404's because of line 142.

gitlab and nginxX failing with error 403

I got an minor Problem with Gitlab.
I setup the complete system according to the manual from gitlab.
I used an nginx xserver with theire nginx config file.
If I access any none php file it works.
But as soon as I open one of these files I get ofllowing line in the server log:
2013/12/04 14:24:46 [error] 28622#0: *10 access forbidden by rule, client: aaa.bbb.ccc.ddd, server: xxx.xxxx.xxx, request: "GET /dev/worker/blob/master/call.php HTTP/1.1", host: "xxx.xxxx.xxx", referrer: "https://xxx.xxxx.xxx/dev/worker/tree/master"
I'm accessing the server over https.
Internaly it runs on http
I also have installed php-fpm but it does not run on the current host.
Please help
Chris
The Problem was the nginx configuration itself.
I have an ispconfig panel running that creates the nginx site files.
Problem was, it creates an entry that disallows php files to everyone.
It makes sence for php based sites, as the php files can only be accessed through the fpm process.
But it makes no sence for a git server
^^
thanks for the patience

Resources