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

99
Views
No puedo hacer una solicitud a una API en Repl.it

Estoy creando un bot de Discord en JavaScript y hago una solicitud a una API, cuando ejecuto el bot en mi computadora todo funciona bien, y quería automatizar mi bot, así que lo moví a Repl.it, el problema es que en Repl.it, mis solicitudes no funcionan, me dice que mi IP está prohibida aquí como resultado de mi solicitud , por lo que me pregunto si hay una solución para eludir esta prohibición. Aquí está mi código:

 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
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!