Comments (4)
You need to encode the url properly. Try
wget -o out.pdf http://localhost:3000/pdf?accessKey=secret&url=https%3A%2F%2Fgithub.com%2Fmsokk%2Felectron-render-service
from electron-render-service.
I'll send a PR for updated docs :-)
from electron-render-service.
thank you, but now getting a 400: Bad Request with
wget -o out.pdf http://172.17.0.2:3000/pdf?accessKey=secret&url=http%3A%2F%2Fgoogle.com
same with
wget -o out.pdf http://172.17.0.1:3000/pdf?accessKey=secret&url=http%3A%2F%2Fgoogle.com
wget -o out.pdf http://localhost:3000/pdf?accessKey=secret&url=http%3A%2F%2Fgoogle.com
note I am using the literal access key "secret" when starting docker and in the request
Here is the return message:
--2016-08-11 09:40:21-- http://172.17.0.2:3000/pdf?accessKey=secret
Connecting to 172.17.0.2:3000... connected.
HTTP request sent, awaiting response... 400 Bad Request
2016-08-11 09:40:21 ERROR 400: Bad Request.
And here is what the running docker instance logs:
[2016-08-11T16:40:21.623Z] [email protected] - GET 400 /pdf?accessKey=secret 83 "Wget/1.17.1 (linux-gnu)" 7.872 ms
from electron-render-service.
Hmmm, I see...
Well, the terminal is interpreting the & in the address which is not desired behavior. Quoting the arguments should fix that. Besides the '-o' argument should be capitalized.
The correct command would be
wget -O out.pdf 'http://172.17.0.1:3000/pdf?accessKey=secret&url=http%3A%2F%2Fgoogle.com'
I've updated and PR-ed the docs accordingly.
from electron-render-service.
Related Issues (20)
- Refactor waitForText to use HTML body (allows to wait for non-visual text) HOT 3
- Docker Swarm mode misc. points HOT 2
- Feature request: Debian packages HOT 4
- Styles not being rendered correctly HOT 3
- Empty PDFs when writing to file using Node.js... HOT 1
- insecure dependency
- How to disable certificate check? HOT 2
- Version 10 of node.js has been released
- Private Websites HOT 1
- Unable to install on Debian 9 HOT 1
- An in-range update of supertest is breaking the build 🚨 HOT 2
- Is this repo still maintained? HOT 7
- An in-range update of eslint is breaking the build 🚨 HOT 2
- An in-range update of electron is breaking the build 🚨 HOT 1
- An in-range update of electron is breaking the build 🚨 HOT 6
- An in-range update of eslint-plugin-jest is breaking the build 🚨 HOT 6
- An in-range update of eslint is breaking the build 🚨 HOT 3
- An in-range update of prettier is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 3
- How to use the service with a wikimedia page that needs authentication? HOT 5
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 electron-render-service.