CMPDL icon indicating copy to clipboard operation
CMPDL copied to clipboard

Connection Error [403 Forbidden]

Open zukashix opened this issue 4 years ago • 0 comments

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?

zukashix avatar Jan 08 '22 06:01 zukashix