Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
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 answers
Answer question

0

I solved the issue by replacing

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

by

discordInvite.init({inviteCode: "sK5R76jTmu"});
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!