carla-simulator / carla

Open-source simulator for autonomous driving research.
http://carla.org
MIT License
10.83k stars 3.48k forks source link

FBX SDK 403 error to autodesk #5435

Open ll7 opened 2 years ago

ll7 commented 2 years ago

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

ndeshp2s commented 2 years ago

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

ll7 commented 2 years ago

No, I was not able to fix it.

l1th1um commented 1 year ago

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 commented 1 year ago

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

stale[bot] commented 1 year ago

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.

muety commented 5 months ago

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 commented 5 months ago

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}"
apolak commented 3 months ago

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]