Comments (7)
Are you on the current
X0
branch or onmaster
?
I'm on updated X0
branch.
Regarding the
headers['host']
entry I'm actually not sure how this can happen. Are you requesting the UI via a domain/ip and via http on port 65432?
This happens when I try to load Proxy PAC file into Firefox. It also happens when I try to directly open Proxy PAC file in Firefox and Chrome.
If you use the
./bin/browser.sh
, which WebView technology is being used?
I'm using Docker image. I tested this with Firefox and Chrome.
Something that might be related is, that I'm not accessing UI from localhost
, but from my other local IP (http://192.168.64.101:65432/
).
from stealth.
Hey, thanks for the report.
Took me a while to fix this, because I refactored the Session Management.
The reason is that currently the Browser UI (as in "load via iframe") is broken, and some URLs need to be replaces inside the HTML. So in order to do this, I created the URL.resolve()
method and some reviews for it:
Still broken overall though, as the Session Management needs further work. I'm currently busy building the Sidebar for a Request(s) overview and connected Peers, so that those can be managed more easily (and Peers blocked if they cause too much load).
After that I can start to implement the Optimizer that will re-render (and therefore fix the URLs of resources) the HTML when being requested via iframe.
Using Stealth via Web Proxy should work though for the time being, as parsing, rendering and requesting (of absolute URLs) is done by the external Browser.
from stealth.
There are also some other crashes which happen from time to time:
When opening Stealth URL without /browser/index.html
:
file:///browser/stealth/source/other/ROUTER.mjs:79
path: '/browser/index.html' + (ref.headers['@debug'] ? '?debug' : '')
^
TypeError: Cannot read property '@debug' of null
at Object.send (file:///browser/stealth/source/other/ROUTER.mjs:79:47)
at HTTP.receive (file:///browser/stealth/source/Server.mjs:346:14)
at Object.receive (file:///browser/stealth/source/protocol/HTTP.mjs:593:5)
at Socket.socket.once (file:///browser/stealth/source/Server.mjs:330:10)
at Object.onceWrapper (events.js:281:20)
at Socket.emit (events.js:193:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:231:10)
at TCP.onStreamRead (internal/stream_base_commons.js:154:17)
When opening Proxy PAC file:
file:///browser/stealth/source/other/ROUTER.mjs:120
url: 'http://' + ref.headers['host'] + '/proxy.pac',
^
TypeError: Cannot read property 'host' of null
at Object.send (file:///browser/stealth/source/other/ROUTER.mjs:120:37)
at HTTP.receive (file:///browser/stealth/source/Server.mjs:346:14)
at Object.receive (file:///browser/stealth/source/protocol/HTTP.mjs:593:5)
at Socket.socket.once (file:///browser/stealth/source/Server.mjs:330:10)
at Object.onceWrapper (events.js:281:20)
at Socket.emit (events.js:193:13)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:276:11)
at Socket.Readable.push (_stream_readable.js:231:10)
at TCP.onStreamRead (internal/stream_base_commons.js:154:17)
from stealth.
Are you on the current X0
branch or on master
?
The X0 branch is the one I'm working on, and I remember that I thought I had fixed sth. like this a couple weeks ago.
Cross-validation: In the stealth/source/Server.mjs
there should be a request.headers['@debug']
entry being set -> https://github.com/cookiengineer/stealth/blob/X0/stealth/source/Server.mjs#L330-L349
Regarding the headers['host']
entry I'm actually not sure how this can happen. Are you requesting the UI via a domain/ip and via http on port 65432?
If you use the ./bin/browser.sh
, which WebView technology is being used?
from stealth.
Awesome, this is exactly what I needed for reproduction. Confirmed.
from stealth.
I think I fixed it now, so that the headers are correct.
You can verify that this is working by requesting the http://<ip>:65432/proxy.pac
file manually. If there's no undefined
in there, it's fixed - as it relies on the Host
header to work.
... so the file contents should look similar to this:
function FindProxyForURL(url, host) {
if (host === "192.168.1.10") return "DIRECT";
if (host === "localhost") return "DIRECT";
return "PROXY 192.168.1.10:65432; DIRECT";
}
from stealth.
Yes, it is fixed.
from stealth.
Related Issues (20)
- Stealth: WS Connection Refactor HOT 2
- Stealth: Server Refactor HOT 2
- Stealth: SOCKS Connection Refactor HOT 2
- Stealth: Peerer Server Middleware HOT 1
- Stealth: Router Server Middleware HOT 2
- Covert: Results' assert() calls should be sorted as-in-file HOT 1
- Stealth: Peer Service
- Vendor Profile: CNAME Cloaking Integration HOT 1
- Stealth: SUBNET Parser and Tracer Middleware
- Stealth: Task Service
- Stealth: Search Page
- Browser: Peering Settings
- Browser: Statistics UI
- HTTP Connection: Content-Location and Content-Disposition support HOT 1
- Stealth: Asset Optimizers
- Browser: Webview Changes
- Stealth: Task Service
- Stealth: Session Service
- Stealth: Network Request Scattering
- node ./make.mjs ……reports an 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 stealth.