primordic/IssueDupesLite huggingface dataset:
Repository: nginx/docker-nginx

Issue #78: Alpine base cannot resolve links via DNS
Created: 2016-04-08T23:51:32Z
Apparently there is an issue with DNS resolution in alpine. See: https://forums.docker.com/t/container-link-problem-in-docker-cloud/6445/12. This prevents nginx images from resolving linked containers via DNS, such as on Docker Cloud.
Using alpine:edge will apparently fix the issue.

Duplicate issue #301: Unable to telnet to phpfpm container
Created: 2019-01-09T21:06:22Z
I am using docker-compose.
I am using nginx:alpine image along with mariadb:latest and php:fpm-alpine. Both the php and mariadb are mentioned in depends_on parameter within nginx service. My docker-compose files looks like this:
version: '3'

services:
    app:
        image: nginx:alpine
        ports:
            - 80:80
        depends_on:
            - db
            - phpfpm

    db:
        image: mariadb:latest
        ports:
            - 3306:3306
        environment:
            - "MYSQL_ROOT_PASSWORD=root"
    phpfpm:
        image: php:fpm-alpine
        expose:
            - 9000
When I try to execute following command in nginx container (app in this case) using:
This doesn't work
docker-compose exec app telnet phpfpm 90000
I do not get any response. It keeps hanging there until I quit it forcefully.
However, when I do the same in db container, it can telnet successfully
This works
docker-compose exec db telnet phpfpm 9000

However, this issue is resolved when I use nginx:latest image, in which case, I can telnet successfully to phpfpm container.

Closing comment (2019-02-21T09:54:49Z): Possibly the DNS resolving doesnt work the same way in alpine variant as it does in the debian one? Is that similar to #78 ?
Repository: nginx/docker-nginx

Issue #861: Angular 15 unexpected "}" in /etc/nginx/nginx.conf:10?
Created: 2024-01-15T18:13:37Z
Describe the bug
I have deployed angular file with docker and nginx file but from harness pipeline CI done but CD got issue and in the CD i have added my nginx file as well as error image can anybody help on that regarding that issue i am stuck this issue last 4 days can you help me please ?
Docker file
`FROM artifactorycloud.ual.com/v-docker/node:16-alpine3.16 as build
WORKDIR /usr/src/app
ENV PATH /app/node_modules/.bin:$PATH
COPY package*.json ./
RUN npm install -g @angular/cli@15.2.10
RUN echo $WORKDIR
COPY . .
RUN npm run build
RUN ls -ltr /usr/src/app/dist/isa
FROM nginx:alpine
COPY ./config/nginx.conf /etc/nginx/nginx.conf
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/src/app/dist/isa/ .
EXPOSE 4200`
To reproduce
Steps to reproduce the behaviour:
worker_processes    auto;
events {
worker_connections 1024;
}
http {
server {
listen 0.0.0.0:80;
listen [::]:80;
default_type application/octet-stream;
# Gzip Settings
gzip                    on;
gzip_comp_level         6;
gzip_vary               on;
gzip_min_length         1000;
gzip_proxied            any;
gzip_types              text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_buffers            16 8k;
client_max_body_size    256M;

# Brotli Settings
# brotli on;
# brotli_comp_level 4;
# brotli_buffers 32 8k;
# brotli_min_length 100;
# brotli_static on;
# brotli_types image/jpeg image/bmp image/svg+xml text/plain text/css application/json application/javascript application/x-javascript text/xml application/xml application/xml+rss text/javascript image/x-icon;


root /usr/share/nginx/html;

#added for security issues
server_tokens off;

location / {
    #added for security issues
    proxy_pass_header Server;

    
    try_files $uri $uri/ /index.html =

}
}
}
Expected behavior
Fix above error and deploy build
Additional context
Anybody can you help me regarding this issue please let me know?

Duplicate issue #859: angular-15-emerg-11-unexpected-in-etc-nginx-nginx-conf10 ?
Created: 2024-01-15T18:00:10Z
Describe the bug
A clear and concise description of what the bug is.
To reproduce
Steps to reproduce the behavior:

Deploy the NGINX Docker image using ...
View output/logs/configuration on ...
See error

Expected behavior
A clear and concise description of what you expected to happen.
Your environment

Version/release of Docker and method of installation (e.g. Docker Desktop / Docker Server)
Version/tag of the NGINX Docker image (e.g. nginx:alpine)
Target deployment platform (e.g. OpenShift / Kubernetes / Docker Compose / etc...)

Additional context
Add any other context about the problem here.

Closing comment (2024-01-16T21:37:14Z): Closing, duplicate of #861
Repository: nginx/docker-nginx

Issue #435: way to proxy a websocket
Created: 2020-07-07T15:34:57Z
I'm trying to proxy a mosquitto websocket at port 19010 to 2001. My configuration is
http{
    map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
    }
    upstream websocket1 {
        server localhost:19010;
    }
    server {
        listen 2001;
		server_name <mydomain>;
        location / {
            proxy_pass http://websocket1;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $connection_upgrade;
            proxy_set_header Host $host;
        }
    }
}

where I got
2020/07/07 15:29:12 [error] 36#36: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 157.40.197.16, server: nodeb.logicbee.dev, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:19010/", host: "<mydomain>:2001"

when I try to connect to the proxied websocket
please help me out.

Duplicate issue #436: way to proxy a websocket
Created: 2020-07-07T15:44:01Z
I'm trying to proxy a mosquitto websocket at port 19010 to 2001. My configuration is
http{
    map $http_upgrade $connection_upgrade {
        default upgrade;
        '' close;
    }
    upstream websocket1 {
        server localhost:19010;
    }
    server {
        listen 2001;
		server_name <mydomain>;
        location / {
            proxy_pass http://websocket1;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection $connection_upgrade;
            proxy_set_header Host $host;
        }
    }
}

where I got
2020/07/07 15:29:12 [error] 36#36: *13 connect() failed (111: Connection refused) while connecting to upstream, client: 157.40.197.16, server: nodeb.logicbee.dev, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:19010/", host: "<mydomain>:2001"

when I try to connect to the proxied websocket
please help me out.

Closing comment (2020-07-07T16:09:59Z): Duplicate of #435
Repository: nginx/docker-nginx

Issue #2: Source build?
Created: 2014-09-25T17:41:53Z
Would you consider using a source build strategy like the old repo? Would allow for setting any compile-time options that one might want and at no real cost (that I'm aware of).

Duplicate issue #56: Need image filter module
Created: 2015-12-16T04:35:26Z
But do not want recompile it
--with-http_image_filter_module

Closing comment (2015-12-16T08:01:34Z): Duplicate of #2 and #14.
Repository: ngx-translate/core

Issue #218: Cannot use with Angular AOT Compiler
Created: 2016-08-31T19:51:08Z
I'm submitting a ...
[x] bug report
Current behavior
Compiling an application with the angular AOT compiler fails, when ng2-translate is included in the module. The following import leads to an error:
...
imports: [TranslateModule.forRoot()]
...
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

Expected/desired behavior
It should compile successfully.
Please tell us about your environment:

ng2-translate version:
2.4.1
Angular version: 2.0.0-rc.X
2.0.0-rc.5
Language:
TypeScript 2.0.0

Duplicate issue #237: AOT compiler
Created: 2016-09-15T16:24:17Z
I'm submitting a ...  (check one with "x")
[X ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
AOT compiler does not work if I use TranslateModule.forRoot() in the module import
Expected/desired behavior
TranslateModule.forRoot() should work with ngc compiler
Reproduction of the problem
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:btpW3l0jr5beJVjohy1Q).
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Please tell us about your environment:

ng2-translate version: 2.5.0
Angular version: 2.0.0
Browser: [all]
Language: [TypeScript 2.0.2]

Closing comment (2016-09-20T12:46:26Z): Duplicate of #218
Repository: ngx-translate/core

Issue #218: Cannot use with Angular AOT Compiler
Created: 2016-08-31T19:51:08Z
I'm submitting a ...
[x] bug report
Current behavior
Compiling an application with the angular AOT compiler fails, when ng2-translate is included in the module. The following import leads to an error:
...
imports: [TranslateModule.forRoot()]
...
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function

Expected/desired behavior
It should compile successfully.
Please tell us about your environment:

ng2-translate version:
2.4.1
Angular version: 2.0.0-rc.X
2.0.0-rc.5
Language:
TypeScript 2.0.0

Duplicate issue #247: Providing TranslateModule with a factory doesn't work with ngc
Created: 2016-09-28T20:12:31Z
I'm submitting a ...  (check one with "x")
[x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
When I tried to provide TranslateStaticLoader using a function, ngc complains that function calls are not supported. I thus moved the function to an exported function (and this actually helped me with the same error with another library), but it didn't help with TranslateModule.
export function createTranslateLoader(http: Http)
{
    return new TranslateStaticLoader(http, '/assets/i18n', '.json');
}

@NgModule({
    imports: [
        IonicModule.forRoot(Application),
        TranslateModule.forRoot({
            provide: TranslateLoader,
            useFactory: createTranslateLoader,
            deps: [Http]
        }),
    ], ...
This gives me the error Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function. If I remove the TranslateModule, the error disappears. Do you have any idea how to solve this?
Please tell us about your environment:

ng2-translate version: x.x.x
2.5.0
Angular version: 2.0.0-rc.X
2.0.1 (Ionic 2 rc.0)
Language: [all | TypeScript X.X | ES6/7 | ES5]
Typescript 2.0

Closing comment (2016-09-29T07:14:14Z): I'm closing it as it is a duplicate of #218
the problem is that the lib is not compatible with AoT yet. I've talked with the angular team a bit these past days (at angular connect and on slack), and if you want a lib to be compatible with AoT you have to precompile it before shipping it on npm.
I'll do that and then it should work for you
Repository: ngx-translate/core

Issue #90: ng-translate select defaultlangue instead of standard language in first loading [only in firefox]
Created: 2016-04-14T15:01:13Z
Hi,
Steps to reproduce the issue:

.setDefaultLang ('en') and .use('en') to load it.
.use('fr') as a standard lang.
Enable dev mode in angular.
Load the app in firefox 45.

=> I'm getting translations in 'en' instead of 'fr'. This behavior is only in Firefox 45 in the first load.
I can't reproduce in Firefox developer edition or Chrome.
I'm missing something?

Duplicate issue #89: Pipe not interpreting translation event ?
Created: 2016-04-11T13:15:06Z
Hi!,
I'm currently integrating ng2-translate on an Angular2 app, and I'm having a bit of trouble :
In order to change my language on a button click : I call the use() function defined in the translateService. Some elements on my page use the service.get() function directly and they are translated with no problem, however, all the elements on my page using the TranslatePipe only get translated on the first language change (fr=>en or en=>fr), if I try to change my language again : only the elements using the service directly get translated.
I added some debug info in the onLangChange listener in the TranslatePipe class and it does catch the event with event.lang updated.
Am I doing something wrong ?

Closing comment (2016-04-15T08:53:08Z): So this is a duplicate of #90 (yup you posted it first, but anyway), can you follow up in the other bug please?
Repository: ngx-translate/core

Issue #887: MissingTranslationHandler wrongly triggered
Created: 2018-07-09T13:06:27Z
Current behavior
When i got this:
<div translate>translation_key</div>
with the translation
translation_key: "Welcome to our app"
The MissingTranslationHandler is triggered with the key "Welcome to our app".
So it looks like the key is translated twice and the second time it uses the translation for the lookup.
When I change the code to :
<div translate="translation_key"></div>
then the MissingTranslationHandler is not triggered.
How do you think that we should fix this?
probably best to store the original that is inside the tag, and reuse that (for example when language changes)
Environment

ngx-translate version: ~10.0.2
Angular CLI: 6.0.8
Angular: 6.0.7
Node: 8.11.2

Browser:
- [x] Chrome (desktop) version 67
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 8.11.2
- Platform:  Mac

Duplicate issue #904: translate directive not translating after source modification
Created: 2018-07-26T09:17:49Z
Current behavior

Changing the source array at runtime, doesn't trigger content update on nodes defined with directive.
Expected behavior

Directive should also update it's content as same as pipe.
Minimal reproduction of the problem with instructions


Open the minimal demo app
https://stackblitz.com/edit/github-ngx-translate-904?file=src/app/app.component.ts
Wait for a few seconds after app loads
Click "Set Sample Items" button

Environment

ngx-translate version: 10.0.2
Angular version: 6.0.9


Browser:
- [x] Chrome (desktop) version 63.0.3239.108 (Official Build) (64-bit)
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: v9.8.0
- Platform:  Linux

Others:

- OS: Ubuntu 16.04

Closing comment (2018-08-06T07:14:58Z): Duplicate of #887
Repository: ngx-translate/core

Issue #1092: Wrong behavior for translate directive in multi-line html nodes
Created: 2019-07-02T11:58:56Z
Current behavior
We have Prettier in our project which formats code this way. This kind of code makes changing translate language not working. Because there is extra space in the text node.
<select>
    <option *ngFor="let type of types" [value]="type.key"
               translate>{{ type.value }}
    </option>
</select>

For example, we would have content === "Super account " and node.currentValue === "Super account", so this extra space makes it not working
if (trimmedContent.length) {
    // we want to use the content as a key, not the translation value
    if (content !== node.currentValue) {
        key = trimmedContent;
        // the content was changed from the user, we'll use it as a reference if needed
        node.originalContent = this.getContent(node);
    } else if (node.originalContent && forceUpdate) { // the content seems ok, but the lang has changed
        node.lastKey = null;
        // the current content is the translation, not the key, use the last real content as key
        key = node.originalContent.trim();
    }
}

Expected behavior
We provide this HTML and translates in options are updated after language change
<select>
    <option *ngFor="let type of types" [value]="type.key"
               translate>{{ type.value }}
    </option>
</select>

How do you think that we should fix this?
From point of view we should change
if (content !== node.currentValue) { to
if (trimmedContent !== node.currentValue) {
Environment

ngx-translate version: 11.0.1
Angular version: 7.2.8

Browser:
- [*] Chrome (desktop) version 75
 
For Tooling issues:
- Node version: 10.16.0
- Platform:  MacOS

Duplicate issue #1091: Double language change will not translate with directive on untrimmed value
Created: 2019-06-28T13:13:27Z
Current behavior
Having an untrimmed text value will lead to bad behavior when changing the language twice
'untrimmed':
<button translate>text </button>
Expected behavior

translation will not work once
or translation will work as often as you change language

How do you think that we should fix this?
As i took a look at the code it seems like a caching / comparing problem.
So fix the code.
Minimal reproduction of the problem with instructions

Environment

ngx-translate version: ^11.0.1
Angular version: 8.0.1


Browser:
- [X] Chrome (desktop) version 75.0.3770.100 (Offizieller Build) (64-Bit)
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [X] Firefox version 66.0.5 (64-Bit)
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [X] IE version 11.0.9600.19377
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  v10.15.3
- Platform:  Windows

Others:


minimal code:
minimal.ts.txt
maybe it depends on #808 but hopefully more reproducable

Closing comment (2019-07-04T11:44:41Z): maybe the same as
#1092
Repository: ngx-translate/core

Issue #374: RTL support
Created: 2016-12-22T19:53:02Z
Are you planning to support RTL so we can determine if the text direction is RTL or LTR depending on the selected language?
Thanks.

Duplicate issue #405: [suggestion] add language direction 
Created: 2017-01-25T13:34:37Z
Hello,
thanks for your effort guys..
I'm currently trying to support RTL languages and i'm using this plugin. Is there a method to get the direction of the selected language (RTL OR LTR)?. I suggest to pass a parameter with selected language that determine the direction, so we can use it to update the UI.
how we update the UI?, execute this code inside app.component.ts constructor:
this.platform.setDir('rtl', true);
thanks

Closing comment (2018-05-08T12:43:51Z): Closing this issue because it's a duplicate of #374
Repository: ngx-translate/core

Issue #397: three request on init
Created: 2017-01-18T08:37:09Z
I'm submitting a ...  (check one with "x")
[ x] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior
when app inits it sends three request for one json file
Expected/desired behavior
it should send one
Reproduction of the problem

Please tell us about your environment:


ng2-translate version: 5.0.0


Angular version: 2.3.1


Browser: [all ]


Language: [ TypeScript ]

Duplicate issue #447: Duplicate requests when using use & setDefaultLang
Created: 2017-02-24T19:39:38Z
I'm submitting a ...  (check one with "x")
[X] bug report => check the FAQ and search github for a similar issue or PR before submitting
[ ] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

Current behavior

Load the plunker example from the home page
Notice en.json file is fetched twice (see the network tab)

This has to do with the following two lines fetching en.json:



translate.setDefaultLang('en');
translate.use(browserLang.match(/en|fr/) ? browserLang : 'en');

Expected/desired behavior
The en.json file should only load once. I know you can wait for .use to complete by subscribing to it and calling setDefaultLang file after, but I was wondering if you wanted to take a different approach in the library:

When the library starts to fetch a translation file, do not fetch any more until that is complete.

I can look into putting out a PR for this, but wanted to see your thoughts before I started. Is this something that should be handled by the lib, or should the user be the one to make sure you aren't calling setDefault and use at the same time for the same language?
Please tell us about your environment:


ngx-translate version: 6.0.0


Angular version: 2.4.8

Closing comment (2017-02-24T19:50:34Z): duplicate #397 (comment)
Repository: ngx-translate/core

Issue #147: Support for links and shortcuts
Created: 2016-06-15T17:37:30Z
I am currently porting an app from Angular 1 to 2. This app uses the links and shortcuts feature of Angular-Translate. It seems like it's not supported, could this be in the plans ?

Duplicate issue #179: Cross Reference within language file not wokring
Created: 2016-07-29T07:57:19Z
I have been using https://github.com/angular-translate/angular-translate for some time and have a well developed language file where we cross reference other elements within the file, i.e.
"PLACEHOLDER": {
"USERNAME": "Enter your email"
},
"LABEL": {
"EMAIL": "@:PLACEHOLDER.USERNAME"
}
So when we use {{ 'LABEL.EMAIL' | translate }} it actually uses the text within PLACEHOLDER.USERNAME
This does not work with when I implement in angular 2.
Can anyone tell me if this is working?

Closing comment (2016-09-23T09:33:51Z): This is actually a duplicate of #147, closing this one, follow the status in the other one.
Repository: niklasvh/html2canvas

Issue #2988: Text pixels are missing in the generated image
Created: 2022-11-10T03:15:51Z
We lost pixels in the generated image, but it not bound to appear.
Someone in the same Browser and System version has this problem, another have not.
One of us reproduce the problem 90% of the time in the browser(Microsoft Edge, version: 107.0.1418.35), when he clears the browser cache.
[browser & version]: Microsoft Edge, version: 107.0.1418.35
[html2canvas version]: 1.4.0
So I can't locate the problem and ask you for help, thank you.

Duplicate issue #3123: Text pixels are missing in the generated image
Created: 2023-10-13T03:02:25Z
Bug reports:
We lost pixels in the generated image, but it not bound to appear.Someone in the same android device has this problem, another have not.
We tried to set scale from 1 to 4 can fix the issue, but other page scale  to 4 may not working. Not sure the root cause.

Specifications:

html2canvas version tested with: 1.4.1
Browser & version: Chrome/69.0.3497.100
Operating system: Android 13

Closing comment (2023-10-24T21:41:46Z): Duplicate of #2988
Possibly fixed in a more recent Chrom[e | ium] version; see my #2988 (comment)
Repository: niklasvh/html2canvas

Issue #2008: textarea cannot rendered correctly.
Created: 2019-09-17T10:12:35Z
Hi,
I was faced that textarea cannot break line with capturing
hopes give some help
thanks!
Specifications:

html2canvas version tested with:1.0.0-rc.3
Browser & version:latest version
Operating system:win 10

Duplicate issue #1894: placeholder color, font-size in <input> on Firefox , line wrap in <textarea>
Created: 2019-06-18T10:18:26Z
Bug reports:
Full picture



Content
Real - Firefox
H2C - Firefox
H2C - Chrome




Placeholder





String






Decomposing pictures



Content
Real - Firefox
H2C - Firefox
H2C - Chrome




border-style: dashed;


Same with Firefox


Placeholder <Input>





Placeholder <textarea>

Blank
Blank


String <Input>





String <textarea>






Detailed explanation


border-style: dashed; drawing error.



Real - Firefox
H2C - Firefox
H2C - Chrome






Same with Firefox





font-size with <input> drawing error in Firefox.



Real - Firefox
H2C - Firefox















color with <input>::placeholder drawing error.



Real - Firefox
H2C - Firefox
H2C - Chrome










H2C uses string color, not placeholder color. If I modify the text color to red, the placeholder drawn by H2C  is also red.

▼



Placeholder in <textarea> is not draw.



Real - Firefox
H2C - Firefox
H2C - Chrome





Blank
Blank





Line wrap in <textarea> is not drawn.



Real - Firefox
H2C - Firefox
H2C - Chrome












Related pages
https://mapaler.github.io/PADDashFormation/
Specifications:

html2canvas version tested with: v1.0.0-rc.3
Browser & version: Firefox Developer Edition 68.0b10 (64 bit) | Chrome 75.0.3770.90
Operating system: Microsoft Windows 10 1809 [Ver 10.0.17763.557]

Closing comment (2020-03-19T00:53:48Z): Line wrap in textarea is a duplicate of #2008 ?
Repository: niklasvh/html2canvas

Issue #244: Google maps API v3 (still tainted with proxy and markers missing)
Created: 2013-07-16T13:33:47Z
Hello,
I managed to make this partially work with google maps. I'm also using a proxy I wrote in Ruby (Rails).
Here's the code of my proxy (it's very basic and it's actually a controller action within my application):
class ProxyController < ApplicationController
  def get_image
    url = URI.parse(params[:url] || "")
    callback = params[:callback]

    response = Net::HTTP.start(url.host, use_ssl: true, verify_mode: OpenSSL::SSL::VERIFY_NONE) do |http|
      http.get url.request_uri
    end

    bin_body = response.body

    base64 = [bin_body].pack("m0")
    responseData = 'data:' + response.header.content_type + ';base64,' + base64

    output = "#{callback}(#{responseData.to_json})"
    send_data output, type: 'application/javascript', disposition: 'inline'
  end
end

I'm pretty sure the proxy is working because I'm getting the same output as the one in node.js.
This is the JS that I use to render the canvas
$("a.export-map").click ->
  html2canvas $("div#map"),
    proxy: "/proxy/get"
    onrendered: (canvas) ->
      console.log(canvas.toDataURL())
  false

Now, It kinda works... I'm attaching the output of the function as well as how it should be.
This is my result:

This is how it should be:

As you can see, some thing are missing. Like the marker and the left side controls.
Also I'm getting between 3 and 4 console errors when I try to convert. The errors are always the same:
Unable to get image data from canvas because the canvas has been tainted by cross-origin data. html2canvas.js?body=1:2735
    safeImage html2canvas.js?body=1:2735
    renderItem html2canvas.js?body=1:2769
    (anonymous function) html2canvas.js?body=1:2819
    _html2canvas.Renderer html2canvas.js?body=1:2562
    options.complete html2canvas.js?body=1:2677
    start html2canvas.js?body=1:2209
    img.onload

Duplicate issue #462: html2canvas not including Google Map markers
Created: 2014-10-07T16:10:38Z
html2canvas($('#googleMap'), {
useCORS: true,
allowTaint: false,
onrendered: function (canvas) {
                var img = new Image();
                img.onload = function() {
                    img.onload = null;
                    document.body.appendChild(img);
                };

                img.onerror = function() {
                    img.onerror = null;
                    if(window.console.log) {
                        window.console.log("Not loaded image from canvas.toDataURL");
                    } else {
                        alert("Not loaded image from canvas.toDataURL");
                    }
                };
                //img.src = canvas.toDataURL("image/png");
                img.src = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream");
            }
        });

Closing comment (2014-10-24T10:08:16Z): @deecee2000 I'm not sure of any workarounds, but it sounds like your case is exactly the same as #244 and should probably be closed as a duplicate. (You can subscribe to notifications for that issue for updates.)
Repository: niklasvh/html2canvas

Issue #1631: Screenshoting MapBox using html2canvas creates a black jpg
Created: 2018-08-21T09:28:10Z
打印pdf
    
        
            
            
        

html2canvas(item,{
backgroundColor: "#FFFFFF"
}).then(function(canvas) {
canvas.style.background = '#FFFFFF';
		var pageData = canvas.toDataURL('image/jpeg', 1.0);
		
		if (position < 0) {
			pdf.addPage();
		}
		pdf.addImage(pageData, 'JPEG', -200, 0, 960, 595);
                     pdf.save('stone.pdf');

})
but pdf create a black jpg

html2canvas version tested with:  1.0.0-alpha.12
Browser & version: chrome
Operating system:

Duplicate issue #2707: doesn't work with mapbox
Created: 2021-09-20T01:05:20Z
hello!
I did'nt find the solution to print mapbox maps with the recent versions of html2canvas
code here:
https://codesandbox.io/s/intelligent-merkle-56q9x?file=/index.html

Closing comment (2021-11-23T14:16:45Z): That's probably a duplicate of #1631
Repository: niklasvh/html2canvas

Issue #221: box-shadow
Created: 2013-05-31T10:55:06Z
Any plans to implement box-shadow?
p.s. great utility!!!

Duplicate issue #510: Box-shadow and CSS transforms skew not supported? Fiddle provided
Created: 2015-01-19T23:44:27Z
Greetings,
http://jsfiddle.net/fuggfuggfugg/q572g6q0/4/ - This is my working example.
Tried searching but was unable to find anything with regards to skewed lines.

Closing comment (2017-12-12T09:00:52Z): Duplicate of #221
Repository: niklasvh/html2canvas

Issue #2008: textarea cannot rendered correctly.
Created: 2019-09-17T10:12:35Z
Hi,
I was faced that textarea cannot break line with capturing
hopes give some help
thanks!
Specifications:

html2canvas version tested with:1.0.0-rc.3
Browser & version:latest version
Operating system:win 10

Duplicate issue #1890: how to make show all textarea lines 
Created: 2019-06-14T06:24:57Z
Hi,
I use html2Canvas to generate a picture of whole page. But picture cannot show all line in textarea, just one line, no line feed, no whole text.
and following is my code :
html2canvas(document.body, {
height: document.body.clientHeight + 100,
width: document.body.clientWidth + 100
}).then(function (canvas) {
var imageData = canvas.toDataURL("image/jpeg");
});
how to edit my code to show all lines?
.

Closing comment (2020-03-19T00:54:29Z): This is a duplicate of #2008
Repository: niklasvh/html2canvas

Issue #284: linear gradient support in IE9 and 10
Created: 2013-10-24T14:17:26Z
Hi,
It would be helpful if any one can let me know linear background is supported for IE9 and 10. I tried using it, doesn't seem to work. Tried with svg+xml also, but IE9 crashes.
http://jsfiddle.net/bK3HY/1/
Thanking you in advance.
Sincerely,
Aneesh

Duplicate issue #689: No render button class from bootstrap
Created: 2015-10-03T14:00:56Z
I have a implementation using html2canvas for take screenshots to a form page. It has few buttons with bootstrap class (default).

But when I take screenshot using html2canvas, return this:

If you see, the style button has disappeared.
I have not idea but it happen with any button
I hope you can help me from someone!
thanks!

Closing comment (2015-10-05T22:11:22Z): Duplicate from:

#172 (possible duplicate)
#284 (possible duplicate)
#538 (possible duplicate)

Read more: https://github.com/niklasvh/html2canvas/search?utf8=✓&q=linear-gradient&type=Issues
Repository: niklasvh/html2canvas

Issue #390: Canvas rendering is blurry on retina displays
Created: 2014-05-24T20:46:13Z
Thanks for the great library! One thing I'm noticing though is that the screenshots are blurry when using a retina display. For example, here's what the screenshot of https://github.com/niklasvh/html2canvas looks like on a retina display (as taken from the test page).

I think maybe there needs to be a check for the ratio between the window.devicePixelRatio and the context.backingStorePixelRatio somewhere in the rendering of the canvas...?
p.s. Here are some useful links I came across while trying to get to the root of the issue.

Apple's Safari Canvas Guide.
html5rocks.com HiDPI Blog Post.
Related question on Stack Overflow.

Duplicate issue #621: blurry on retina display
Created: 2015-06-24T20:26:18Z
This issue has been around for a while in many different forms / issues. Any fix for this yet?  This isn't just a retina thing as much as it's just a high resolution display issue.

Closing comment (2015-06-26T04:41:52Z): Duplicate of #390, #57 and #254
Repository: niklasvh/html2canvas

Issue #349: Not hiding overflow:hidden data
Created: 2014-03-16T08:21:11Z
I am using html2canvas to make 1 image out of 3-4 images. All these images can be zoomed for which i am using jquery zoom. There is one parent div holding all these images.
Overflow is hidden for all these images so that user can set it as per his wish.
Without zooming, on Html2Canvas, i am getting a perfect canvas element. But when any image is zoomed, and then i try HTML2Canvas, the hidden content is shown in canvas created. Is there a solution for this which i may not aware of.
My functionality is similar to http://www.fotor.com/features/collage.html.
Thanks in Advance.

Duplicate issue #511: Element scroll positions not preserved on clone
Created: 2015-01-20T11:49:50Z
This makes any overflowed elements that have been scrolled from their default positions appear incorrect (unscrolled) in the canvas:
http://jsfiddle.net/o0uco97c/
It's the Element analogue of the past issues with window scroll position (#57, #254, et al.), and it is a regression (working example using v0.4.1)

Closing comment (2015-05-14T12:02:26Z): @niklasvh, is the remaining part of this bug the same as #349? If so, should this one be closed in favor of that one?
Repository: niklasvh/html2canvas

Issue #511: Element scroll positions not preserved on clone
Created: 2015-01-20T11:49:50Z
This makes any overflowed elements that have been scrolled from their default positions appear incorrect (unscrolled) in the canvas:
http://jsfiddle.net/o0uco97c/
It's the Element analogue of the past issues with window scroll position (#57, #254, et al.), and it is a regression (working example using v0.4.1)

Duplicate issue #550: Scroll position of child div is not reflected in the image.
Created: 2015-03-13T15:06:55Z
Hi,
First of all thanks a lot for developing this wonderful library!
I tried to capture some area of my web page (which has multiple divs, some with a scrollbar) and the scroll positions (of those child divs) in image produced are not in sync with live page.
Please suggest if that is possible and how
Thanks in advance!

Closing comment (2015-03-14T12:31:27Z): Duplicate of #511. Feel free to follow that one and close this one (also make sure you're using the most recent version from the master branch, there was a partial fix a few days ago).
Repository: nilsteampassnet/TeamPass

Issue #2223: 500 Error after intall
Created: 2018-04-23T07:34:45Z
Steps to reproduce

Install the software on centos 7 php 5.6



Expected behaviour
Should see the login screen
Actual behaviour
500 Error
[Mon Apr 23 07:30:44.406739 2018] [:error] [pid 11538] [client 62.252.8.234:63868] PHP Fatal error:  Default value for parameters with a class type hint can only be NULL in /home/vault/public_html/sources/main.functions.php on line 2226
Server configuration
Operating system:
Centos 7
Web server:
Apache 2.4
Database:
Maria DB
PHP version:
5.6
Teampass version:
Latest (Cant see the version)
Teampass configuration file:
Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file /includes/config/tp.config.php.
Client configuration
Browser:
Operating system:
Logs
Web server error log
Insert your webserver log here

Log from the web-browser developer console (CTRL + SHIFT + i)
Insert the log here and especially the answer of the query that failed.

Duplicate issue #2260: No add users button
Created: 2018-05-11T11:05:30Z
Steps to reproduce

log in as admin
click manage users icon

Expected behaviour
There should be an option to add a user
Actual behaviour
No menu to add users (no tool bar at all)
Server configuration
Ubuntu
Apache
MySQL
PHP 5.5
Teampass 2.1.27.12 Clean install
/var/log/apache/errors.log last line shows:
PHP Catchable fatal error:  Argument 1 passed to cleanText() must be an instance of string, string given, called in /var/www/html/teampass/users.php on line 75 and defined in /var/www/html/teampass/sources/main.functions.php on line 2230, referer: https://[removed]/teampass/index.php?page=manage_users

Closing comment (2018-05-11T19:54:22Z): Duplicate of #2223
yes this is solution
Repository: nilsteampassnet/TeamPass

Issue #3430: admin interface does not work after update
Created: 2022-11-26T07:57:00Z
updated from version 3.0.0.16 to version 3.0.0.22
logged into the admin interface
left menu does not work

Operating system: windows
Web server:
Server version: Apache/2.4.54 (Debian)
Database:
Server version: 10.5.15-MariaDB-0+deb11u1 Debian 11
PHP version:
PHP 7.4.30 (cli) (built: Jul  7 2022 15:51:43) ( NTS )
Teampass version:
updated from 3.0.0.16 to  3.0.0.22
Teampass configuration file:
config.zip
Updated from an older Teampass or fresh install:
PLEASE attach to this issue the file /includes/config/tp.config.php.
config.zip
Client configuration
Browser:
Chrome last version
Operating system:
Windows
Logs
Insert your we
teampassUserCreate.zip
bserver log here

#### Web server error log

webLog.zip
Log from the web-browser developer console (CTRL + SHIFT + i)
[teampassAdmin interface.zip](https://github.com/nilsteampassnet/TeamPass/files/10095876/teampassAdmin.interface.zip)

Insert the log here and especially the answer of the query that failed.

Duplicate issue #3404: Upgrading from 2.1.27.36 to 3.0.0.20 -> Once loged in as admin, all menu options not working 
Created: 2022-11-07T17:32:00Z
Steps to reproduce

Upgrade from 2.1.27.36 to 3.0.0.20
Upgrade process successful.
I can login with admin account, but in menu options none works. The link is always 'index.php?page=admin#'

Expected behaviour
Working menu
Actual behaviour
Menu options not working. All links goes to 'index.php?page=admin#' and this do nothing.
Server configuration
Operating system: CentOS 7
Web server: Apache httpd 2.4.6
Database: mysql  Ver 15.1 Distrib 10.2.44-MariaDB
PHP version: 7.4.33
Teampass version: 3.0.0.20
Teampass configuration file:
Updated from an older Teampass or fresh install:
Upgrade from 2.1.27.36 to 3.0.0.20
Client configuration
Browser:
Operating system:
Logs
Web server error log
No webserver errors


Log from the web-browser developer console (CTRL + SHIFT + i)
Firefox:
Uncaught SyntaxError: '' string literal contains an unescaped line break

Chrome:
Uncaught SyntaxError: Invalid or unexpected token (at index.php?page=admin:1197:29)

Closing comment (2023-02-02T11:31:13Z): Same here on TP 3.0.0.22 with "russian" as default_language. No problems for "french" or "english".
Web server: apache 2.4.5.4-1.el7.3
Database: MariaDB 10.10.2-2.el7 (5.5.5-10.10.2-MariaDB) + mysqlnd 7.4.33
PHP version: 7.4.33-1.el7
Teampass version: 3.0.0.22 (downloaded on 02.02.2023), fresh install
Also I suppose it is related to #3430
Repository: nilsteampassnet/TeamPass

Issue #1909: Roles Management - Problem with acess rights "Edit" "Delete"
Created: 2017-09-20T14:05:44Z
Steps to reproduce

With "ADMIN" user "GOD ACCOUNT"
Acess "Roles Management"
Click on any user folder acess rights
Select "Write" and "Cannot Delete Items"
Click Save

Expected behaviour
The user will be able to "Create", "Read" and "Edit" Items on the folder that the acess rights was set, only the "Delete" option will be not allowed to use.
Actual behaviour
The user can "Create" and "Read" Items on the folder that the acess rights was set, but the "Delete" and "Edit" option is not allowed to use. The system is blocking "Delete Item" and "Edit Item" options.
Server configuration
Operating system:
DEBIAN 7 32Bits
Web server:
Apache/2.2.22 (Debian)
Database:
MySQL: mysqlnd 5.0.11-dev - 20120503
PHP version:
PHP Version 5.5.38-1~dotdeb+7.1
Teampass version:
TeamPass 2.1.27
Teampass configuration file:
tp.config.zip
Client configuration
Browser:
Mozilla Firefox 55
Operating system:
Windows 7 64Bits

Duplicate issue #2636: Problem with acces right
Created: 2019-06-20T12:38:38Z
Hello,
i notice some bug in Teampass in acces right.
For example Administrator or any other user have roles, and on some  folder have permissions to Write, and checked boxe cannot delete items.
This work, but when check box  Cannot edit items, this dont do anything, and still can edit item.
When both boxes selcted, user cant edit and delete item which is wrong, user than should not be able to edit or delete item.
TeamPass 2.1.27.36

Closing comment (2020-04-01T14:29:47Z): Looks similar to #1909 (which was fixed in 2.1.27.8 if I read correctly).
Repository: nilsteampassnet/TeamPass

Issue #4706: Malformed UTF-8 data
Created: 2025-04-29T21:58:38Z
I know this thread is mentioned here #4698 and it has been closed, but I too got this errors Malformed UTF-8 data

New install on Ubuntu 20.04
I did follow the troubleshoot thread
I did reinstall TeamPass several times using different methods and procedures (directory, chmod, http, https, db type. . .)

Nothing worked
It would be nice to read a solution

Duplicate issue #4650: Error 500. Error:Malformed UTF-8 data.
Created: 2025-03-21T08:48:07Z
There is a problem. The session crashes before the session timer ends.

Please tell me how to fix this.

Closing comment (2025-05-05T06:37:37Z): Duplicate of #4706
Repository: nix-community/home-manager

Issue #2064: Unit tray.target not found
Created: 2021-06-02T19:22:18Z
Issue description
On current master, I get the error Unit tray.target not found when I try to start some systemd units (like udiskie or blueman).
I'm using waybar, I think this error is related to #2027

Meta
Maintainer CC
@berbiche @NickHu

Technical details

Duplicate issue #6329: bug: `services.kdeconnect.indicator` on wayland fails over missing `tray.target`
Created: 2025-01-17T13:47:28Z
Are you following the right branch?

 My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

 I have searched the existing issues

Issue description
since #5299, I've had services.kdeconnect.indicator fail stating Unit tray.target not found.
it seems tray.target is available using xsession tho not by default on Wayland.
we may want to instead make this dependency conditional on use of xsession.
Maintainer CC
@onemoresuza
System information
- system: `"x86_64-linux"`
- host os: `Linux 6.12.2-zen1, NixOS, 24.11 (Vicuna), 24.11.20250102.c1df670`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.11`
- nixpkgs: `/run/current-system/nixpkgs`

Closing comment (2025-01-17T15:51:27Z): I think this is a duplicate of #2064?
Repository: nix-community/home-manager

Issue #5135: bug: pinentry-related modules broken
Created: 2024-03-13T10:36:54Z
Are you following the right branch?

 My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

 I have searched the existing issues

Issue description
error: A definition for option `home-manager.users.$USER.services.gpg-agent.pinentryFlavor' is not of type `null or one of "curses", "gtk2", "gnome2", "qt", "emacs"'. Definition values:
- In `/nix/store/c7a7yvmwnv9p9basdl89vxbnbaa8ppyj-source/gpg.nix': "gnome3"
It looks like they did a refactor of pinentry upstream, but I'm not sure how it works. It seems that the pinentry package doesn't exist anymore and it's replaced by pinentry-{gnome3,qt,...}. But then why does this definition not error out?:
type = types.nullOr (types.enum pkgs.pinentry.flavors);
Maintainer CC
@rycee
@ambroisie
System information
- system: `"x86_64-linux"`
 - host os: `Linux 6.6.19, NixOS, 24.05 (Uakari), 24.05.20240306.9df3e30`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - nixpkgs: `/nix/store/gig8j85kj7ybjy3ksn6k3aich8j2k59y-source`

Duplicate issue #5488: bug: using gpg-agent fails: no pinentry
Created: 2024-06-03T09:31:22Z
Are you following the right branch?

 My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

 I have searched the existing issues

Issue description
After upgrading from nixos 23.11 to 24.05 (including home manager), running any commands using the gpg-agent results in errors. For example:
$ echo "test" | gpg --clearsign
gpg: WARNING: unsafe permissions on homedir '/home/konrad/.gnupg'
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

test
gpg: signing failed: No pinentry
gpg: [stdin]: clear-sign failed: No pinentry

Or trying to connect to a remote host via ssh:
$ ssh some-host
sign_and_send_pubkey: signing failed for RSA "/home/kolaente/.ssh/general_key" from agent: agent refused operation
Received disconnect from xxx.xxx.xxx.xxx port 22:2: Too many authentication failures
Disconnected from xxx.xxx.xxx.xxx port 22

Here's my config for gpg-agent:
{ config, lib, pkgs, ... }:

{
  services.gpg-agent = {
    enable = true;
    defaultCacheTtl = 1800;
    defaultCacheTtlSsh = 1800;
    enableSshSupport = true;
  };
}

Maintainer CC
No response
System information
- system: `"x86_64-linux"`
- host os: `Linux 6.6.32, NixOS, 24.05 (Uakari), 24.05.675.805a384895c6`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.2`
- channels(root): `"home-manager-24.05.tar.gz, nixos-24.05, nixos-unstable"`
- channels(konrad): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Closing comment (2024-06-03T09:32:02Z): Maybe related to #5135 or #5146
Repository: nix-community/home-manager

Issue #603: QSyncthingTray fails to start due missing tray on i3 startup
Created: 2019-03-04T22:08:38Z
When starting i3 with services.syncthing.tray = true;  a window with "I couldn't detect any system tray on this system" is shown, and QSyncthingTray fails to start.

i3 is managed by home-manager as well.
It worked a few months ago, but I changed to the unstable version of QSyncthingTray a while ago and thought that had caused the issue. Now it happens even with the version in nixos-19.03.
I manually added qsyncthingtray to the i3 startup option, with a 5 second delay before running, but that is a crude fix.
Any idea how we can delay the start until a tray is available? Other services that depend on a tray seem to handle a missing tray by themselves.

Duplicate issue #1425: qsyncthing tray service is starting too early
Created: 2020-08-02T22:18:50Z
Issue description
I'm using the syncthing service with tray enabled, but every time I login I get this alert.

This can be resolved by running systemctl --user restart qsyncthingtray.service, so I suspect it is running too early.
I'm messing around with it in a forked branch but no luck on fixing yet. I was thinking making it run After (as opposed to PartOf) graphical-session.target should fix it, but that wasn't working for me.
Maintainer CC
@rycee
Technical details
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.0-7634-generic, Pop!_OS, 20.04 LTS`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.6`
 - channels(jmccown): `"home-manager, nixpkgs-20.09pre236408.43dd81b3fe8"`
 - nixpkgs: `/home/jmccown/.nix-defexpr/channels/nixpkgs`

Closing comment (2020-09-09T16:35:37Z): Duplicate of #603.
Repository: nix-community/home-manager

Issue #3375: vscode: manage extensions/settings without installing package
Created: 2022-10-31T17:10:24Z
Description
I'm using the vscode module of HM to install extensions and configure settings, but I don't want to manage the program's installation itself with Nix (I want it to be self-updating, so I got it from brew). Could this be allowed by the module?
For now, I use this as a workaround:
{
  programs.vscode.package = pkgs.runCommand "dummy" { } "mkdir $out" // { pname = pkgs.vscode.pname; };
}

Duplicate issue #4338: manage programs with homemanager that are not installed with nix
Created: 2023-08-13T04:17:59Z
Description
so the main use case is on macos where i need to configure gui apps like vscode, brave, intellij-idea which are installed with homebrew casks.
so is there a work around to get this working

Closing comment (2023-08-13T18:17:02Z): Duplicate of #3375.