Comments (7)
@nfriedly I've just noticed the crash is only happening which the proxied page is loaded in an iframe. Do you have any idea why that might be so I can investigate this further?
from node-unblocker.
Hum... that's odd. It definitely shouldn't be crashing, although when I run the proxy locally and visit http://www.optimcore.com/ it works for me. Could you run it again with DEBUG=* npm start
and give me the full output? It should include a ton of debugging info.
from node-unblocker.
Here you go: http://pastebin.com/JLDzX7kX
from node-unblocker.
FYI I'm building a visual website editor and using the node proxy to circumvent same-origin policy. A PHP app creates an iframe into which a webpage is loaded using the node proxy. The PHP app is running on port 80, the node proxy is running on port 8080 and I'm using Apache to proxy requests to Node.js as follows:
<VirtualHost *:80>
ServerName ocl
ServerAlias ocl.com
DirectoryIndex app.php
DocumentRoot /Users/matthew/Sites/ocl/web
<Directory /Users/matthew/Sites/ocl/web>
AllowOverride All
Order allow,deny
Allow from All
</Directory>
<Location "/proxy">
ProxyPass http://localhost:8080/proxy
ProxyPassReverse http://localhost:8080/proxy
</Location>
</VirtualHost>
from node-unblocker.
Hey, sorry it took me forever to get back to you, but I think I finally figured it out. The key is on line 555 of your debug output:
unblocker:proxy proxying GET http:/www.optimcore.com/js/jquery.min.map +3ms
There should be two slashes after http:, but there's only one. Something is probably trying to be clever and "fix" that for you. I'll see if I can make the proxy a bit more resilient against that kind of shennanagain. At worst, it should just drop the request with a 404, but ideally it should silently fix the URL.
from node-unblocker.
I just released v1.0.10
with a fix to detect "http:/" urls and redirect them to "http://" ones. I know it's been quite a while, but if you get the chance, please try it out and let me know if it works for you.
from node-unblocker.
This is great, many thanks!
I can't find what was generating the single slash url, perhaps it was a typo that has since been fixed.
Recently I had been investigating another issue: When loading the webpage http://www.survio.com/l-cs-dotaznik-form/ via the proxy. Several resources were randomly returning 5xx errors. The logs were showing a similar domain.split('.')
issue:
/var/app/current/node_modules/tld/lib/tld.js:80
var parts = domain.split('.'),
^
Here are more of the logs: http://pastebin.com/xWwkdWmE
There don't appear to be any malformed (single slash) urls on the survio.com page, but the good news is your new release has also fixed this issue :)
Do you think the cause of this could be something other than the single slash?
Many thanks,
Matthew
from node-unblocker.
Related Issues (20)
- [Bug] Does Not work. HOT 10
- Weird Redirect when deploying with openode.io HOT 2
- Error HOT 1
- Discord isn't working. HOT 5
- Discord link HOT 2
- Next.js support HOT 3
- maleik2
- JustAguy HOT 1
- In Search Of A Proxy HOT 2
- Setting a static URL without typing it after the prefix HOT 7
- Google safe-browsing flags unblocker as phishing
- Proxy not working with Nike.com and Cloudflare HOT 2
- My administrator's website still blocks it even when I use unblockernode
- Z_DATA_ERROR HOT 7
- use node-unblocker in client sveltekit without node js HOT 1
- how to use node-unblocker with https-proxy-agent HOT 1
- sometime error and stuck when use in docker HOT 3
- https://www.youtube.com/embed/XGxIE1hr0w4 --This type of URL cannot be proxied HOT 8
- URL PATH - [feature] HOT 6
- how to add ads in unblocked website HOT 3
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 node-unblocker.