-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BUG]contect exceed issue #14
Comments
Hi Team/ @unidoc-build Please help us to resolve this issue as soon as possible |
Hi @Veeraops, You can try to set the document timeout like, the example is
API Reference https://apidocs.unidoc.io/unihtml/v0.6.0/github.com/unidoc/unihtml/#Document.SetTimeoutDuration Or can set the default server timeout by adding argument
|
Hi @Veeraops, We closing this issue for now, you can re-open the issue if the solutions didn't resolve your issue. |
We are still encountering issues with UniHTML, receiving a 400 response code when attempting to call the following method:
Below are the Docker container logs: We have also observed 'resource temporarily unavailable' errors when attempting to execute any command inside the Docker container: Could you please assist us in resolving this issue? It is impacting our production environment and affecting numerous users." |
Hi @HanumanthaRAON, Could you give us some reproducible code snippet? so we can debug it on our ends. Thanks |
@sampila document, err := unihtml.NewDocumentFromString(htmlString) if err := pdf.Writer.Draw(document); err != nil { |
@Veeraops could you share the |
Have you tried to set the duration timeout for document? the code might be like this
|
@sampila We have tried with below command which is suggested us on above Also please find the below htmlstring code which we are using, some of the code added in the text file. please verify and help us to fix this issue as soon as possible |
Yes, I am checking this and in meantime, could you try the code I provided previously? setting the document timeout. |
Hi @Veeraops, I tried to reproduce the issue, but after trying few times, I didn't encountered the timeout issue with or without setting the default time out for the docker image. could you try to update the docker image of UniHTML to the latest one and update UniHTML version to v0.8.0 and checks if there's still an issue on your ends? Run UniHTML docker image with default timeout
Code Example
Run the code
FilesOutput PDF |
@sampila Could you please share the latest version of UniDocHML to run on our servers using Docker? |
This the link of UniHTML docker image https://hub.docker.com/r/unidoccloud/unihtml
|
Hi @Veeraops and @HanumanthaRAON do this issue is resolved? |
@sampila As of now, it is working, but after a few days, it's encountering the same error as below. We need a permenant solution for this, could you please help |
We are helping here, but without detailed code snippet, file to tests its hard for us also to reproduce the issue. |
@sampila |
Do it's return timeout error? when looking at the logs, it's return the http 400 after around 15 seconds. Docker command
|
@sampila We have added --verbose flag, will reach you out if we are facing any issues with it. thanks a lot for the quick support |
@sampila We can observe unihtml creating many zombi process. Is it known issue or Bug ? or is it contributing factor for resource temporarily unavailable. Please find the below screenshot for the more details. Please suggest to resolve this issue. |
Not related to the resource unavailable, as you can see it is idle, not consuming any cpu or memory |
@sampila We are encountering the same error within two days of executing the below command and added the log below . docker run -p 8080:8080 -e UNIDOC_METERED_API_KEY=$UNIDOC_LICENSE_API_KEY unidoccloud/unihtml --default-timeout 5m --verbose |
Hi Team, Now after restarting docker it is not working , previously it used work after restart. can someone get into call and help us as our production system is impacted. Thanks, |
What's the error message you get when running the docker? hard for us to guessing the issue. |
Didn't see any errors message here. |
I am not rally sure why all of sudden it is trying call public ip instead of internal private IP to convert to pdf |
Can be related to your server infrastructure, from where you call the services. |
I saw some incorrect formatted url also there on your logs like
|
Closing as there is no activity on this. |
We are getting an issue context exceed issue on the production environment. Kindly help us to resolve this issue as soon as possible
The text was updated successfully, but these errors were encountered: