Page 1 of 1
HTTP response code
Posted: 08 Dec 2021, 15:41
by kim
How can I get the HTTP response code ?
(other then from the log file)
because for every round the timeout is 20 sec or so...
Code: Select all
Caused by: java.io.IOException: Server returned HTTP response code: 522 for URL
If error I want to stop trying after the first round (3 times I think) of "Fetch failed"
Re: HTTP response code
Posted: 08 Dec 2021, 16:12
by rednoah
Sorry, you'll have to make your own HTTP requests if you want check response codes and do your own retry behaviour.
You can configure the internal retry count and retry time via system properties though.
Re: HTTP response code
Posted: 09 Dec 2021, 00:11
by kim
ok
We (I) need a complete list possible system properties
Developer Options / Java System Properties
Do Filebot only work with the "new" format ?
Code: Select all
filebot -script fn:properties --def ...
I see you can add anything, how can you access it ?
Re: HTTP response code
Posted: 09 Dec 2021, 01:33
by rednoah
Here are the default values for the system properties related to web request retry behaviour:
Code: Select all
net.filebot.CachedResource.retryLimit=2
net.filebot.CachedResource.retryDelay=PT2S
net.filebot.CachedResource.retryMultiplier=4
You can use the
-D java option if you don't want to use the
~/.filebot/system.properties file:
Code: Select all
export JAVA_OPTS="-Dnet.filebot.CachedResource.retryLimit=0"
filebot -script fn:sysenv