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

105
Visualizações
I can't make a request to an API in Repl.it

I'm creating a discord bot in JavaScript and I make a request to an API, when I run the bot on my computer everything works fine, and I wanted to automate my bot so I moved it to Repl.it, the problem it's that on Repl.it, my requests don't work, it tells me that my IP is banned here the result of my request, so I wonder if there is a solution to circumvent this ban. Here is my code:

const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));

module.exports = async function player(name, message, channel){

var headers = {
    'API-KEY' : 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
}

var link = 'https://api.rinaorc.com/player/'+name

var fetched = await fetch(link, {method: 'GET', headers: headers})

fetched = await fetched.json()

if(fetched['message'] === 'Player not found'){
    return message.reply('Joueur introuvable')
}
about 4 years ago · Juan Pablo Isaza
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