carla icon indicating copy to clipboard operation
carla copied to clipboard

FBX SDK 403 error to autodesk

Open ll7 opened this issue 2 years ago • 7 comments

I have the same issue as #5342 while building carla in a docker. I don't know how to apply the suggested fix.

Originally posted by @ll7 in https://github.com/carla-simulator/carla/issues/5342#issuecomment-1125702466

ll7 avatar May 13 '22 06:05 ll7

Hi @ll7, Could you manage to apply the fix and resolve the issue?

ndeshp2s avatar Jun 21 '22 09:06 ndeshp2s

No, I was not able to fix it.

ll7 avatar Jun 28 '22 07:06 ll7

Its should be on Util\BuildTools\BuildUtilsDocker.sh at line 20

wget --user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" -c "${FBXSDK_URL}" -P "${CARLA_DOCKER_UTILS_FOLDER}"

I haven't try if this working or not. Since it took me 6 hours to build the image until this downloading process

l1th1um avatar Jul 25 '22 05:07 l1th1um

Can confirm its work. But don't forget to change the dockerfile, so its using your local directory instead of clone from the repo

l1th1um avatar Jul 26 '22 00:07 l1th1um

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 02 '23 03:06 stale[bot]

I'm having a similar issue, but instead of getting a 403, the request seemingly just never completes. It's stuck at "awaiting response..." forever. Any ideas? Autodesk servers unresponsive?

image

muety avatar Feb 01 '24 10:02 muety

Managed to work around this by changing the above wget command to:

curl -O --output-dir "${CARLA_DOCKER_UTILS_FOLDER}" -L -A "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" "${FBXSDK_URL}"

muety avatar Feb 01 '24 10:02 muety

Looks like the problem is caused by the use of Mozilla as user agent here: https://github.com/carla-simulator/carla/blob/cead6d1b05e89ad84df80984f62daba57bb50e55/Util/BuildTools/BuildUtilsDocker.sh#L20

Change it to a realistic, up-to-date user agent like Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 and it will work again.

But the response is a 301 Moved Permanently with Location: https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz, so you might want to update the URL instead. This way, you won't need to set the user agent at all:

$ wget https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36" --max-redirect=0
--2024-03-21 09:32:59--  https://www.autodesk.com/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz
Resolving www.autodesk.com (www.autodesk.com)... 104.81.62.87, 2a02:26f0:d200:483::4516, 2a02:26f0:d200:490::4516
Connecting to www.autodesk.com (www.autodesk.com)|104.81.62.87|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz [following]
0 redirections exceeded.
$ wget https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz --max-redirect=0
--2024-03-21 09:33:11--  https://damassets.autodesk.net/content/dam/autodesk/www/adn/fbx/2020-0-1/fbx202001_fbxsdk_linux.tar.gz
Resolving damassets.autodesk.net (damassets.autodesk.net)... 104.81.62.87, 2a02:26f0:d200:490::4516, 2a02:26f0:d200:483::4516
Connecting to damassets.autodesk.net (damassets.autodesk.net)|104.81.62.87|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 55375460 (53M) [application/x-gzip]
Saving to: ‘fbx202001_fbxsdk_linux.tar.gz’

fbx202001_fbxsdk_linux.tar.gz             100%[==================================================================================>]  52.81M  53.0MB/s    in 1.0s    

2024-03-21 09:33:12 (53.0 MB/s) - ‘fbx202001_fbxsdk_linux.tar.gz’ saved [55375460/55375460]

apolak avatar Mar 21 '24 08:03 apolak