Giter Site home page Giter Site logo

Comments (4)

Reggino avatar Reggino commented on May 29, 2024

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.

Reggino avatar Reggino commented on May 29, 2024

I'll send a PR for updated docs :-)

from electron-render-service.

tomay avatar tomay commented on May 29, 2024

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.

Reggino avatar Reggino commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.