Comments (6)
Thanks for reporting the issue.
I've checked pow repository and they don't seem to have found a solution to that yet.
I'm saying that because katon is built on pow technique to make servers available on local domains.
Meanwhile, if you want you can try hotel. It's simpler on purpose and doesn't rely much on the system, so there's less things that can break.
from katon.
This issue isn't very descriptive... I am currently running El Capitan but I keep having problems where katon status
returns ok for both the daemon and domain. But when I try to hit any of the projects I have loaded to katon or the index.ka
address I get and empty server response:
It seems to work intermittently as just this morning everything was working fine. I haven't been able to find a solution to getting it working after it crashes like this without a computer restart. I have tried stopping katon and starting again. I have already tried uninstalling katon but this still seems to be an issue.
from katon.
It may be related to #36
You can give a try to xip.io URLs, for example http://app-name.127.0.0.1.xip.io
.
PS: I'll be on vacation for 2 weeks. So I won't be able to code/test things :/
from katon.
Here is some more information.
I did a little more investigation into what is going on with katon. I tried to use the xip.io server urls and they return but, id like to not use those if I absolutely have to, since I have APIs talking to other APIs using the ka urls. I cloned katon down and installed it locally testing out the status command. It reports everything as ok because it actually gets the index.ka page.
If I open postman and I try to hit the index.ka page, it also returns what chrome is returning (no data received). Whenever I try to hit any of my api's using the regular url it gives me [dns ]
as a log message in the main daemon log file.
12 Nov 11:02:02 - [daemon] Starting DNS server on port 13375
12 Nov 11:02:02 - [daemon] Starting HTTPS server on port 30900
12 Nov 11:02:02 - [daemon] Starting HTTP server on port 31000
12 Nov 11:02:02 - [daemon] DNS server started
12 Nov 11:02:02 - [daemon] HTTPS server started
12 Nov 11:02:02 - [daemon] HTTP server started
12 Nov 11:02:10 - [dns ]
12 Nov 11:02:10 - [dns ]
12 Nov 11:02:10 - [router] HTTP request received index.ka
12 Nov 11:02:27 - [router] HTTP request received index.ka
12 Nov 11:10:39 - [router] HTTP request received my.api.10.10.10.10.xip.io
12 Nov 11:10:39 - [procs ] Start my.api
12 Nov 11:10:39 - [router] Proxying to http://127.0.0.1:31012 my.api.10.10.10.10.xip.io
12 Nov 11:10:39 - [router] Can't connect, retry in 1 second [Error: connect ECONNREFUSED] my.api.10.10.10.10.xip.io
12 Nov 11:10:40 - [router] Proxying to http://127.0.0.1:31012 my.api.10.10.10.10.xip.io
12 Nov 11:10:40 - [router] Can't connect, retry in 1 second [Error: connect ECONNREFUSED] my.api.10.10.10.10.xip.io
12 Nov 11:10:41 - [router] Proxying to http://127.0.0.1:31012 my.api.10.10.10.10.xip.io
12 Nov 11:10:41 - [router] Can't connect, retry in 1 second [Error: connect ECONNREFUSED] my.api.10.10.10.10.xip.io
12 Nov 11:10:42 - [router] Proxying to http://127.0.0.1:31012 my.api.10.10.10.10.xip.io
12 Nov 11:10:42 - [dns ]
12 Nov 11:10:42 - [dns ]
12 Nov 11:10:42 - [router] HTTP request received security.api.ka
12 Nov 11:10:42 - [procs ] Start security.api
12 Nov 11:10:42 - [router] Proxying to http://127.0.0.1:31004 security.api.ka
12 Nov 11:10:42 - [router] Can't connect, retry in 1 second [Error: connect ECONNREFUSED] security.api.ka
12 Nov 11:10:43 - [router] Proxying to http://127.0.0.1:31004 security.api.ka
12 Nov 11:10:43 - [router] Can't connect, retry in 1 second [Error: connect ECONNREFUSED] security.api.ka
12 Nov 11:10:44 - [router] Proxying to http://127.0.0.1:31004 security.api.ka
12 Nov 11:10:44 - [router] HTTP request received my.api.10.10.10.10.xip.io
12 Nov 11:10:44 - [router] Proxying to http://127.0.0.1:31012 my.api.10.10.10.10.xip.io
12 Nov 11:17:38 - [dns ]
12 Nov 11:17:38 - [dns ]
Curl also seems to respond with the same status:
$ curl http://index.ka
curl: (52) Empty reply from server
@typicode have you found anything else out about this problem?
from katon.
@rizowski thank you for the detailed logs. Didn't really have the time to, sorry.
But I've worked on a alternative way to have .dev
local domains.
It's available in the latest version of hotel. Main advantages are that, unlike here, it doesn't rely on OS X firewall and won't get broken with OS updates.
So, It doesn't fix this issue, but you may want to give it a try.
from katon.
Ok thanks for the update. I will test it out and let you know of the results.
from katon.
Related Issues (20)
- xip.io does not work? HOT 4
- Properly replace underscores with dashes when determining current app name HOT 1
- PHP Server Not Routing HOT 15
- Support websockets HOT 2
- Stop daemon after period of inactivity HOT 2
- Apache fighting with Katon HOT 10
- pause / resume commands HOT 1
- Security issue: binds to 0.0.0.0 by default rather than 127.0.0.1 HOT 2
- feature request: katon open w/ https instead of http HOT 3
- Rails: Command '--port' not recognized HOT 9
- Wrong log filename in error message HOT 1
- 0.10.2 doesn't include PRs 66 or 67 HOT 1
- *.xip.io links give connection refused HOT 1
- Using rails --port, katon listens on the port but doesn't forward traffic HOT 1
- Support ngrok domains
- Configure 4 second timeout on app load... HOT 4
- Xip.io resolution fails, have to reinstall katon now and then HOT 5
- Support location (path) proxy routing HOT 3
- Forwarded HTTPS requests should set X-Forwarded-Proto HOT 1
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 katon.