ReferenceError: Sha256 is not defined

889 views
Skip to first unread message

Leandro Alfredo

unread,
May 8, 2019, 3:22:23 PM5/8/19
to qz-print
in my localhost is working perfectly, however, when I will use in a URL it gives this message: Reference Error: Sha256 is not defined How do I resolve this?

Tres Finocchiaro

unread,
May 8, 2019, 3:25:35 PM5/8/19
to Leandro Alfredo, qz-print
This usually means the reference to the sha256 library is missing, or sometimes that UTF 8 isn't configured for that page.

Double check your include for sha256, then UTF8.  That should fix it.  If you're using a JS framework such as Angular let us know as it may be slightly different.

On Wed, May 8, 2019 at 3:22 PM Leandro Alfredo <pleandr...@gmail.com> wrote:
in my localhost is working perfectly, however, when I will use in a URL it gives this message: Reference Error: Sha256 is not defined How do I resolve this?

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/2a7fc275-1623-4dab-80f3-08160181cbad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leandro Alfredo

unread,
May 8, 2019, 3:37:30 PM5/8/19
to qz-print
Ok, Thank you Tres.

But I'm using the exemplo page. sample.html

below, the code head: 


<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
<title>QZ Tray Sample Page</title>
</head>
<script type="text/javascript" src="js/dependencies/rsvp-3.1.0.min.js"></script>
<script type="text/javascript" src="js/dependencies/sha-256.min.js"></script>
<script type="text/javascript" src="js/qz-tray.js"></script>
<script type="text/javascript" src="js/additional/jquery-1.11.3.min.js"></script>

Em quarta-feira, 8 de maio de 2019 16:25:35 UTC-3, Tres Finocchiaro escreveu:
This usually means the reference to the sha256 library is missing, or sometimes that UTF 8 isn't configured for that page.

Double check your include for sha256, then UTF8.  That should fix it.  If you're using a JS framework such as Angular let us know as it may be slightly different.
On Wed, May 8, 2019 at 3:22 PM Leandro Alfredo <pleandr...@gmail.com> wrote:
in my localhost is working perfectly, however, when I will use in a URL it gives this message: Reference Error: Sha256 is not defined How do I resolve this?

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-p...@googlegroups.com.

Leandro Alfredo

unread,
May 8, 2019, 3:52:45 PM5/8/19
to qz-print
Resolved. Thank you. 

I salved with enconding wrong. :)

Em quarta-feira, 8 de maio de 2019 16:37:30 UTC-3, Leandro Alfredo escreveu:
Ok, obrigada.

Mas estou usando a página de exemplo. sample.html

abaixo, a cabeça do código: 


<html>
<cabeça>
<meta content = " texto / html; charset = utf-8 " http-equiv = " Tipo de conteúdo ">
<title> Página de Amostra da Bandeja QZ </ title>
</ head>
<script type = " texto / javascript " src = " js / dependências / rsvp-3.1. 0.min.js "> </ script>
<script type = " texto / javascript " src = " js / dependências / sha-256. min.js "> </ script>
<script type = " texto / javascript " src = " js / qz-tray.js "> </ script>
<script type = " texto / javascript " src = " js / adicionais / jquery-1. 11.3.min.js "> </ script>

Em quarta-feira, 8 de maio de 2019 16:25:35 UTC-3, Tres Finocchiaro escreveu:
Isso geralmente significa que a referência à biblioteca sha256 está faltando ou, às vezes, que o UTF 8 não está configurado para essa página.

Verifique sua inclusão para sha256 e UTF8. Isso deve consertar isso. Se você estiver usando um framework JS como o Angular, deixe-nos saber como ele pode ser um pouco diferente.

Em qua, 8 de maio de 2019 às 15:22 Leandro Alfredo < pleandr ... @ gmail.com > escreveu:
no meu localhost está funcionando perfeitamente, porém, quando vou usar em um URL ele dá essa mensagem: Erro de Referência: Sha256 não está definido Como resolvo isso?

-
Você recebeu esta mensagem porque está inscrito no grupo "qz-print" dos Grupos do Google.
Para cancelar a inscrição deste grupo e deixar de receber emails, envie um email para qz-p ... @ googlegroups.com .
Para ver esta discussão na Web, visite https://groups.google.com/d/ msgid / qz-print / 2a7fc275-1623- 4dab-80f3-08160181cbad% 40googlegroups.com .
Para obter mais opções, visite https://groups.google.com/d/ optout .

Tres Finocchiaro

unread,
May 8, 2019, 4:04:42 PM5/8/19
to Leandro Alfredo, qz-print
I solved with encoding

Thanks for the update 
 


--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/8603e6c0-618b-4bd4-afec-60a331ce2316%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages