I’m experiencing connect timed out and read timed out errors

I’m currently getting connect times out and read times out responses from out of my server, and it’s messing up my bot. Any idea what is causing this?

    public String getUsername(Long botAccount) {
        Request.Builder request = new Request.Builder()
                .addHeader("User-Agent", "Xeus v" + AppInfo.getAppInfo().version)
                .url("https://users.roblox.com/v1/users/{userId}".replace("{userId}", botAccount.toString()));

        try (Response response = manager.getClient().newCall(request.build()).execute()) {
            if (response.code() == 200) {
                JSONObject json = new JSONObject(response.body().string());
                return json.getString("name");
        } catch (IOException e) {
            AvaIre.getLogger().error("Failed sending request to Roblox API: " + e.getMessage());
        return null;

On a JS bot, I get an socket hang up/econnreset

Another JS project (noblox.js-server)

1 Like

api is probablly down or ur network isnt working properly.

Tested another thing:

The request works on the main machine, however it doesn’t on another.

Now it suddenly takes requests again, but then after a few seconds it fails again.