Anytime I try to send requests to the devforum, more specifically this endpoint on a linux server, I get a 403 Forbidden error. But when I send a request on a windows server, I get a 200 success response with the data I expect to get.
Although whenever I send a request via the browser on a Linux VM or via post man, the request goes through. Making me believe that this is some bug.
This issue is problematic as code I wrote months ago no longer works, with no change whatsoever with no description on how to fix.
Originally, I had thought this was an issue with my code, until I tried to test locally on my windows machine, the same code, nothing changed, worked. So then I tried on a linux vm, same issue once again.
How to reproduce
first, create a javascript file with the following code(using node.js) on either a linux VM, or linux server. Any distribution is fine.
// run npm init -y in terminal
// run npm install node-fetch@2.6.1 in terminal
// run node index.js in terminal
const fetch = require("node-fetch")
async function doSomething() {
const url = "https://devforum.roblox.com/latest.json"
const response = await fetch(url)
console.log(response.status, response.statusText) // 403 Forbidden
}
doSomething().then(() => {
console.log("test over")
})
Although when I run this exact code on a windows server/my main pc, I get a 200 OK response.
Expected Behavior
I expect to be able to send requests to the devforum api, no matter the OS im hosting my code on.
Actual Behavior
I get a 403 Forbidden response when my code sends a request to the devforum on either a linux vm or linux server. While the same code works on windows/windows server.
Specs
My VM specs(i dont know my server specs, only my VM specs of which I used to test the code):
OS: Manjaro Linux x86_64
CPU: Intel i7-10700F (2) @ 2.904GHz
GPU: 00:0f.0 VMware SVGA II Adapter
Memory: 7916MiB
Issue Area: Website
Issue Type: api
Impact: Very High
Frequency: Constantly