Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating new browser context: cdp.Target: CreateBrowserContext: rpc er ror: Not allowed. (code = -32000) #15

Closed
superpluss opened this issue Nov 22, 2018 · 8 comments
Labels
bug Something isn't working

Comments

@superpluss
Copy link

tim 20181122165436
tim 20181122165529
source file
temp.txt
docker container ping image host is success

@gulien
Copy link
Collaborator

gulien commented Dec 11, 2018

You may try it again with the new version of Gotenberg: it should work. Don’t forget to send those images in your request! See https://thecodingmachine.github.io/gotenberg/#html.assets

@gulien gulien added the question Further information is requested label Dec 11, 2018
@superpluss
Copy link
Author

Thanks !but I user new version Gotenberg!error message :"creating new browser context: cdp.Target: CreateBrowserContext: rpc er ror: Not allowed. (code = -32000)"Do I need to install the browser kernel in the container?
tim 20181212112505

@gulien
Copy link
Collaborator

gulien commented Dec 12, 2018

The browser is already installed in the image.
This issue is about creating new browser context, and I got the same issue in Travis CI 🤔

I need to investigate this.

@gulien gulien changed the title Html convert pdf don't support image creating new browser context: cdp.Target: CreateBrowserContext: rpc er ror: Not allowed. (code = -32000) Dec 12, 2018
@gulien gulien added bug Something isn't working and removed question Further information is requested labels Dec 12, 2018
@gulien
Copy link
Collaborator

gulien commented Dec 12, 2018

Could you provide more details about where do you launch Gotenberg (local remote)? What's your operating system?

@superpluss
Copy link
Author

Could you provide more details about where do you launch Gotenberg (local remote)? What's your operating system?

local server(Local Area Network)
CentOS Linux release 7.2.1511 (Core)
x86_64
docker common:"docker run -d --rm -p 3000:3000 thecodingmachine/gotenberg:3"
Still need more information?

@gulien
Copy link
Collaborator

gulien commented Dec 12, 2018

Once this job is finished:

https://travis-ci.org/thecodingmachine/gotenberg/jobs/466950000

You'll be able to:

  1. Delete the previous image with:docker rmi thecodingmachine/gotenberg:3
  2. Test again 😄

Travis CI now works correctly with the tests, so I guess it should be ok for you.

@superpluss
Copy link
Author

cool!But I recommend using A4 paper by default. If I don't pass the parameters "paperWidth", "paperHeight", some content will be incomplete.(with google translate !Haha!)
a6_pdf
default_pdf

@gulien
Copy link
Collaborator

gulien commented Dec 13, 2018

A4 is actually the default format :) if you want, you may reduce the margins instead of changing the paper size :)

Feel free to reopen this issue if needed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants