autopkg / timsutton-recipes

AutoPkg recipes
16 stars 37 forks source link

BlackMagicURLProvider HTTP Error 400: Bad Request #63

Open stefanj135 opened 5 years ago

stefanj135 commented 5 years ago

Hi Tim,

Please can you help, I have been getting 400 errors when trying to download DaVinciResolve recipes 11/12 . This started on Sunday. Ive ran -vv and this is the outcome.

BlackMagicURLProvider: Filtering json 'name' attributes with regex ^DaVinci Resolve Lite (?P11{1}(.\d+)*)$ Could not get a download URL: HTTP Error 400: Bad Request

Could it be something needs to be changed to the regex in the BlackMagicURLProvider.py ? Thanks a lot Stefan

ABrdfd commented 4 years ago

I am getting the same error in the BlackMagicURLProvider today for version 16.

'Filtering json 'name' attributes with regex ^DaVinci Resolve (?P16(.\d+))( Update)$ Could not get a download URL: HTTP Error 400: Bad Request'

Thanks! Asa

ABrdfd commented 4 years ago

So I have dug into the script as deeply as possible to understand the actions and why the HTTP 400 error occurs, but don't understand enough how a JSON web request works. It appears the BlackMagicURLProvider processor successfully compiles a request from the index because the HTTP 400 error is the final message. So the issue lies in the JSON request itself?

choules commented 3 years ago

We had the same issue and were able to fix it with correcting the input var "REG_COUNTRY" to "de" instead of "Germany". BlackMagic seems to require the country short code.