DonorDrive / PublicAPI

Documentation and Examples for the DonorDrive Public API
MIT License
37 stars 12 forks source link

API Endpoints Inaccessible via App #48

Closed djotaku closed 3 years ago

djotaku commented 3 years ago

Many complaints on Discord, so it's not just my App. Endpoints accessible via website.

I'm getting a 403: Forbidden Error

ndtex commented 3 years ago

Image of issue when I run my code:

image

Relevant code for the above (using Node JS)

const basicInfo = 'https://www.extra-life.org/api/participants/' + config.participantID console.log("Attempting to use: " + basicInfo)

...

function updateGoal() { request({ url: basicInfo, json: true }, (error, response, body) => { if (error || response.statusCode !== 200) { console.log(Error in updateGoal(): ${error} (status code ${response.statusCode})) return }

...

updateGoal() setInterval(updateGoal, 70000)

djotaku commented 3 years ago

Working for me today, did you guys at DonorDrive change anything?

Maeglin73 commented 3 years ago

They changed the Cloudflare firewall rules again, and it seems to be working here, too. I was waiting a bit to test it, based on Havok's comment in the Discord about the change rollout taking some time.

timmixell commented 3 years ago

we are working on ways to make this a better experience moving forward. in the meantime, don't hesitate to reach out here, or via the #donordrive-support channel on Extra Life's Discord server if this pops up again