Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

93
Visualizações
JavaScript line added to HTML script bracket make error 500

i have an issue with a webpage that produce error 500 after adding the following line :

discordInvite.init({inviteCode: 'sK5R76jTmu'});

inside the script bracket :

<script src="./discordInvite.js"></script>
<script type="text/javascript">
discordInvite.init({inviteCode: 'sK5R76jTmu'});
discordInvite.render();
</script>

The page work fine without that line only and, if i juste type the commande in consol (chrome consol), the page render the results (typing the script in the order init + render).

For more details about the JS script, here is a link to the original git page : https://github.com/Aegis7Gaming/Discord-Invite-JS-HTML-CSS

and here is the page i'm trying to implement this on : http://www.ats.rf.gd/ (part of the script is in the end of the body)

thanks in advance for your help i can't understand the logic behind it.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I solved the issue by replacing

discordInvite.init({inviteCode: 'sK5R76jTmu'});

by

discordInvite.init({inviteCode: "sK5R76jTmu"});
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda