Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

Connection Error [403 Forbidden] #26

@zukashix

Description

@zukashix

So I am trying to download the SevTech: Ages modpack using URL (It does work with Project ID but not URL). I get a connection error window. Looking at the command prompt it says this error

org.jsoup.HttpStatusException: HTTP error fetching URL. Status=403, URL=https://www.curseforge.com/minecraft/modpacks/sevtech-ages

at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:760)
at org.jsoup.helper.HttpConnection$Response.execute(HttpConnection.java:705)
at org.jsoup.helper.HttpConnection.execute(HttpConnection.java:295)
at org.jsoup.helper.HttpConnection.get(HttpConnection.java:284)
at org.jsoup.Jsoup.parse(Jsoup.java:183)
at com.github.franckyi.cmpdl.task.api.GetProjectIdTask.call0(GetProjectIdTask.java:28)
at com.github.franckyi.cmpdl.task.api.GetProjectIdTask.call0(GetProjectIdTask.java:15)
at com.github.franckyi.cmpdl.task.TaskBase.call(TaskBase.java:14)
at com.github.franckyi.cmpdl.task.TaskBase.call(TaskBase.java:9)
at javafx.concurrent.Task$TaskCallable.call(Task.java:1423)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

I'm not experienced at all in Java but in the python language, we use something called User Agent to make the website think we are a real web browser and not a third party application. Maybe try something like that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions